Zfun {qape} | R Documentation |
Matrix Z creator
Description
The function creates the Z matrix of auxiliary variables asscociatied with random effects.
Usage
Zfun(model, data)
Arguments
model |
formula of model (use formula() function). |
data |
data. |
Value
Z |
Z matrix. |
vNames |
labels of random effects. |
ZBlockNames |
labels of blocks of random effects. |
Author(s)
Alicja Wolny-Dominiak
Examples
data(invData)
modelFormula <- formula(investments~newly_registered + (newly_registered | NUTS2))
reg <- invData
Zfun(modelFormula, reg)
[Package qape version 2.1 Index]