generateData2: Generates the Data

Description Usage Arguments Value

Description

It acts on the primitives of the estimation problem and returns the Data

Usage

1
generateData2(id, times, n, X, Z, betas, b, Q)

Arguments

id

individual number

times

one-dimensional array of time points

n

number of individuals

X

fixed effects design matrix. Usually includes an intercept and time.

Z

random effects design matrix. Usually includes an intercept and time

betas

the fixed effects parameters for the intercept and the slope.

b

the random effects taken from a multivariate normal with mean 0 and variance matrix D

Q

the number of items. Set this to four.

Value

Returns the generated Data as data.frame


kflorios/CHmGLMM documentation built on May 4, 2019, 7:42 p.m.