resp_loglik | R Documentation |
resp_loglik
returns the log-likelihood of a response string
for given items and ability.
resp_loglik(ip, resp, theta, derivative = 0) ## S4 method for signature 'Item,ANY' resp_loglik(ip, resp, theta, derivative = 0) ## S4 method for signature 'Itempool,ANY' resp_loglik(ip, resp, theta, derivative = 0) ## S4 method for signature 'Testlet,ANY' resp_loglik(ip, resp, theta, derivative = 0) ## S4 method for signature 'numMatDfListChar,ANY' resp_loglik(ip, resp, theta, derivative = 0) ## S4 method for signature 'Itempool,Response' resp_loglik(ip, resp, theta, derivative = 0) ## S4 method for signature 'Itempool,Response_set' resp_loglik(ip, resp, theta, derivative = 0)
ip |
An |
resp |
A vector of item responses. |
theta |
An vector containing ability parameters. |
derivative |
Whether to calculate the first or second derivative of response log-likelihood.
|
A matrix of log-likelihood(s)
Emre Gonulates
item <- generate_item(model = "3PL") theta <- rnorm(6) resp <- sim_resp(ip = item, theta = theta, prop_missing = .1) resp_loglik(ip = item, resp = resp, theta = theta) item <- generate_item(model = "GRM") resp <- sim_resp(ip = item, theta = theta, prop_missing = .1) resp_loglik(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_loglik(ip = ip, resp = resp, theta = theta) resp_loglik(ip = ip, resp = resp, theta = theta, derivative = 1) resp_loglik(ip = ip, resp = resp, theta = theta, derivative = 2) ip <- generate_ip(model = "GPCM") resp <- sim_resp(ip = ip, theta = theta, prop_missing = .1) resp_loglik(ip = ip, resp = resp, theta = theta) resp_loglik(ip = ip, resp = resp, theta = theta, derivative = 1) resp_loglik(ip = ip, resp = resp, theta = theta, derivative = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.