likelihood: Log-likelihood function (cost function)

Description Usage Arguments Value

View source: R/basicfunction.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


tensorordinal documentation built on Jan. 13, 2021, 9:17 p.m.