Augmented-data projection: Internals
The augmented-data projection makes extensive use of augmented-rows matrices and augmented-length vectors. In the following, , , , , and from help topic refmodel-init-get are used. Furthermore, let denote either or , whichever is appropriate in the context where it is used (e.g., for ref_predfun
's output, ). Similarly, let denote either or , whichever is appropriate in the context where it is used. Then an augmented-rows matrix is a matrix with rows in
blocks of rows, i.e., with the observations nested in the (possibly latent) response categories. For ordered response categories, the (possibly latent) response categories (i.e., the row blocks) have to be sorted increasingly. The columns of an augmented-rows matrix have to correspond to the parameter draws, just like for the traditional projection. An augmented-rows matrix is of class augmat
(inheriting from classes matrix
and array
) and needs to have the value of stored in an attribute called ndiscrete
. An augmented-length vector (class augvec
) is the vector resulting from subsetting an augmented-rows matrix to extract a single column and thereby dropping dimensions.
Useful links