View source: R/helpfunctions_JAGSmodel.R
paste_scaling | R Documentation |
Identifies if a data element of a linear predictor should be scaled (based
on whether scaling parameters are given) and then calls paste_scale()
.
paste_scaling(x, rows, scale_pars, scalemat)
x |
vector of character strings; to be scaled, typically matrix columns |
rows |
integer vector; row numbers of the matrix containing the scaling information |
scale_pars |
matrix containing the scaling information, with columns "center" and "scale" |
scalemat |
the name of the scaling matrix in the JAGS model (e.g. "spM_id") |
Calls paste_scale()
on each element of x
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.