Calculate the halflife of data
Determines the terminal halflife of a sequence of corresponding times and values with optional minimum and maximum times to censor data.
calculate_halflife(times = NULL, values = NULL, tmin = NULL, tmax = NULL)
times
: - sequence of timesvalues
: - corresponding sequence of valuestmin
: - minimum time to include (NULL
)tmax
: - maximum time to include (NULL
)List with the following names
x = c(0:100) y = exp(-.1*x) th = calculate_halflife(times=x, values=y) thalf = th$thalf