
Jackknife mars wrapper
sample_jackknife.RdThis is a wrapper around mars() to perform leave-one-out jackknife
estimation for a single omitted unit.
Usage
sample_jackknife(
leave_out,
data,
studyID,
effectID = NULL,
sample_size = NULL,
effectsize_type = NULL,
formula = NULL,
variable_names = NULL,
effectsize_name = NULL,
estimation_method = NULL,
variance = NULL,
varcov_type = NULL,
weights = NULL,
structure = NULL,
intercept = FALSE,
missing = "remove",
optim_method = "L-BFGS-B",
robustID = NULL,
multivariate_covs = NULL,
jackknife_target = c("complete_data", "beta_selection", "beta_binomial",
"logistic_selection"),
publication_bias_args = list(),
lasso = FALSE,
lasso_args = list(),
tol = NULL,
...
)Arguments
- leave_out
Unit to omit from the dataset. For single-level models this with one row per study this is a row index. Otherwise it is a study ID, outermost random-group value, or robustID value, matching replicate_jackknife().
- data
Data used for analysis.
- studyID
Character string representing the study ID.
- effectID
Character string representing the effect size ID.
- sample_size
Character string representing the sample size of the studies.
- effectsize_type
Type of effect size being analyzed.
- formula
The formula used for specifying the fixed and random structure.
- variable_names
Vector of character strings representing the attributes with correlations. The attributes that are correlated should be separated by an underscore.
- effectsize_name
Character string representing the name of the effect size column in the data.
- estimation_method
Estimator. NULL uses REML for ordinary models and MLE for LASSO.
- variance
Character string representing the variance column name.
- varcov_type
Type of variance covariance matrix computed.
- weights
User specified matrix of weights for analysis.
- structure
Between-study covariance structure; NULL infers it from formula.
- intercept
Whether a model intercept should be specified.
- missing
Whether missing data should be removed, or kept.
- optim_method
Optimization method passed to
optim().- robustID
A character vector specifying the cluster group to use for robust standard errors.
- multivariate_covs
A one-sided formula for multivariate analysis covariates.
- jackknife_target
Analysis to fit after each leave-one-out omission. Use
"complete_data"for the standard MARS re-fit, or one of"beta_selection","beta_binomial", or"logistic_selection"to refit the omitted dataset and then applypublication_biaswith that method.- publication_bias_args
Optional named list of extra arguments passed to
publication_biaswhenjackknife_targetis a publication-bias method.- lasso
Refit mars_lasso(); summaries describe selection stability.
- lasso_args
Named controls for mars_lasso(), such as folds and selection.
- tol
NULL retains the fitting engine's default tolerance.
- ...
Additional arguments passed to
marsfor each jackknife re-fit.