Learn R Programming

qape (version 2.1)

Zfun: Matrix Z creator

Description

The function creates the Z matrix of auxiliary variables asscociatied with random effects.

Usage

Zfun(model, data)

Value

Z

Z matrix.

vNames

labels of random effects.

ZBlockNames

labels of blocks of random effects.

Arguments

model

formula of model (use formula() function).

data

data.

Author

Alicja Wolny-Dominiak

Examples

Run this code
data(invData)
modelFormula <- formula(investments~newly_registered + (newly_registered | NUTS2))
reg <- invData

Zfun(modelFormula, reg)

Run the code above in your browser using DataLab