data_reg_nested3: Simulates three level nested data with a single third level...

Description Usage Arguments

View source: R/data_reg.r

Description

Takes simulation parameter arguments and returns simulated data.

Usage

1
data_reg_nested3(Xmat, Zmat, Zmat3, beta, rand_eff, rand_eff3, k, n, p, err)

Arguments

Xmat

A matrix of covariates.

Zmat

Design matrix for random effects.

Zmat3

Design matrix for level 3 random effects.

beta

A vector of regression parameters.

rand_eff

A vector of random effects, must be stacked.

rand_eff3

A vector of level 3 random effects, must be stacked.

k

Number of third level clusters.

n

Number of clusters.

p

Number of units within each cluster.

err

A vector of within cluster errors.


simglm documentation built on July 8, 2020, 5:46 p.m.