fit_method.face: Get the result of fitting face.sparse to a dataset

Description Usage Arguments Details Note Examples

View source: R/analysis_fit_methods.R

Description

Get the result of fitting face.sparse to a dataset

Usage

1
2
## S3 method for class 'face'
fit_method(dat, ...)

Arguments

dat

data frame containing variables to model

...

additional parameters passed to face.sparse, most notably knots which defaults to 10

Details

This essentially gets an anthropometric dataset into shape for face.sparse (sets appropriate data structure and removes missing values) and runs the fitting routine.

Note

The settings for x_trans and y_trans must match that used in fit_trajectory and appropriate inverse transformations must be set there accordingly as well.

Examples

1
2
3
4
5
6
## Not run: 
facefit <- get_fit(cpp, y_var = "haz", method = "face")
fit <- fit_trajectory(subset(cpp, subjid == 2), fit = facefit)
plot(fit)

## End(Not run)

hafen/hbgd documentation built on March 1, 2020, 5:31 p.m.