one iteration
one_iteration(
data.list,
method,
prop.fam = 0.75,
prop.subject = 1,
age.min = 0,
age.max = 18,
age.int = 1/12,
x2.min = 25,
x2.max = 42,
x2.int = 1/12,
keep.models = F,
dist = "BCCGo",
formula = NULL,
sigma.df = 3,
nu.df = 2,
mu.df = 4,
tau.df = 2,
sigma.formula = ~1,
nu.formula = ~1,
tau.formula = ~1,
verbose = F,
trans.x = F,
lim.trans = c(0, 1.5),
method.pb = "ML"
)
list of lists each containing a dataframe of the fitted lms parameter at the given age points and the fitted model
list of dataframes as returned by prepare_data
use vgam or gamlss
proportion of families to be sampled
proportion of subject to be sampled
lower bound of age
upper bound of age
stepwidth of the age variable
minimum limit for the second predictor
maximum limit for the second predictor
interval length between knots saved
indicator whether or not models in each iteration should be kept
distribution used for the fitting process, has to be one of BCCGo, BCPEo, BCTo as they are accepted by lms()
formula for the location parameter
degree of freedem spread parameter
degree of freedem skewness parameter
degree of freedem location parameter
degree of freedem kurtosis parameter
formula for the sigma parameter
formula for the nu parameter
formula for the tau parameter
whether or not information about sampling will be printed during while iterate
indicator wether age should be transformed or not
limits for the exponent of transformation of age
GAIC or ML
Mandy Vogel
function samples families then measurements and fits the model
the function is called inside do_iterations
and may not called directly