growthfd | R Documentation |
This function fits a model to the given measured data of a population.
growthfd( data, x, y, id, model, verbose = 1, bounds = "negative", filename = "", startFromId = NULL, parallel = F, scores.filename = "parallel.txt" )
data |
Data frame containing age, height and id of individuals |
x |
Age at measured data points |
y |
Height at measured data points |
id |
Corresponding individual's id at measured data points |
model |
FPCA growth model to be fitted |
verbose |
Verbosity |
bounds |
Limitation of the interval for milestones estimation, 'negative' or 'inverse' |
filename |
File name for saving results after each individual |
startFromId |
Start the evaluation from this id |
parallel |
(Experimental) Parallel evaluation of the model fitting |
scores.filename |
File name for continuous saving of the scores |
List containing individuals id and model
filename <- system.file("extdata", "data.csv", package="growthfd", mustWork=TRUE) csv <- read.csv(filename) d <- data.frame('id'=as.factor(csv[,'id']), 'x'=csv[,'age'], 'y'=csv[,'height']) fit<-growthfd(data=d, x=x, y=y, id=id, model=model.bgs.m)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.