library(chantrics)
data("RecreationDemand", package = "AER")
rd_hurdle_nb <- pscl::hurdle(trips ~ . | quality + income, data = RecreationDemand, dist = "negbin", x = TRUE)
rd_hurdle_nb_adj <- adj_loglik(rd_hurdle_nb)
confint(rd_hurdle_nb_adj)
yields error
Error in startsWith(names(pars), "count") : non-character object(s)
21. startsWith(names(pars), "count") at hurdle.R#71
20. logLik_vec.hurdle(fitted_object, pars = pars) at logLik_vec_methods.R#22
as loglik_vec.hurdle() does not receive names(pars), the matching to count and null does not work.
yields error
as
loglik_vec.hurdle()does not receivenames(pars), the matching tocountandnulldoes not work.