calculate_halflife: Calculate the halflife of data

Description Usage Arguments Value Examples

View source: R/ubiquity.r

Description

Determines the terminal halflife of a sequence of corresponding times and values with optional minimum and maximum times to censor data.

Usage

1
calculate_halflife(times = NULL, values = NULL, tmin = NULL, tmax = NULL)

Arguments

times

- sequence of times

values

- corresponding sequence of values

tmin

- minimum time to include (NULL)

tmax

- maximum time to include (NULL)

Value

List with the following names

Examples

1
2
3
4
x     = c(0:100)
y     = exp(-.1*x)
th    = calculate_halflife(times=x, values=y)
thalf = th$thalf 

ubiquity documentation built on Sept. 5, 2021, 5:15 p.m.