Skip to contents

This function computes the log-likelihood value given the threshold increments d.

Usage

ll_ordered(d, y, mu, Tvec)

Arguments

d

A numeric vector of threshold increments.

y

A matrix of the choices.

mu

A matrix of the systematic utilities.

Tvec

The element Tvec in sufficient_statistics.

Value

The log-likelihood value.

Examples

ll_ordered(c(0,0,0), matrix(1), matrix(1), 1)
#> [1] -1.841022