Learn R Programming

fcirt (version 0.2.1)

information: mfc item and test information

Description

This function calculates mfc item and test information.

Usage

information(x, approach, theta, information, items)

Value

Selected item information or overall test information

Arguments

x

returned object

approach

Estimation approaches used for parameters. They can be "direct", which is direct approach, and "two step", which is two step approach. The default is direct approach.

theta

Type of theta values used. They can be "quadrature", which is -3, -2.9, -2.8, -2.7...2.9, 3, and "estimated", which is estimated theta values. The default is quadrature.

information

Types of information.They can be "item", which is overall item information, and "test", which is overall test information. The default is overall item information.

items

The items of which information to be calculated. The default is all the items.

Examples

Run this code
# \donttest{
# long running time
Data <- c(1,2,2,1,1,1,1,1,NA,1,2,1,1,2,1,1,2,2,NA,2,2,2,1,1,1,2,1,1,1,1,2,1,1,1,2,1,1,2,1,1)
Data <- matrix(Data,nrow = 10)
pairmap <- c(1,3,5,7,2,4,6,8)
pairmap <- matrix(pairmap,ncol = 2)
ind <- c(1,2,1,2,1,2,2,1)
ParInits <- c(1, 1, 1, 1, 1, 1, 1, 1, 1, -1, 1, 1, 1, -1, 1, 1, -1, -1, -1, -1, -1, -1, -1, -1)
ParInits <- matrix(ParInits, ncol = 3)
mod <- fcirt(fcirt.Data=Data,pairmap=pairmap,ind=ind,
ParInits=ParInits,iter=1000,warmup=500,chains=2)
information(mod, approach="direct", theta="quadrature", information="item", items=1)# }

Run the code above in your browser using DataLab