growthfd.ApvRegVelocity: Register a velocity curve at population apv

View source: R/growthfd.ApvRegVelocity.R

growthfd.ApvRegVelocityR Documentation

Register a velocity curve at population apv

Description

This function registers a curve corresponding to the supplied parameters onto the population apv.

Usage

growthfd.ApvRegVelocity(model, par, verbose = F)

Arguments

model

FPCA growth model

par

Params of the model, corresponding to the individual

Value

Velocity at apv data frame

Examples

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)

ondrej-klima/growthfd documentation built on Jan. 4, 2023, 10:37 a.m.