paste_linpred: Write a linear predictor

View source: R/helpfunctions_JAGSmodel.R

paste_linpredR Documentation

Write a linear predictor

Description

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.

Usage

paste_linpred(parname, parelmts, matnam, index, cols, scale_pars,
  isgk = FALSE)

Arguments

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 matname, should have the same length as parlemts

scale_pars

matrix with row names according to the column names of matname and columns "center" and "scale"; or NULL

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 cols

matname

character string; name of the data matrix


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