lsirm {lsirm12pl} | R Documentation |
Fit a LSIRM ( Latent Space Item Response Model)
Description
lsirm is used to fit 1PL LSIRM and 2PL LSIRM using Bayesian method as described in Jeon et al. (2021).
Usage
lsirm(formula, ...)
Arguments
formula |
The form of formula is |
... |
Additional arguments for the corresponding function. |
Details
The descriptions of options for each model, such as <term 2>
and <term 3>
, are included in lsirm1pl
for 1PL LSIRM and lsirm2pl
for 2PL LSIRM.
Value
lsirm
returns an object of class list
.
See corresponding functions such as lsirm1pl
for 1PL LSIRM and lsirm2pl
for 2PL LSIRM.
See Also
lsirm1pl
for 1PL LSIRM.
lsirm2pl
for 2PL LSIRM.
Examples
# generate example item response matrix
data <- matrix(rbinom(500, size = 1, prob = 0.5),ncol=10,nrow=50)
lsirm_result <- lsirm(data~lsirm1pl())
lsirm_result <- lsirm(data~lsirm2pl())