Skip to content

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

Description

@maebruck
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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingquestionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions