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

View source: R/cl_l.R

cl_lR Documentation

Composite Likelihood Calculation for Spatial Ordinal Data without Replications (for implmentation)

Description

cl_l Calculate the negative composite log-likelihood value for a particular subject given parameter value and other input variables

Usage

cl_l(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

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_l in clordr...