cl_l
Calculate the negative composite log-likelihood value for a particular subject given parameter value and other input variables
cl_l(theta, y, X, dwdv, cmwdv, lt, wn, base, J, p)
a vector of parameter value
a vector of observation for the subject.
covariate for the particular subject
corresponding distance of selected pair
combination of the pairs included into the composite likelihood
number of parameter (i.e. length of theta)
number of pairs
identity matrix with dimension J+1
number of category among (ALL) observed response.
number of covariate (i.e. number of column of X
)
cl
returns a list: composite log-likelihood value and a vector of first-order partial derivatives for theta
.