pars.long {irtpwr}R Documentation

Transform parameters to a longer format

Description

This is a helper function used to generate custom hypotheses. See the 'adding_hypotheses' vignette.

Usage

pars.long(pars, itemtype, from.mirt = FALSE)

Arguments

pars

list of parameters. Can also be coefficients from a model fitted by mirt. In this case, the from.mirt argument has to be set to TRUE

itemtype

character, type of the item as string, e.g. '2PL'

from.mirt

logical, treat as coefficients from a model fitted by mirt if TRUE

Value

numeric vector

Examples


pars = list(a= c(1,1,1),d=c(0,0,0))
pars.long(pars,itemtype='2PL')


[Package irtpwr version 1.0.3 Index]