Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

dot-indicator_spec

Generates indicator spec list.


Description

Generates the "indicator spec" used by Stan

Usage

.indicator_spec(formList, mm)

Arguments

formList
mm

Details

The indicator spec consists of two parts. The first part is J_f, or the number of indicators under each factor. The second part is an [F, J] array, wherein each row defines the 1:J_f[f] columns of the indicator matrix belonging to the factor. Example: [1, 3, 5, 0, 0, 0]: J_f[1] = 3 [2, 4, 6, 0, 0, 0]: J_f[2] = 3 [1, 2, 3, 4, 0, 0]: J_f[3] = 4; J = 6; F = 3

Value

List containing J_f (Indicators per factor; numeric vector) and F_ind (FxJ Numeric Matrix, where F_ind[f,1:J_f] gives the column indices of the model matrix corresponding to factor f.)

Author(s)

Stephen R. Martin


MIRES

Measurement Invariance Assessment Using Random Effects Models and Shrinkage

v0.1.0
MIT + file LICENSE
Authors
Stephen Martin [aut, cre] (<https://orcid.org/0000-0001-8085-2390>), Philippe Rast [aut] (<https://orcid.org/0000-0003-3630-6629>)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.