ability: Person Ability Estimation

Description Usage Arguments Details Value Author(s) References Examples

View source: R/auxiliar_functions.r

Description

Prediction of person abilities from a Rasch (regression) model.

Usage

1
ability(mod, type = 'wle', R = 100)

Arguments

mod

Fitted Rasch (regression) model.

type

A character string. Possible values are eap (Expected a posteriori), bme (Bayesian modal estimation), mle (Maximum likellihood estimation) and wle (Weighted likelihood estimation). Default to 'wle'.

R

A numeric value indicating the number of simulations used to approximate theta when type eap is selected. Default is 100.

Details

Abilities are estimated as follows.

Value

A numeric containing a single column with the estimated abilities.

Author(s)

Fernando Massa, fmassa@iesta.edu.uy

References

\insertRef

warm1989raschreg \insertRefmagis2016raschreg

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
n <- 100
x <- sim_rasch(n, ability = TRUE)
J <- ncol(x) - 1
X <- x[, 1:J]
ab <- x[,J+1]
mod <- rasch(X)

# ability estimation
ab_wle <- ability(mod, type = 'wle')
ab_mle <- ability(mod, type = 'mle')
ab_bme <- ability(mod, type = 'bme')
ab_eap <- ability(mod, type = 'eap')

# comparison
cor(cbind(ab, ab_wle, ab_mle, ab_bme, ab_eap))

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