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

LC2LG

Transformation between latent classes and latent groups


Description

This function gives the equivalent latent classes which have the same category success probabilities for each category or item.

Usage

LC2LG(Q, sequential = FALSE, att.str = NULL)

Arguments

Q

A required J \times K binary Q-matrix. J represents test length and K represents the number of attributes of this test. Entry 1 at row j and column k represents the k^{th} attribute is measured by item j, and 0 means item j does not measure attribute k.

sequential

logical; whether the Q-matrix is a Qc-matrix for sequential models?

att.str

attribute structure. See GDINA for details.

Value

An item or category by latent class matrix. In the G-DINA model, if item j measures Kj attributes, 2^K latent classes can be combined into 2^{Kj} latent groups. This matrix gives which latent group each of 2^K latent classes belongs to for each item.

Author(s)

Wenchao Ma, The University of Alabama, wenchao.ma@ua.edu
Jimmy de la Torre, The University of Hong Kong

Examples

attributepattern(3)

q <- matrix(scan(text = "0 1 0 1 0 1 1 1 0"),ncol = 3)
q
LC2LG(Q = q)

GDINA

The Generalized DINA Model Framework

v2.8.0
GPL-3
Authors
Wenchao Ma [aut, cre, cph], Jimmy de la Torre [aut, cph], Miguel Sorrel [ctb], Zhehan Jiang [ctb]
Initial release
2020-05-23

We don't support your browser anymore

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