growthfd.fit | R Documentation |
This function fits a model to the given measured data of a single individual.
growthfd.fit(model, age, height, nprint = 1)
model |
FPCA growth model to be fitted |
age |
Age at measured data points |
height |
Height at at measured data points |
nprint |
Verbosity |
An optimization result object
age <- c(6.9, 8.2, 10, 12.1) height <- c(114, 122, 130, 141) fit <- growthfd.fit(model.bgs.m, age=c(6.9, 8.2, 10, 12.1), height=c(114, 122, 130, 141)) x11() growthfd.plot(model.bgs.m, fit$par) points(age, height) x11() growthfd.plot(model.bgs.m, fit$par, from=0.5, deriv = 1) x11() growthfd.plot(model.bgs.m, fit$par, from=0.5, deriv = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.