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

View source: R/hurdle-methods.R

logLik.beezdemand_hurdleR Documentation

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 class 'beezdemand_hurdle'
logLik(object, ...)

Arguments

object

An object of class beezdemand_hurdle.

...

Additional arguments (currently unused).

Value

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

Examples


data(apt)
fit <- fit_demand_hurdle(apt, y_var = "y", x_var = "x", id_var = "id")
logLik(fit)



beezdemand documentation built on March 3, 2026, 9:07 a.m.