DistanceDevelopment / MCDS_mrds_compare

1 stars 0 forks source link

Errors and warnings from MCDS #5

Open LHMarshall opened 1 year ago

LHMarshall commented 1 year ago

Some warnings are not useful to the user eg

image

This one may be because MCDS knows about cluster size when it really doesn't need to however!

This one is also not relevant as MCDS is only used to estimate the detection function

# ** Warning: Cannot estimate encounter rate variance empirically as there is only one sample.  Setting encounter rate variance to zero. **
LHMarshall commented 1 year ago

Hmm so apparently I didn't ever post this!

To avoid the above warning I plan to remove the code which renames size to Cluster Size. This will mean that size gets passed to MCDS just like any other covariate and cluster will always be set to false. This is what we want isn't it MCDS doesn't need to know about clusters as we just want it to treat it like any other covariate?

However, this fails as apparently MCDS knows about cluster size just based on the presence of a 'size' column in the data!

image image
LHMarshall commented 1 year ago

Also I have checked and the option to estimate the detection function only is set and yet we still see warnings about 'Cannot estimate encounter rate variance empirically as there is only one sample.'

Detection = ALL; is the command for estimating the detection function

image

If you want to estimate everything then you use

image
LHMarshall commented 1 year ago

Ignoring some warnings via this commit 2c182444306b3719ad614e78317a65c68cbd383c https://github.com/DistanceDevelopment/mrds/commit/2c182444306b3719ad614e78317a65c68cbd383c