# how to choose family in CVgam in r?

I'm trying to run a repeated k-fold cross validation of my GAM model, but I can't specify my family in CVgam in R. I want to compare poisson GAM and Negative binomial GAM. How can I solve this problem?

• From what package is CVgam()? – Gavin Simpson Nov 24 '20 at 16:51
• It is from gamclass. – hans Nov 24 '20 at 17:56