Description Usage Arguments Details Examples
Produces table showing the proportion of true effect sizes more extreme than .q
across a grid of bias parameters .muB
and .sigB
(for .meas == "prop"
).
Alternatively, produces a table showing the minimum bias factor (for .meas == "Tmin"
)
or confounding strength (for .meas == "Gmin"
) required to reduce to less than
.r
the proportion of true effects more extreme than .q
.
1 2 | sens_table(.meas, .q, .r = seq(0.1, 0.9, 0.1), .muB = NULL, .sigB = NULL,
.yr, .t2)
|
.meas |
|
.q |
True effect size that is the threshold for "scientific significance" |
.r |
For |
.muB |
Mean bias factor on the log scale across studies |
.sigB |
Standard deviation of log bias factor across studies |
.yr |
Pooled point estimate (on log scale) from confounded meta-analysis |
.t2 |
Estimated heterogeneity (tau^2) from confounded meta-analysis |
For .meas=="Tmin"
or .meas=="Gmin"
, arguments .muB
and
.sigB
can be left NULL
; .r
can also be NULL
as
it will default to a reasonable range of proportions. Returns a data.frame
whose rows are values of .muB
(for .meas=="prop"
) or of .r
(for .meas=="Tmin"
or .meas=="Gmin"
). Its columns are values of
.sigB
(for .meas=="prop"
) or of .q
(for .meas=="Tmin"
or .meas=="Gmin"
).
Tables for Gmin
will display NaN
for cells corresponding to Tmin
<1,
i.e., for which no bias is required to reduce the effects as specified.
1 2 3 4 5 6 7 8 9 10 | sens_table( .meas="prop", .q=log(1.1), .muB=c( log(1.1),
log(1.5), log(2.0) ), .sigB=c(0, 0.1, 0.2),
.yr=log(2.5), .t2=0.1 )
sens_table( .meas="Tmin", .q=c( log(1.1), log(1.5) ),
.yr=log(1.3), .t2=0.1 )
# will have NaNs in cells with Tmin < 1 (no bias needed)
sens_table( .meas="Gmin", .r=0.8, .q=c( log(1.1) ),
.yr=log(1.3), .t2=0.1 )
|
Rows: .muB
Columns: .sigB
0 0.1 0.2
0.095 0.9891269 0.9922163 0.9984744
0.405 0.9055727 0.9169816 0.9550887
0.693 0.6569836 0.6649866 0.6991222
There were 18 warnings (use warnings() to see them)
Rows: .r
Columns: .q
0.095 0.405
0.1 1.7723676 1.2997362
0.2 1.5421817 1.1309332
0.3 1.3949856 1.0229894
0.4 1.2803961 0.9389571
0.5 1.1818182 0.8666667
0.6 1.0908298 0.7999419
0.7 1.0012248 0.7342315
0.8 0.9056613 0.6641516
0.9 0.7880387 0.5778950
There were 26 warnings (use warnings() to see them)
Rows: .r
Columns: .q
0.095
0.8 NaN
Warning messages:
1: In confounded_meta(.q = .q[j], .r = .r[i], .yr = .yr, .t2 = .t2) :
Cannot compute inference without .vyr and .vt2. Returning only point estimates.
2: In sqrt(Tmin^2 - Tmin) : NaNs produced
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.