View source: R/hurdle-methods.R
| logLik.beezdemand_hurdle | R Documentation |
Extracts the log-likelihood from a fitted hurdle demand model. Useful for likelihood ratio tests comparing nested models.
## S3 method for class 'beezdemand_hurdle'
logLik(object, ...)
object |
An object of class |
... |
Additional arguments (currently unused). |
An object of class logLik with the log-likelihood value
and attributes for degrees of freedom and number of observations.
data(apt)
fit <- fit_demand_hurdle(apt, y_var = "y", x_var = "x", id_var = "id")
logLik(fit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.