Learn R Programming

tensorordinal (version 0.2.0)

likelihood: 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