View source: R/growthfd.ApvRegVelocity.R
growthfd.ApvRegVelocity | R Documentation |
This function registers a curve corresponding to the supplied parameters onto the population apv.
growthfd.ApvRegVelocity(model, par, verbose = F)
model |
FPCA growth model |
par |
Params of the model, corresponding to the individual |
Velocity at apv data frame
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']) m <- d$id == 'John' fit <- growthfd.fit(model.bgs.m, age=d$x[m], height=d$y[m]) data<-growthfd.ApvRegVelocity(model.bgs.m, fit$par)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.