Learn R Programming

beezdemand (version 0.2.0)

logLik.beezdemand_hurdle: Extract Log-Likelihood from Hurdle Demand Model

Description

Extracts the log-likelihood from a fitted hurdle demand model. Useful for likelihood ratio tests comparing nested models.

Usage

# S3 method for beezdemand_hurdle
logLik(object, ...)

Value

An object of class logLik with the log-likelihood value and attributes for degrees of freedom and number of observations.

Arguments

object

An object of class beezdemand_hurdle.

...

Additional arguments (currently unused).

Examples

Run this code
# \donttest{
data(apt)
fit <- fit_demand_hurdle(apt, y_var = "y", x_var = "x", id_var = "id")
logLik(fit)
# }

Run the code above in your browser using DataLab