Currently ei_iter() takes a fixed number of importance samples to form final estimates. The file ei_sim.R ports over all necessary functions from within the ei package and alters them to be parameterized. But when this is implemented we get different results in some instances. To replicate this problem, take this section of the ei_iter code:
|
simulate = TRUE, |
|
args_pass |
|
) |
|
) |
|
}) |
|
break |
|
# This was meant to enable parameterization of the ei importance sample |
|
# size, but its inclusion changes results dramatically. |
|
# utils::capture.output({ |
|
# ei_out <- suppressMessages(ei_sim(ei_out, samples)) |
|
# }) |
|
}, |
Uncomment lines 191-193 and switch simulate = FALSE, then compare ei_iter results to ei_est_gen. Will see large differences, especially where uncertainty is high.
This might be due to differences in the namespaces from which functions with ei_sim are drawn. The ei package is not explicit about which packages it is pulling different distribution-related functions. I have made best guesses based on the imports listed in the ei package NAMESPACE file, but these could be wrong, or they could be different versions of the same function.
Currently
ei_iter()takes a fixed number of importance samples to form final estimates. The fileei_sim.Rports over all necessary functions from within theeipackage and alters them to be parameterized. But when this is implemented we get different results in some instances. To replicate this problem, take this section of theei_itercode:eiCompare/R/ei_iter.R
Lines 183 to 194 in a65ce94
Uncomment lines
191-193and switchsimulate = FALSE, then compareei_iterresults toei_est_gen. Will see large differences, especially where uncertainty is high.This might be due to differences in the namespaces from which functions with
ei_simare drawn. Theeipackage is not explicit about which packages it is pulling different distribution-related functions. I have made best guesses based on the imports listed in theeipackageNAMESPACEfile, but these could be wrong, or they could be different versions of the same function.