createZMatrix | R Documentation |
Function that takes a hierarchical effect variable (as used as
a variable in the h
function) and creates a transformation
matrix that links a vector of random effects to the data
createZMatrix(var, centreCovs = FALSE, scaleCovs = FALSE, effName = NULL)
var |
The variable around which the hierarchical effect will be defined.
This can be a |
centreCovs |
A logical scalar denoting whether the fixed effects in the
model should be centred before the analysis: each covariate element is
subtracted by its mean. |
scaleCovs |
A logical scalar denoting whether the fixed effects in the
model should be scaled before the analysis: each covariate element is divided
by its standard deviation. |
effName |
A character scalar giving a name for the hierarchical effect being defined and used as name for the appropriate nodes |
A matrix object containing the transformation matrix
Joseph D. Chipperfield, joechip90@googlemail.com
h
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.