checkparam {lazy.irtx} | R Documentation |
Checking and Subsetting the Parameter Data Frame
checkparam(param, type = NULL, modulename = "checkparam", tomat = 1)
param |
Item Parameter Data Frame |
type |
Item type |
modulename |
name of the module which calls this function |
tomat |
= 0 not to convert the result to a matrix. |
This function checks if the input param is a valid parameter data frame
with name, type, ncat, p1, p2, ..., variables.
When type = (B | G | P | PN | N) is given,
the items with the given type will be selected
and the parameter matrix (w/o name and type) will be returned.
In this case, the item name will be stored in the rownames.
Otherwize, the input parame will be returned.
checkparam(paramS1, type="B" ) checkparam(paramS1[1,], type="B" ) checkparam(paramS1[3,], type="B" )