Computes confidence intervals for net benefit statistic or the win ratio statistic.
# S4 method for BuyseRes
confint(object, statistic = NULL,
conf.level = NULL, alternative = NULL, method.ci.resampling = NULL,
order.Hprojection = NULL, transformation = NULL, cluster = NULL)
an R object of class '>BuyseRes
, i.e., output of BuyseTest
[character] the statistic summarizing the pairwise comparison:
"netBenefit"
displays the net benefit, as described in Buyse (2010) and Peron et al. (2016)),
whereas "winRatio"
displays the win ratio, as described in Wang et al. (2016).
Default value read from BuyseTest.options()
.
[numeric] confidence level for the confidence intervals.
Default value read from BuyseTest.options()
.
[character] the type of alternative hypothesis: "two.sided"
, "greater"
, or "less"
.
Default value read from BuyseTest.options()
.
[character] the method used to compute the confidence intervals and p-values when using bootstrap or permutation.
"percentile"
uses the quantiles of the empirical distribution,
"gaussian"
uses the quantiles of a Gaussian distribution,
and "student"
uses the quantiles of a Student's t-distribution (only available for bootstrap).
[integer, 1-2] order of the H-decomposition used to compute the variance.
[logical] should the CI be computed on the logit scale / log scale for the net benefit / win ratio and backtransformed.
Otherwise they are computed without any transformation.
Default value read from BuyseTest.options()
. Not relevant when using permutations or percentile bootstrap.
[numeric vector] Group of observations for which the iid assumption holds .
A matrix containing a column for the estimated statistic (over all strata), the lower bound and upper bound of the confidence intervals, and the associated p-values. When using resampling methods:
an attribute n.resampling
specified how many samples have been used to compute the confidence intervals and the p-values.
an attribute method.ci.resampling
method used to compute the confidence intervals and p-values.
When using a permutation test, the uncertainty associated with the estimator is computed under the null hypothesis. Thus the confidence interval may not be valid if the null hypothesis is false. More precisely, the quantiles of the distribution of the statistic are computed under the null hypothesis and then shifted by the point estimate of the statistic.
BuyseTest
for performing a generalized pairwise comparison.
BuyseRes-summary
for a more detailed presentation of the BuyseRes
object.