get_fit: Obtain a trajectory "fit" object for a dataset

Description Usage Arguments

View source: R/analysis_get_fit.R

Description

Obtain a trajectory "fit" object for a dataset

Usage

1
2
3
get_fit(dat, x_var = "agedays", y_var = "htcm", method = "fda",
  holdout = FALSE, x_trans = NULL, x_inv = NULL, y_trans = NULL,
  y_inv = NULL, ...)

Arguments

dat

data frame containing variables to model

x_var

name of x variable to model (default is "agedays")

y_var

name of y variable to model (usually an anthropometric measure or z-score scaled anthropometric measure)

method

name of fitting method to use (see get_avail_methods)

holdout

should an observation be held out for fitting (will use column hold in dat to which observations to hold out)

x_trans, y_trans

transformation functions to be applied to x and y prior to modeling

x_inv, y_inv

inverse transformation functions for x and y to get back to the original scale after modeling

...

parameters passed on to the fitting method


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