.run_leave1out | R Documentation |
Iteratively refits a meta-analytic model, leaving out one level of a specified grouping variable in each iteration. This internal function handles the actual model refitting process for the leave-one-out analysis.
.run_leave1out(
model,
group,
vcalc_args = NULL,
robust_args = NULL,
phylo_args = NULL
)
model |
A fitted metafor model object containing a |
group |
A character string specifying the column in |
vcalc_args |
Optional list of arguments for the variance-covariance calculation using
metafor's vcalc function. See |
robust_args |
Optional list of arguments for robust variance estimation using
metafor's robust function. See |
phylo_args |
Optional list of arguments for phylogenetic matrix calculation.
See |
The function creates a subset of the original data for each unique value in the grouping variable, removing that group and refitting the model using the same specification as the original model. If variance-covariance matrices or phylogenetic corrections were used in the original model, these are recalculated for each subset. If a model fails to fit, NULL is returned for that group.
A named list of models, each fitted after omitting one group. Names correspond to the omitted group IDs. Any failed model fits will be NULL.
Facundo Decunta - fdecunta@agro.uba.ar
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.