Description Usage Arguments Value Functions Examples
Compute all pairwise comparisons for the full network, all direct comparisons, or all indirect.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | msc_full(ps, mods = NULL, mtype = c("consistency", "inconsistency")[1],
ref = NULL, verbose = FALSE, ...)
msc_model(ps, mods = NULL, mtype = c("consistency",
"inconsistency")[1], ref = NULL, ...)
msc_network(ps, mods = NULL, mtype = c("consistency",
"inconsistency")[1], ref = NULL, ...)
msc_direct(ps, mods = NULL, mtype = c("consistency",
"inconsistency")[1], ref = NULL, verbose = FALSE, ...)
msc_indirect(ps, mods = NULL, mtype = c("consistency",
"inconsistency")[1], ref = NULL, verbose = FALSE, ...)
## S3 method for class 'msc'
print(x, ...)
## S3 method for class 'msc'
plot(x, compare_to = NULL, newlabels = NULL, ...)
|
ps |
A set of raw performance estimates, see |
mods |
A vector of variable names that are moderators, that is, covariates which could affect the differences in score performance. See also |
mtype |
Type of model (default "consistency", else "inconsistency"). It is sufficient to write |
ref |
Reference score, that is, the base score to which performance should be compared. In |
verbose |
If TRUE, results of each model will be printed (default FALSE) |
... |
In the |
x |
An object of class |
compare_to |
Deprecated. Use the |
newlabels |
A new vector of labels (character) for the scores can be used instead of the current vector of score names. |
A list of class msc
, with the following components:
A tibble containing the model results for each pair
A list with all the individual pairwise models results (rma.mv
)
"Full", "indirect" or "direct"?
Label of performance score, as given in, for example, compute_performance
.
msc_full
: Compute all pairwise comparisons in full network of evidence, as well as direct and indirect comparisons
msc_model
: Compute an MSC model
msc_network
: Compute all pairwise comparisons in the full network of evidence
msc_direct
: Compute all pairwise indirect comparisons
msc_indirect
: Compute all pairwise indirect comparisons
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | dat <- msc_sample_data()
bssamp <- get_bs_samples(dat, id, study, outcome, n.samples = 10,
scores = c("a", "b", "c", "d", "e", "f"),
moderators = c("age", "female", "x1"))
perf <- compute_performance(bssamp, fn = calibration_slope, lbl = "CS")
msc_model(perf, mods = "age", mtype = "inconsistency", ref = "b")
plot(nw <- msc_network(perf, mods = NULL, mtype = "inconsistency", ref = "b"))
## Not run:
msc_direct(perf, mods = "age", mtype = "inconsistency")
msc_indirect(perf, mtype = "inconsistency")
msc_direct(perf, mtype = "inconsistency")
full <- msc_full(perf, mtype = "inconsistency")
plot(full)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.