checkparam {lazy.irtx}R Documentation

Checking and Subsetting the Parameter Data Frame

Description

Checking and Subsetting the Parameter Data Frame

Usage

checkparam(param, type = NULL, modulename = "checkparam", tomat = 1)

Arguments

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.

Details

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.

Examples

checkparam(paramS1, type="B" )
checkparam(paramS1[1,], type="B" )
checkparam(paramS1[3,], type="B" )


[Package lazy.irtx version 1.0.1 Index]