MixedModels.study: Function which fits different mixed models, compares them and...

View source: R/2_study-fn.R

MixedModels.studyR Documentation

Function which fits different mixed models, compares them and finally defines a random coefficients model which, if neccessary, is reduced in random effects to minimize model singularity. This function also computes and returns model ICC, a measure of heterogeneity.

Description

Function which fits different mixed models, compares them and finally defines a random coefficients model which, if neccessary, is reduced in random effects to minimize model singularity. This function also computes and returns model ICC, a measure of heterogeneity.

Usage

MixedModels.study(object, methodFamily = NULL, transformation = NULL)

Arguments

object

of class study.

methodFamily

which family does the error distribution belong to? not required, can be used to overwrite the default defined in the object. Defaults to NULL.

transformation

name of the transformation that should be applied to the response (e.g. log). defaults to NULL.

Value

return.list contains three fitted models, the information whether the random coef. model is singular, and the ICC table.

Author(s)

Stefan Thoma, adapted from Federico Rogai


StefanThoma/ReplicationRelevance documentation built on Feb. 6, 2023, 4:03 a.m.