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

varsel() does not work with negative binomial model #101

Closed
yongparkpitt opened this issue Mar 29, 2021 · 2 comments
Closed

varsel() does not work with negative binomial model #101

yongparkpitt opened this issue Mar 29, 2021 · 2 comments

Comments

@yongparkpitt
Copy link

I fitted a negative binomial model like this:

fit <- stan_glm(family=neg_binomial_2(), diabetes ~ gender + anxietyRate_s + smokingRate_s + obesityRate_s, offset = log(diabetesAtRisk), data=data2015)

cvs <- cv_varsel(fit, cv_method='LOO')
Error in get(extend_family_specific, mode = "function") :
object 'extend_family_neg_binomial_2' of mode 'function' was not found

Any suggestion how I can solve the problem?

Yongseok

@AlejandroCatalina
Copy link
Collaborator

Hi!

First of all, thanks for your interest in using projpred.

Unfortunately, models outside of the exponential family are not implemented for now, and that applies to negative binomial models. We are working on making projpred available for a wide class of models outside of the exponential family and hopefully we'll bring support for negative binomial models soon.

@AlejandroCatalina
Copy link
Collaborator

This is already mentioned in #67, so I'm closing this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants