Description Usage Arguments Details Value Author(s) References Examples
View source: R/auxiliar_functions.r
Prediction of person abilities from a Rasch (regression) model.
1 |
mod |
Fitted Rasch (regression) model. |
type |
A character string. Possible values are |
R |
A numeric value indicating the number of simulations used to approximate |
Abilities are estimated as follows.
eap
. θ es estimated by approximating:
\frac{θ P(Y=y|θ)f(θ)dθ}{\int P(Y=y|θ)f(θ)dθ}
R values are simulated from f(θ) and the quotient is approximated by:
\frac{∑_j θ_j P(Y=y|θ_j)}{∑_j P(Y=y|θ_j)}
bme
. θ es estimated as the solution of:
∑_j (x_j - P_j(θ))\frac{P^{'}(θ)}{P(θ)(1-P(θ))} - θ = 0
mle
θ es estimated as the solution of:
∑_j (x_j - P_j(θ))\frac{P^{'}(θ)}{P(θ)(1-P(θ))} = 0
wleθ es estimated as the solution of:
∑_j (x_j - P_j(θ))\frac{P^{'}(θ)}{P(θ)(1-P(θ))} + \frac{J(θ)}{2I(θ)} = 0
A numeric containing a single column with the estimated abilities.
Fernando Massa, fmassa@iesta.edu.uy
warm1989raschreg \insertRefmagis2016raschreg
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))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.