DistanceDevelopment / distance-bugs

A place to keep bugs in Distance
http://distancesampling.org/Distance
1 stars 0 forks source link

mads crashing when including covariate uncertainty #156

Closed LHMarshall closed 8 years ago

LHMarshall commented 8 years ago

When resampling cluster size and cluster size was a covariate in one or more the ddf models supplied to mads sometimes crashed when trying to calculate abundance / density in dht.

On further investigation I discovered that the resample led to fitted values of zero in the ddf object. Ddf was happy to fit the model and give a Pa of 0 and therefore an N of Inf but dht could not proceed

LHMarshall commented 8 years ago

I have now made mads detect when fitted values are zeros and mads will then exclude this model