Good day,
I was trying to use validate() to remove rogue values based on the SE of the density estimate. I wanted to discard all statistics if the SE was either very small, or larger than the simulated D (where RSE > 1).
However I tried to use validate(), I got similar error messages. The syntax in the example below was intended to mimic that in the secrdesign vignette, page 23. BTW I'm aware that 20 replicates is probably insufficient for some statistics. Just trying to get things working before I increase it.
> Frun12X4 = run.scenarios(nrepl = 20, scenarios = Fscen1, trapset = tline12X4, maskset = knp.mask, fit = T)
> FD12X4 = select.stats(Frun12X4, parameter = "D", statistics = c("estimate", "SE.estimate", "lcl", "ucl", "ERR", "RB", "RSE", "COV"))
> FD12X4.v = validate(FD12X4, "SE.estimate", c(0.0005, 0.04), "all")
Error in `[<-.data.frame`(`*tmp*`, criterion, targets, value = NA) :
missing values are not allowed in subscripted assignments of data frames
Thanks in advance,
Eric