Learn R Programming

childsds (version 0.6)

do_iterations: do lms iterations

Description

Do lms iterations

Usage

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

Arguments

data.list
list of dataframes as returned by prepare_data
n
number of iterations
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()
mu.df
degree of freedem location parameter
sigma.df
degree of freedem spread parameter
nu.df
degree of freedem skewness parameter
tau.df
degree of freedem kurtosis parameter

Value

list of lists for models and fitted parameters

Details

function samples families, samples measurements (and subjects), fits the model for a given number of iterations