Learn R Programming

childsds (version 0.6)

one_iteration: one iteration

Description

one iteration

Usage

one_iteration(data.list, prop.fam = 0.75, prop.subject = 1, age.min = 0,
  age.max = 18, age.int = 1/12, dist = "BCCGo", sigma.df = 3,
  nu.df = 2, mu.df = 4, tau.df = 2)

Arguments

data.list
list of dataframes as returned by prepare_data
prop.fam
proportion of families to be sampled
prop.subject
proportion of subject to be sampled
age.min
lower bound of age
age.max
upper bound of age
age.int
stepwidth of the age variable
dist
distribution used for the fitting process, has to be one of BCCGo, BCPEo, BCTo as they are accepted by lms()
sigma.df
degree of freedem spread parameter
nu.df
degree of freedem skewness parameter
mu.df
degree of freedem location parameter
tau.df
degree of freedem kurtosis parameter

Value

list of lists each containing a dataframe of the fitted lms parameter at the given age points and the fitted model

Details

function samples families then measurements and fits the model the function is called inside do_iterations and may not called directly