d2l_full: Hessian of the log-likelihood for a combined assessment.

Description Usage Arguments Value

View source: R/cIRF_functions.R

Description

This function computes second derivatives of the log-likelihood for a combined assessment, in which the 2PL model is used for the individual component of the assessment and the one-parameter RSC model is used for the group component of the assessment. The derivatives are taken in c(u, theta1, theta2). See help(l_full) for details on formatting resp and parms.

Usage

1
d2l_full(resp, u, parms, theta1, theta2, obs = T)

Arguments

resp

a data.frame containing the binary item responses of both the individual assessment and the (conjunctively scored) group assessment. See details for information on formatting.

u

the logit of the weight parameter of the RSC model.

parms

a data.frame with elements parms$alpha and parms$beta corresponding to the discrimination and difficulty parameters of the 2PL model, respectively. See details for information on formatting.

theta1

the latent trait of member 1.

theta2

the latent trait of member 2.

obs

logical: should the observed value be returned? If not, the expected value is returned.

Value

3 * K by 3 * K block-diagonal, symmmetrical matrix of second derivatives, with K = length(u) and rows/cols ordered as rep(c(u_k, theta1_k, theta2_k), times = K).


peterhalpin/cirt documentation built on July 15, 2018, 12:42 p.m.