minus_log_likelihood: Minus log-likelihood.

minus_log_likelihoodR Documentation

Minus log-likelihood.

Description

Returns the opposite of the log-likelihood. The likelihood functions are based on Maddala and Nelson (1974) doi: 10.2307/1914215. The likelihoods expressions that the function uses are derived in Karapanagiotis (2020) doi: 10.2139/ssrn.3525622. The function calculates the model's log likelihood by evaluating the log likelihood of each observation in the sample and summing the evaluation results.

Usage

minus_log_likelihood(object, parameters)

## S4 method for signature 'diseq_basic'
minus_log_likelihood(object, parameters)

## S4 method for signature 'diseq_deterministic_adjustment'
minus_log_likelihood(object, parameters)

## S4 method for signature 'diseq_directional'
minus_log_likelihood(object, parameters)

## S4 method for signature 'diseq_stochastic_adjustment'
minus_log_likelihood(object, parameters)

## S4 method for signature 'equilibrium_model'
minus_log_likelihood(object, parameters)

Arguments

object

A model object.

parameters

A vector of parameters at which the function is to be evaluated.

Value

The opposite of the sum of the likelihoods evaluated for each observation.


diseq documentation built on June 2, 2022, 1:10 a.m.