Learn R Programming

irt (version 0.1.1)

est_ability: Ability Estimation of an examinee

Description

est_ability estimates ability using on various methods such as Owen's Bayesian estimation, Maximum Likelihood estimation, Expected-a-Posteriori.

Usage

est_ability(
  ip,
  resp,
  method = "eap",
  ...,
  prior_dist = "norm",
  prior_pars = c(0, 1),
  theta_range = c(-5, 5),
  number_of_quads = 41,
  tol = 1e-06
)

Arguments

resp

A vector containing examinee responses. If there are missing responses, they will not be included in the ability estimation.

method

The method that will be used to estimate the ability. The default value is "eap".

Current methods are:

'sum_score'

Basic sum (raw) score of responses.

'owen'

Owen's Bayesian Ability Estimation.

This estimation method can be used only for dichotomous IRT models, 'Rasch', '1PL', '2PL', '3PL' and '4PL'.

Formulas were implemented in Owen (1975) and Vale (1977). Original formulation does not contain D parameter. If D = 1 original solution will be obtained. If D = 1.7 the a parameter will be multiplied with this number.

'ml'

Maximum Likelihood Ability Estimation via Newton-Raphson Algorithm

'eap'

Expected-a-Posteriori Ability Estimation

...

Additional arguments passed to specific methods

prior_dist

The shape of the prior distribution. Currently following distributions can be specified:

'norm'

Normal distribution

'unif'

Uniform distribution

't'

t distribution

'cauchy'

Cauchy distribution

Default value is 'norm'.

prior_pars

Parameters of the prior distribution. Default value is c(0, 1) where 0 is the mean and 1 is the standard deviation of the default prior distribution which is normal distribution. Also, for example, uniform prior parameter can be set as c(a, b) where a is the minimum value and b is the maximum value. For t distribution, prior parameter can be set as df to represent the degree of freedom. For Cauchy distribution, prior parameters can be set as c(location, scale).

If method is "owen", provide c(<Prior Mean>, <Prior SD>).

theta_range

The limits of the ability estimation scale. The estimation result will be limited to this interval. The default is c(-5, 5).

number_of_quads

Number of quadratures. The default value is 41. As this number increases, the precision of the estimate will also increase. The default value is 41.

tol

The precision level of ability estimate. The final ability estimates will be rounded to remove the precision that is smaller than the tol value. The default value is 1e-06.

Value

est The ability estimated. If the response vector for a subject contains all NAs, then, in order to differentiate all incorrect and all NA, the est returned will be NA.

se The standard error(s) of the ability estimate(s). For "sum_score" method, all of the standard errors will be NA.

References

Owen, R. J. (1975). A Bayesian sequential procedure for quantal response in the context of adaptive mental testing. Journal of the American Statistical Association, 70(350), 351-356.

Vale, C. D., & Weiss, D. J. (1977). A Rapid Item-Search Procedure for Bayesian Adaptive Testing. Research Report 77-4. Minneapolis, MN.

Examples

Run this code
# NOT RUN {
ip <- generate_ip()
resp <- sim_resp(ip, theta = rnorm(1))

# EAP estimation
est_ability(ip, resp)
est_ability(ip, resp, number_of_quads = 81)
est_ability(ip, resp, prior_pars = c(0, 3))
est_ability(ip, resp, prior_dist = 'unif',  prior_pars = c(-3, 3))
est_ability(ip, resp, prior_dist = 't',  prior_pars = 3)
est_ability(ip, resp, prior_dist = 'cauchy',  prior_pars = c(0, 1))

# Maximum Likelihood estimation
est_ability(ip, resp, method = 'ml')
est_ability(ip, resp, method = 'ml', tol = 1e-8)
est_ability(ip, resp = rep(1, length(ip)), method = 'ml')
est_ability(ip, resp = rep(1, length(ip)), method = 'ml',
            theta_range = c(-3, 3))

# Owen's Bayesian ability estimation
est_ability(ip, resp, method = 'owen')
est_ability(ip, resp, method = 'owen', prior_pars = c(0, 3))

# }

Run the code above in your browser using DataLab