Predictor(...)
performs some minimal syntax checking, and returns a formula with attributes.
It serves as a unified interface for the set of descriptors for a linear predictor, including design matrices for random effects.
In the current version this function could be ignored by users.Predictor(formula, offset=NULL, LMatrix = NULL, AMatrix = NULL, ZALMatrix = NULL)
formula
, which can include fixed effects, random effects, and offsets.formula
and predictor
.Matern(...)
), or given as the corrMatrix
argument of HLCor
.
If there is one realized random effect per response value, the linear predictor contains Lv, where L is a square matrix which dimension is the number of observations.
Several observations may be taken in the same location, and a matrix Z (usually automatically constructed) tells which element of
Lv affects each observation. The linear predictor then contains ZLv, where dim(Z)
is (number of observations,number of locations).
Finally, in some applications the realized random effects in response locations may be viewed as linear combinations ALv of random effects Lv in distinct locations. In that case the dimension of L is the number of such distinct locations, A maps them to the observed locations, and Z again maps them to possibly repeated observations in observed locations.
Thus, in general the random term in the linear predictor is written Mv, where M=ZAL is reconstructed from the element matrices (usually automatically constructed if needed), unless ZAL is given as argument.# In the current version this function can be ignored by users,
# so examples are not required.
# (Use of AMatrix could perhaps be shown)
Run the code above in your browser using DataLab