[R] Error in Zero inflated model (ziP) with bam

Miluji Sb milujisb at gmail.com
Mon Nov 6 18:12:06 CET 2017

Dear all,

I am trying to use 'bam' to run the following generalized additive model:

m <- bam(result ~ factor(city) + factor(year) + lnpopulation +
s(lnincome_pc) + ,data=full_df,na.action=na.omit,family=ziP(theta = NULL,
link = "identity",b=0))

But getting the following error:

Error in bam(result :
  extended families not supported by bam

The documentation for 'bam' mentions the following "This is a family object
specifying the distribution and link to use in fitting etc. See glm and
family for more details. The extended families listed in family.mgcv can
also be used."

The family.mgcv does include ziP. What am I doing wrong? Any guidance will
be appreciated. Thank you!



	[[alternative HTML version deleted]]

More information about the R-help mailing list