paste_scaling: Wrap a data element of a linear predictor in scaling syntax

View source: R/helpfunctions_JAGSmodel.R

paste_scalingR Documentation

Wrap a data element of a linear predictor in scaling syntax

Description

Identifies if a data element of a linear predictor should be scaled (based on whether scaling parameters are given) and then calls paste_scale().

Usage

paste_scaling(x, rows, scale_pars, scalemat)

Arguments

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")

Details

Calls paste_scale() on each element of x.


JointAI documentation built on April 27, 2023, 5:15 p.m.