Learn R Programming

mirt (version 1.3)

mod2values: Convert an estimated mirt model to special data.frame

Description

Given an estimated model from any of mirt's model fitting functions this function will convert the model parameters into the design data frame of starting values and other parameter characteristics (similar to using the pars = 'values' for obtaining starting values).

Usage

mod2values(x)

Arguments

x
an estimated model x from the mirt package

Examples

Run this code
dat <- expand.table(LSAT7)
mod <- mirt(dat, 1)
values <- mod2values(mod)
values

#use the converted values as starting values in a new model
mod2 <- mirt(dat, 1, pars = values)

Run the code above in your browser using DataLab