pfs: Calculate Person Fit Statistics.

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/auxiliar_functions.r

Description

Function to calculate person fit statistics.

Usage

1
  pfs(mod, level = 0.05, ab_type = 'wle')

Arguments

mod

A fitted rasch model.

level

A numeric indicating cutoff value for testing lack of fit. Default is 0.05.

ab_type

A character indicating which procedure should be used to estimate ability parameters. Possible choices are 'wle' (default), 'mle', 'bme' and 'eap'.

Details

The procedure described by Snijders (2001) is used to calculate a statistic of the form:

∑_j (y_j - P_j(θ))w_j(θ)

Where w_j(θ) are corrected to account for ability estimation.

Value

A data.frame vector containing the value of the estimated abilities, statistics and p-values.

Author(s)

Fernando Massa, fmassa@iesta.edu.uy

References

\insertRef

snijders2001raschreg

See Also

cooksD

Examples

1
2
3
4
5
n   <- 50
dif <- seq(-2, 2, length = 7)
X   <- sim_rasch(n, delta = dif)
mod <- rasch(X)
pfs(mod)

nando11235813/raschreg documentation built on Oct. 2, 2021, 3:11 p.m.