likelihood: Log-likelihood function (cost function).

Description Usage Arguments Value

View source: R/ordinalbasic.R

Description

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

Usage

1
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 May 11, 2021, 5:08 p.m.