Do lms iterations
do_iterations(
data.list,
n = 10,
max.it = 1000,
method = "gamlss",
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",
mu.df = 4,
sigma.df = 3,
nu.df = 2,
tau.df = 2,
verbose = F,
formula = NULL,
sigma.formula = ~1,
nu.formula = ~1,
tau.formula = ~1,
method.pb = "ML",
trans.x = F,
lim.trans = c(0, 1.5)
)
list of lists for models and fitted parameters
list of dataframes as returned by prepare_data
number of desired fits
maximum number of iterations that will be run
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()
degree of freedem location parameter
degree of freedem spread parameter
degree of freedem skewness parameter
degree of freedem kurtosis parameter
whether or not information about sampling will be printed during while iterate
formula for the location parameter
formula for the sigma parameter
formula for the nu parameter
formula for the tau parameter
GAIC or ML
indicator wether age should be transformed or not
limits for the exponent of transformation of age
Mandy Vogel
function samples families, samples measurements (and subjects), fits the model for a given number of iterations