View source: R/helpfunctions_JAGSmodel.R
paste_linpred | R Documentation |
Construct a linear predictor from parameter names and indices, the name of the data matrix and corresponding columns, and apply scaling to the data if necessary.
paste_linpred(parname, parelmts, matnam, index, cols, scale_pars,
isgk = FALSE)
parname |
character string; name fo the parameter (e.g., "beta") |
index |
character string; name of the index (e.g., "i" or "ii") |
cols |
integer vector; indices of the columns of |
scale_pars |
matrix with row names according to the column names of
|
isgk |
logical; is this linear predictor within the Gauss-Kronrod quadrature? |
parlemts |
integer vector; indices of the parameter vector to be used;
should have the same length as |
matname |
character string; name of the data matrix |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.