likelihood: Log-likelihood function (cost function).

View source: R/ordinalbasic.R

likelihoodR Documentation

Log-likelihood function (cost function).

Description

Return log-likelihood function (cost function) value evaluated at a given parameter tensor, an observed tensor, and cut-off points.

Usage

likelihood(ttnsr,theta,omega,type = c("ordinal","Gaussian"))

Arguments

ttnsr

An observed tensor data.

theta

A continuous-valued tensor (latent parameters).

omega

The cut-off points.

type

Types of log-likelihood function.

"ordinal" specifies log-likelihood function based on the cumulative logistic model.

"Gaussian" specifies log-likelihood function based on the Gaussian model.

Value

Log-likelihood value at given inputs.


TensorComplete documentation built on April 14, 2023, 9:10 a.m.