W_thresh: Construction of design matrix for partial credit model

Description Usage Arguments Value Examples

View source: R/Rasch-Model.R

Description

Construction of design matrix for partial credit model with the usual parameter restriction.

Usage

1

Arguments

x

vector of length equal to the number of items. The elements of x are the maximal response categories for the items.

Value

design matrix W for PCM.

Examples

1
2
# desc2 contains 10 items with response categories from 0 to 4 each.
W_thresh(rep(4,10))

muellermarianne/iarm documentation built on Oct. 17, 2017, 5:49 p.m.