checkparam {lazy.irt}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 | B3 | Bn | Bn3 | G | Gn | 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.
Note that type="B" means "B" or "B2" or "B3" and type="B3" means "B3" only and that type="Bn" means "Bn" or "Bn2" or "Bn3" and type="Bn3" means "Bn3" only.

Value

A parameter matrix or data frame.

Examples

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


[Package lazy.irt version 0.1.3 Index]