logL: Log-likelihood of 2PL, conditional on theta.

Description Usage Arguments Value

Description

Computes loglikeihood of a response pattern under the 2PL model, given item parms and theta.

Usage

1
logL(resp, parms, theta)

Arguments

resp

a matrix or data.frame containing the binary item responses.

parms

a named list or data.frame with elements parms$alpha and parms$beta corresponding to the discrimination and difficulty parameters of the 2PL model, respectively.

theta

the latent trait.

Value

length(theta)-vector of log-likelihoods.


peterhalpin/BearShare documentation built on May 25, 2019, 12:48 a.m.