Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

confint.chandwich() does not carry names of pars through to loglik_fn #56

Open
maebruck opened this issue Dec 14, 2020 · 0 comments
Open
Labels
bug Something isn't working question Further information is requested

Comments

@maebruck
Copy link
Owner

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.

@maebruck maebruck added bug Something isn't working question Further information is requested labels Dec 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant