Description Usage Arguments Value
Computes the second derivatives of the log-likelihood, in c(u, theta1, theta2)
. Called by RSC
. Calls the function bdiag_m
written by Martin Maechler, ETH Zurich.
1 | d2l_RSC(resp, u, parms, theta1, theta2, obs = T)
|
resp |
a matrix or data.frame containing the (conjunctively-scored, binary)item responses. |
u |
the logit of the weight parameter of the RSC model. |
parms |
a data.frame with columns |
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. |
3 * K
by 3 * K
block-diagonal, symmmetrical matrix of second derivatives, with K = length(w)
and rows/cols ordered as rep(c(w_k, theta1_k, theta2_k), times = K)
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.