
Prediction intervals for all network treatment contrasts
network_prediction_intervals.RdPrediction intervals for all network treatment contrasts
Usage
network_prediction_intervals(object, level = 0.95)
# S3 method for class 'nma_prediction_intervals'
print(
x,
...,
digits = getOption("digits"),
detailed = FALSE,
row.names = FALSE
)
# S3 method for class 'nma_prediction_intervals'
summary(object, ..., digits = getOption("digits"), detailed = FALSE)Arguments
- object
A fitted
nma_marsobject; forsummary(), a prediction-interval result.- level
Prediction interval level.
- x
A prediction-interval result.
- ...
Additional arguments forwarded to
print.data.frame().- digits
Number of decimal places, from 1 to 22. P-values below 0.0001 print as
<0.0001; other p-values use at least four decimal places.- detailed
Show all stored columns instead of the compact display.
- row.names
Display data-frame row names; default
FALSE.
Value
A data frame with total network effects, standard errors, the
between-study variance used for prediction, and prediction interval bounds.
It inherits from nma_prediction_intervals and data.frame. The default
printout shows the contrast, mean-effect SE, prediction SE and interval.
Shared prediction targets, prediction variances and degrees of freedom are
printed once above the rows; varying values remain in columns. All original
columns and full precision are retained. print(x, detailed=TRUE) shows
every stored column, including alternate names for interval bounds.
The same display applies to coherent-model predict(..., interval="prediction").
Details
tau2_prediction is the variance added for the selected new random
units. It can vary by contrast or stratum, particularly with unstructured
heterogeneity. It is collapsed only when exactly equal in every row, before
display rounding. Prediction intervals describe true effects in new random
units, not individual patient outcomes. summary(x, digits=) records display
precision without modifying numerical results.
Examples
# \donttest{
network_prediction_intervals(nma_fit)
#> Network prediction intervals (95%)
#> Question: What true treatment effect could occur in new random units?
#> Prediction intervals are descriptive; no additional null-hypothesis test.
#> Prediction target: New study
#> Added prediction variance (tau2_prediction): 0.0000000
#> Degrees of freedom: Inf
#> se = uncertainty in the average effect; prediction_se includes added variance.
#> lower/upper = prediction limits.
#>
#> contrast estimate se prediction_se lower upper
#> B - A 0.1947368 0.1376494 0.1376494 -0.0750511 0.4645248
#> C - A 0.3192982 0.1675416 0.1675416 -0.0090772 0.6476737
#> C - B 0.1245614 0.1611363 0.1611363 -0.1912600 0.4403828
# }