Variance estimation in a zero-inflated DSM using ziplss()

131 views
Skip to first unread message

bouchet.philippe

unread,
Jun 26, 2015, 4:24:06 AM6/26/15
to distance...@googlegroups.com
Dear listfolk,

I am struggling with a zero-inflated density surface model (DSM) built using the new ziplss() response.

This is following some of David Miller's suggestions from earlier this month (https://groups.google.com/forum/#!topic/distance-sampling/Z2Cbc3-VYG4).

The model is of the form: 

zipdsm(list(N~s(x,y, m=c(1,.5)),~s(depth, m=1)+s(shore, m=1)),  
             det.hn.cos2$ddf,
             seg.data,
             obs.data[obs.data$distance<=250,],
             family=ziplss())

Where the probability of presence is modelled as a function of both depth and distance from shore (in line with existing biological knowledge about the species) and the Poisson component is modelled as a bivariate smooth of x and y (transformed lat/lon).
zipdsm is a modified version of the dsm function tweaked to accomodate a formula in two parts as shown above.
The model runs smoothly and gives me a sensible abundance estimate.

However, I am facing two problems:

(1) ziplss returns warning messages to inform me that offsets are ignored.

1: In estimate.gam(G, method, optimizer, control, in.out, scale, gamma,  :
  sorry, general families currently ignore offsets

Given the importance of including segment areas as offsets, I am worried about this - but unsure how to work around it?

(2) I tried adapting the dsm.var.prop/dsm.var.gam to suit my zero-inflated model but without success.

I think I may be failing to properly retrieve/code the inverse link function, as it is a two-stage model.
There may also be issues with offsets if ziplss disregards them when they're needed.

Does anyone know how to solve this?

I have tried a quasipoisson model but it is greatly overdispersed and the residuals look terrible.
I also tried a negative binomial but I don't trust it. Although the residuals plots look better, the abundance estimates are through the roof and the predictive surface, when mapped, does not match sightings well. In addition, Zuur et al. (Zero Inflated models and generalized linear mixed models in R, p78) suggest that negative binomial models may return biased estimates in the presence of zero-inflation. This would explain the "weird" predictions I get with this model.

It is therefore critical that I try and make the ZI work.
Any inputs, thoughts, or advice will be immensely appreciated.

Thanks in advance,
Phil













David Lawrence Miller

unread,
Jul 14, 2015, 4:26:22 PM7/14/15
to bouchet.philippe, distance...@googlegroups.com
Hi Phil, hi listfolk,

Apologies for the extremely tardy reply.

I'm afraid I may have sent you in the wrong direction in my previous
post. I hadn't tried out the ziplss family yet with DSM. I see that's
more problematic that I thought it would be.

Sorry for leading you down that particular rabbit warren...

If you drop me an e-mail off-list I can have a further think about this,
I'm interested to see the data that's causing such an issue!


best,
--dave
> --
> You received this message because you are subscribed to the Google
> Groups "distance-sampling" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to distance-sampl...@googlegroups.com
> <mailto:distance-sampl...@googlegroups.com>.
> To post to this group, send email to distance...@googlegroups.com
> <mailto:distance...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/distance-sampling/543ab995-1f32-4c6c-ade7-3c54506743af%40googlegroups.com
> <https://groups.google.com/d/msgid/distance-sampling/543ab995-1f32-4c6c-ade7-3c54506743af%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages