Extracts the posterior means of the Stan-generated score variables
(score_ext, score_int, score_kappa) and assembles them into
an \(N \times D\) matrix, where \(D = 2P + 1\):
\((\alpha_1, \ldots, \alpha_P, \beta_1, \ldots, \beta_P,
\log\kappa)\).
Value
Numeric matrix of dimension \(N \times D\). Columns are ordered as (score_ext columns 1 to P, score_int columns 1 to P, score_kappa).
Details
Score variables are generated quantities in the weighted/svc_weighted
Stan models. CmdStanR names matrix variables as var[1,1], var[1,2], ..., var[1,P], var[2,1], ... (first index varies slowest, row-major
ordering). Posterior means are computed across all MCMC draws.