> data(LSAT7)
> LSAT7=expand.table(LSAT7)
> fitted_model <- mirt(LSAT7[,1:3], 1, 'Rasch', pars='values')
> fitted_model
group item class name parnum value lbound ubound est prior.type prior_1 prior_2
1 all Item.1 dich a1 1 1.0000000 -Inf Inf FALSE none NaN NaN
2 all Item.1 dich d 2 1.8597467 -Inf Inf TRUE none NaN NaN
3 all Item.1 dich g 3 0.0000000 -Inf Inf FALSE none NaN NaN
4 all Item.1 dich u 4 1.0000000 -Inf Inf FALSE none NaN NaN
5 all Item.2 dich a1 5 1.0000000 -Inf Inf FALSE none NaN NaN
6 all Item.2 dich d 6 0.7998986 -Inf Inf TRUE none NaN NaN
7 all Item.2 dich g 7 0.0000000 -Inf Inf FALSE none NaN NaN
8 all Item.2 dich u 8 1.0000000 -Inf Inf FALSE none NaN NaN
9 all Item.3 dich a1 9 1.0000000 -Inf Inf FALSE none NaN NaN
10 all Item.3 dich d 10 1.4650322 -Inf Inf TRUE none NaN NaN
11 all Item.3 dich g 11 0.0000000 -Inf Inf FALSE none NaN NaN
12 all Item.3 dich u 12 1.0000000 -Inf Inf FALSE none NaN NaN
13 all GROUP GroupPars MEAN_1 13 0.0000000 -Inf Inf FALSE none NaN NaN
14 all GROUP GroupPars COV_11 14 1.0000000 1e-04 Inf TRUE none NaN NaN
fitted_model <- mirt(LSAT7[,1:3], 1, 'Rasch')
Iteration: 83, Log-Lik: -1594.718, Max-Change: 0.00010
> coef(fitted_model)
$Item.1
a1 d g u
par 1 1.973 0 1
$Item.2
a1 d g u
par 1 0.839 0 1
$Item.3
a1 d g u
par 1 1.545 0 1
$GroupPars
MEAN_1 COV_11
par 0 1.436
--
You received this message because you are subscribed to the Google Groups "mirt-package" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mirt-package...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
library(mirt)
myData = read.delim("~/data.txt", header = FALSE)
pattern = mirt(myData, 1, itemtype = '3PL', pars = 'values')
pattern[1 * 4 + 1, 'value'] = 1.26
pattern[1 * 4 + 2, 'value'] = -2.39
pattern[1 * 4 + 3, 'value'] = 0.189
pattern[1 * 4 + 1, 'est'] = FALSE
pattern[1 * 4 + 2, 'est'] = FALSE
pattern[1 * 4 + 3, 'est'] = FALSE
pattern[5 * 4 + 1, 'value'] = 1.78
pattern[5 * 4 + 2, 'value'] = -1.86
pattern[5 * 4 + 3, 'value'] = 0.104
pattern[5 * 4 + 1, 'est'] = FALSE
pattern[5 * 4 + 2, 'est'] = FALSE
pattern[5 * 4 + 3, 'est'] = FALSE
pattern[14 * 4 + 1, 'value'] = 0.585
pattern[14 * 4 + 2, 'value'] = -2.503
pattern[14 * 4 + 3, 'value'] = 0.108
pattern[14 * 4 + 1, 'est'] = FALSE
pattern[14 * 4 + 2, 'est'] = FALSE
pattern[14 * 4 + 3, 'est'] = FALSE
myObj = mirt(myData, 1, pars = pattern)
coefs = coef(myObj, simplify=TRUE, IRTpars=TRUE)
To unsubscribe from this group and stop receiving emails from it, send an email to mirt-package+unsubscribe@googlegroups.com.