create.data: Generates random effects data

Description Usage Arguments Value

Description

Function can generate data with random intercept and fixed slope, or random intercept and slope with arbitrary fixed covariates

Usage

1
create.data(clusters, cluster.size, params.fe, params.re, G, ...)

Arguments

clusters

The number of clusters (> 1)

cluster.size

Either a vector indicating the size of each cluster or a single number which indicates the size of each cluster (same across clusters)

params.fe

A list containing the values of the fixed effects

params.re

A list contiaining the values of the random effects

G

"True" mixing distribution as a character (e.g. "normal", "gamma")

...

Named parameters for the mixing distribution G

Value

data.frame


jacobcvt12/hlm.comparison documentation built on May 18, 2019, 9:04 a.m.