`R/market_model.R`

, `R/diseq_basic.R`

, `R/diseq_deterministic_adjustment.R`

, and 3 more
`minus_log_likelihood.Rd`

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.

```
minus_log_likelihood(object, parameters)
# S4 method for diseq_basic
minus_log_likelihood(object, parameters)
# S4 method for diseq_deterministic_adjustment
minus_log_likelihood(object, parameters)
# S4 method for diseq_directional
minus_log_likelihood(object, parameters)
# S4 method for diseq_stochastic_adjustment
minus_log_likelihood(object, parameters)
# S4 method for equilibrium_model
minus_log_likelihood(object, parameters)
```

- object
A model object.

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

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