View source: R/mcmcInternals.R
| processModelFormula | R Documentation |
Process a model formula and the input data to retrieve the response variable and the special hierarchical components of the model
processModelFormula(inFormula, inData, centreCovs = TRUE, scaleCovs = TRUE)
inFormula |
A formula object containing the model specification |
inData |
A data.frame, list, or inla.data.stack object containing the data to apply the model formula to |
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. |
A list object containing the following elements:
responseValuesThe values of the response variable
responseNameThe name of the response variable
hFunctionsCalls to special 'h' functions
fFunctionsCalls to special 'f' functions
sFunctionsCalls to special 's' functions
covNamesThe names of the covariates used in the model specification and equivalent valid names to use in the NIMBLE model
covFrameA data frame of the processed covariates
modelMatrixA model matrix resulted from an expansion of the
covariates performed by model.matrix
offetFrameA data frame of offset terms used in the model
Joseph D. Chipperfield, joechip90@googlemail.com
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.