resp_lik {irt} | R Documentation |
Likelihood of a response string
Description
resp_lik
returns the likelihood of a response string
for given items and ability.
Usage
resp_lik(ip, resp, theta)
## S4 method for signature 'Item'
resp_lik(ip, resp, theta)
## S4 method for signature 'Itempool'
resp_lik(ip, resp, theta)
## S4 method for signature 'Testlet'
resp_lik(ip, resp, theta)
Arguments
ip |
An |
resp |
A vector of item responses. |
theta |
An vector containing ability parameters. |
Value
A matrix of likelihood(s)
Author(s)
Emre Gonulates
Examples
item <- generate_item(model = "3PL")
theta <- rnorm(6)
resp <- sim_resp(ip = item, theta = theta, prop_missing = .1)
resp_lik(ip = item, resp = resp, theta = theta)
item <- generate_item(model = "GRM")
resp <- sim_resp(ip = item, theta = theta, prop_missing = .1)
resp_lik(ip = item, resp = resp, theta = theta)
ip <- generate_ip(model = "3PL")
theta <- rnorm(6)
resp <- sim_resp(ip = ip, theta = theta, prop_missing = .1)
resp_lik(ip = ip, resp = resp, theta = theta)
ip <- generate_ip(model = "GRM")
resp <- sim_resp(ip = ip, theta = theta, prop_missing = .1)
resp_lik(ip = ip, resp = resp, theta = theta)
[Package irt version 0.2.9 Index]