
Permutation mars wrapper
permutation_mars.RdThis is a wrapper around mars() to perform one permutation replicate.
Independent univariate mean models permute effect signs. Global moderator
tests permute entire moderator blocks relative to effects and sampling variances.
Dependent, scale, LASSO, and supplied-weight models are rejected.
Usage
permutation_mars(
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,
lasso = FALSE,
lasso_args = list(),
tol = NULL,
scheme = c("auto", "sign", "moderators"),
assume_exchangeable = FALSE,
...
)Arguments
- 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
MLE or REML; NULL uses REML.
- variance
Character string representing the name of the variance of the effect size in the data.
- 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 that is passed to the optim function.
- robustID
A character vector specifying the cluster group to use for computing the robust standard errors.
- multivariate_covs
A one-sided formula to specify the covariates used in a multivariate analysis.
- lasso
Must be FALSE; LASSO permutation inference is unsupported.
- lasso_args
Named controls for mars_lasso(), such as folds and selection.
- tol
NULL retains the fitting engine's default tolerance.
- scheme
auto selects sign changes for intercept-only models and moderator permutation otherwise. sign requires independent symmetric errors around zero.
- assume_exchangeable
Set TRUE only when moderator blocks are exchangeable relative to effects and variances under the global null of all slopes zero.
- ...
Additional arguments forwarded to mars(), such as tau2 or robust_args.