Open erex opened 10 months ago
Perhaps it could generate a warning if the region object does not match? That way the user could still proceed if they have some good reason for a mis-matched population and design region? (I can't think of a reason offhand, but I'm sure there are some!...)
I have it on my todo list to re-assess the validation function for Simulation creation. I will do this at the same time as #76
I created a study region of non-default dimensions:
I used
risso.region
to specify the population descriptionHowever, I failed to specify
risso.region
when callingmake.design
The resulting mismatch caused half of the transects to fall within a region where there were animals and the other half of the transects falling in a region without animals. Because I had not specified
plot(size.cov.survey)
to visualise this problem, I stupidly ran hundreds of simulations producing poor precision in my estimates because of the crazed encounter rate variance I had induced.Suggested code change
Perhaps somewhere in
make.simulation
there could be a check of theregion
object frommake.population.description
matches theregion
object used in the specification ofmake.design