simulate method for unmarkedFitGDS fails when there are NAs in siteCovs
Closed this issue · 0 comments
kenkellner commented
When running this simulate method in parboot
the design matrices are generated without cleaning up NAs. This can result in missing values for the lambda vector:
Line 4371 in 1034723
Eventually these NAs reach the size argument of rmultinom
which errors instead of returning another NA (unlike most random number functions in R?)
Line 4412 in 1034723
Probably need to put a check in here and skip running rmultinom
when lambda = NA
and directly set the value of y
to NA
.