Generated predicted values for (new) time points from a litfit model fit
Usage
# S3 method for class 'litfit'
predict(object,newdata=NULL,...)Examples
fit <- fit_litter(
time = c(0, 1, 2, 3, 4, 5, 6), mass.remaining = c(1, 0.9, 1.01, 0.4, 0.6, 0.2, 0.01),
"neg.exp", iters = 250
)
#> Warning: 1 of 7 mass remaining values are above 1 (max 1.01), i.e. apparent mass gain. They are kept in the fit and treated as measurement error.
#> Number of successful fits: 250 out of 250
predict(fit, newdata = 1:10)
#> [1] 0.8048061 0.6477129 0.5212833 0.4195320 0.3376420 0.2717363 0.2186951
#> [8] 0.1760071 0.1416516 0.1140021