genlmesim: genlmesim

Description Usage Arguments Details Value Author(s)

Description

genlmesim simulates dataset from a Linear Mixed Effects model which may assume any general covariance structures for the effects.

Usage

1
2
  genlmesim(model = NULL, true = NULL, designM = NULL,
    n_i = NULL, levelname = NULL)

Arguments

model

A list with function-elements' G' and' ldetG' taking a' phi'-parameter.

true

A list with vector-elements' beta','phi' and' gamma' used as parameter in the LME model.

designM

A list with covariation matrix' X' belonging to fixed effects and random effect matrix' Z' belonging to random effects.

n_i

Number of data for each categorizations.

levelname

Name of levels in the one-way categories.

Details

The model assumes gaussian noise with different variance paramater for each group (heterogenous variance structure) and gaussian random effect with any covariance strucuture.

Value

Dataset with responses, categorize (group), covariates and random effects variables

Y

Response variable.

F

Categorize (name of group).

X

Covariates belonging to fixed effects.

Z

Covariates belonging to random effects.

delta

Sampled random effects.

Author(s)

Oyvind Bleka <Oyvind.Bleka.at.fhi.no>


biglme documentation built on May 2, 2019, 4:27 p.m.