I have a population
were each value is the time were the respective element of the population "dies" with "NaN" being elements, that never "die".
I am looking for a way to plot the propability that an element "dies" by the funtion of time converging to the relative amount ('NaN') of elements "surviving" as well as to fit this with a exponential decay curve (I know from e.g. histfit, that my data resembles this behaviour).
I already tried to use the hazard function or to plot 1-cdf.
Thanks for advance.