Learn R Programming

eRm (version 0.9-2)

itemfit.ppar: Residuals, Personfit and Itemfit Statistics

Description

pmat computes the expected person-item matrix with corresponding probabilities. residuals computes the squared and standardized residuals based on the observed and the expected person-item matrix. Chi-square based itemfit and personfit statistics can be obtained by using itemfit and personfit.

Usage

## S3 method for class 'ppar':
pmat(object)
## S3 method for class 'ppar':
itemfit(object)
## S3 method for class 'ppar':
personfit(object)
## S3 method for class 'ppar':
residuals(object,...)
## S3 method for class 'ifit':
print(x, ...)
## S3 method for class 'pfit':
print(x, ...)

Arguments

object
Object of class ppar, derived from person.parameter.
x
Object of class ifit, pfit, or resid.
...
Further arguments passed to or from other methods. They are ignored in this function.

Value

  • Function pmat:
  • pmatMatrix of theoretical probabilities.
  • Function itemfit returns a list of class ifit with components:
  • i.fitItemfit statistics.
  • i.dfDegrees of freedom for itemfit statistics.
  • st.resStandardized residuals.
  • Function personfit returns a list of class pfit with components:
  • p.fitPersonfit.
  • p.dfDegrees of freedom for personfit statistics.
  • st.resStandardized residuals.

References

Smith Jr., E. V., and Smith, R. M. (2004). Introduction to Rasch Measurement. JAM press.

See Also

person.parameter

Examples

Run this code
# Rasch model, estimation of item and person parameters
data(raschdat2)
res <- RM(raschdat2)
p.res <- person.parameter(res)

# Matrix with expected probabilities and corresponding residuals
pmat(p.res)
residuals(p.res)

#Itemfit
itemfit(p.res)

#Personfit
personfit(p.res)

Run the code above in your browser using DataLab