fitGrowth | R Documentation |
Ease of use wrapper function for fitting various growth models specified by growthSS
fitGrowth(ss, ...)
ss |
A list generated by |
... |
Additional arguments passed to model fitting functions determined by |
A fit model from the selected type.
growthPlot for model visualization, testGrowth for hypothesis testing, barg for Bayesian model reporting metrics.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.