cl {clordr} | R Documentation |
Composite Likelihood Calculation for Spatial Ordinal Data without Replications (for implmentation)
Description
cl
Calculate the negative composite log-likelihood value and score function for a particular subject given parameter value and other input variables.
Usage
cl(theta, y, X, dwdv, cmwdv, lt, wn, base, J, p)
Arguments
theta |
a vector of parameter value. |
y |
a vector of observation for the subject. |
X |
covariate for the particular subject. |
dwdv |
corresponding distance of selected pair. |
cmwdv |
combination of the pairs included into the composite likelihood. |
lt |
number of parameter (i.e. length of theta). |
wn |
number of pairs with distance. |
base |
identity matrix with dimension |
J |
number of category among (ALL) observed response. |
p |
number of covariate (i.e. number of column of |
Value
cl
returns a list: composite log-likelihood value and a vector of first-order partial derivatives for theta
.
[Package clordr version 1.7.0 Index]