cl: Composite Likelihood Calculation for Spatial Ordinal Data...

View source: R/cl.R

clR 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+1.

J

number of category among (ALL) observed response.

p

number of covariate (i.e. number of column of X).

Value

cl returns a list: composite log-likelihood value and a vector of first-order partial derivatives for theta.


clordr documentation built on March 25, 2022, 1:06 a.m.

Related to cl in clordr...