resp_lik | R Documentation |
resp_lik
returns the likelihood of a response string
for given items and ability.
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)
ip |
An |
resp |
A vector of item responses. |
theta |
An vector containing ability parameters. |
A matrix of likelihood(s)
Emre Gonulates
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.