fitGrowth {pcvr} | R Documentation |
Ease of use wrapper function for fitting various growth models specified by growthSS
Description
Ease of use wrapper function for fitting various growth models specified by growthSS
Usage
fitGrowth(ss, ...)
Arguments
ss |
A list generated by |
... |
Additional arguments passed to model fitting functions determined by |
Value
A fit model from the selected type.
See Also
growthPlot for model visualization, testGrowth for hypothesis testing, barg for Bayesian model reporting metrics.
Examples
simdf <- growthSim("logistic",
n = 20, t = 25,
params = list("A" = c(200, 160), "B" = c(13, 11), "C" = c(3, 3.5))
)
ss <- growthSS(
model = "logistic", form = y ~ time | group,
df = simdf, type = "nls"
)
fitGrowth(ss)
ss <- growthSS(
model = "gam", form = y ~ time | group,
df = simdf, type = "nls"
)
fitGrowth(ss)
[Package pcvr version 1.1.1.0 Index]