powered by
The function creates the Z matrix of auxiliary variables asscociatied with random effects.
Zfun(model, data)
Z matrix.
labels of random effects.
labels of blocks of random effects.
formula of model (use formula() function).
data.
Alicja Wolny-Dominiak
data(invData) modelFormula <- formula(investments~newly_registered + (newly_registered | NUTS2)) reg <- invData Zfun(modelFormula, reg)
Run the code above in your browser using DataLab