gen.multi.lin.mixed: generates data from a random intercept linear mixed models...

Description Usage Arguments Value Author(s)

Description

generates data from a random intercept linear mixed models with only intercepts: y_{rij} = β_r + b_{ri} + ε_{rij}

Usage

1
2
gen.multi.lin.mixed(sigma2, D, mu, num.clust, clust.size, num.var,
  seed = 123)

Arguments

sigma2

error variance

D

random intercepts covariance matrix

mu

fixed effects values, the same length as num.var

num.clust

sample size

clust.size

cluster size

num.var

number of response variables

seed

a seed

Value

prepared dataset

Author(s)

Vahid Nassiri


vahidnassiri/miscVSS documentation built on June 25, 2019, 5:50 a.m.