llike: Log-Likelihood for ordinal regression

View source: R/functions.R

llikeR Documentation

Log-Likelihood for ordinal regression

Description

This function evaluates the log-likelihood of the response for a given value of the parameters.

Usage

llike(Y, W, tau)

Arguments

Y

ordinal response

W

global variance

tau

cut-points

Value

value of log-likelihood at Y, W and tau

Examples

set.seed(1234)
K = 3 # number of response categories
Y = sample(1:K, 10, replace=TRUE) # generate responses
W = 1 
tau = c(-1, 1) # set parameter values
llike(Y, W, tau)


R2D2ordinal documentation built on April 3, 2025, 7:50 p.m.