Function to obtain the estimated subgroup treatment effects from a horseshoe
model and a credible interval for them.
Usage
# S3 method for class 'horseshoe'
summary(object, conf = 0.95, gamma = 1, l = NULL, m = 50, ...)
Arguments
- object
(
horseshoe
)
the horseshoe object.- conf
(
scalar
)
the level of the credible intervals. Default is 0.95.- gamma
(
scalar
)
numeric value defining the weights to obtain the average hazard ratio. Default is 1 (in this case the average hazard ratio obtained can be interpreted as the odds of concordance). Just needed when using survival data.- l
(
scalar
)
the maximum value of time that wants to be studied to obtain the average hazard ratio. Default is the maximum value of time when there was an event. Just needed when using survival data.- m
(
scalar
)
the value that defines the equally spaced time points where the survival curves are going to be studied. Default is 50. Just needed when using survival data.- ...
Arguments of summary.
Value
Object of class summary.horseshoe
which is a list
with the
approximated posterior distribution of the treatment
effects, a data.frame
with the estimated subgroup treatment effect
(with the median) and the bounds of the credible intervals, the resptype
and the confidence level.
Examples
summary(horseshoe_fit_bin)
#> subgroup trt.estimate trt.low trt.high
#> 1 x_1a -0.4686304 -0.7380710 -0.1427408
#> 2 x_1b -0.4826893 -0.7648132 -0.1354808
#> 3 x_2a -0.4723894 -0.7693384 -0.1718068
#> 4 x_2b -0.4661806 -0.7565110 -0.1497500