I've fitted a COZIGAM
model, that is like a GAM model but for Zero-Inflated data.
My model is:
library(COZIGAM)
t5.co<-cozigam(z1~s(y1, bs="cr")+s(lon1,lat1,sst1)+s(sst1,bs="cr"),
conv.crit.out=1e-3, family=poisson, data=data1)
How could I represent the second spline (s(lon1,lat1,sst1)
) with a 3d plot?
I've tried this:
plot(t5.co, select=2, plot.2d="persp")
But it does not work.
Thanks!!