| ml_sens | R Documentation |
Computes the Impact Threshold for a Confounding Variable (ITCV) at each
follow-up time point using the pooled estimates and robust inference from
ml_meta(). Two versions are returned: the raw ITCV (threshold to nullify
the pooled effect) and the significance-adjusted ITCV_alpha (threshold to render
the result non-significant under small-sample-corrected inference).
ml_sens(data, meta_obj, yi, vi, study, time, alpha = NULL, delta = 0.15)
data |
A |
meta_obj |
Output from |
yi, vi, study, time |
Column names (same meaning as in |
alpha |
Significance level. Defaults to the value stored in
|
delta |
Numeric. User-defined practical fragility benchmark: time
points with |
An object of class ml_sens (a data.frame) with columns:
timeFollow-up time.
theta, se, dfCopied from meta_obj.
syWeighted SD of observed effect sizes.
r_effectPooled effect on correlation scale.
itcvRaw ITCV: confounding needed to nullify the estimate.
itcv_alphaSignificance-adjusted ITCV: confounding needed to make the result non-significant.
fragileLogical; TRUE when itcv_alpha < delta.
Attributes include trajectory summaries (itcv_min, itcv_mean,
fragile_prop) and a "fragile_times" character vector.
At each time t, let \hat\theta_t be the pooled effect,
s_{y,t}^2 the weighted variance of observed effect sizes, and
c_t = t_{1-\alpha/2,\nu_t} \cdot \widehat{SE}(\hat\theta_t) the
minimum effect still deemed significant. The correlation-scale pooled effect
is
r_t = \hat\theta_t / \sqrt{\hat\theta_t^2 + s_{y,t}^2}
and the raw ITCV is \sqrt{|r_t|}. The significance-adjusted version
replaces \hat\theta_t with |\hat\theta_t| - c_t.
Frank, K. A. (2000). Impact of a confounding variable on a regression coefficient. Sociological Methods & Research, 29(2), 147-194.
ml_meta(), ml_benchmark(), ml_plot()
dat <- sim_longitudinal_meta(k = 10, times = c(0, 6, 12), seed = 1)
meta <- ml_meta(dat, yi = "yi", vi = "vi", study = "study", time = "time")
sens <- ml_sens(dat, meta, yi = "yi", vi = "vi", study = "study", time = "time")
print(sens)
plot(sens)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.