This function provides a unified access point to extraction functions. Some of these functions require bootstrapping and result aggregation, which are handled here.
# S4 method for familiarEnsemble,familiarDataElement
extract_dispatcher(
cl = NULL,
FUN,
object,
proto_data_element,
aggregate_results,
has_internal_bootstrap,
...,
message_indent = 0L,
verbose = TRUE
)A list of familiarDataElement objects.
Cluster created using the parallel package. This cluster is then
used to speed up computation through parallellisation.
Extraction function or method to which data and parameters are dispatched.
A familiarEnsemble object.
A familiarDataElement object, or an object that
inherits from it.
A logical flag indicating whether results should be aggregated.
A logical flag that indicates whether FUN has
internal bootstrapping capabilities.
Unused arguments.
Number of indentation steps for messages shown during computation and extraction of various data elements.
Flag to indicate whether feedback should be provided on the computation and extraction of various data elements.
This function first determines how many data points need to be evaluated to complete the desired estimation, i.e. 1 for point estimates, 20 for bias-corrected estimates, and 20 / (1 - confidence level) for bootstrap confidence intervals.
Subsequently, we determine the number of models. This number is used to set
external or internal clusters, the number of bootstraps, and to evaluate
whether the estimation can be done in case FUN does not support
bootstrapping.