powered by
Extracts the log-likelihood from a fitted hurdle demand model. Useful for likelihood ratio tests comparing nested models.
# S3 method for beezdemand_hurdle logLik(object, ...)
An object of class logLik with the log-likelihood value and attributes for degrees of freedom and number of observations.
logLik
An object of class beezdemand_hurdle.
beezdemand_hurdle
Additional arguments (currently unused).
# \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