Returns quantiles of the posterior distribution of the treatment effect for one or more specified weights.
Arguments
- posterior
The posterior data to be filtered (see [create_posterior_data()]).
- weight
The weight(s) to be filtered by.
Examples
get_posterior_by_weight(
posterior = load_tipmap_data("tipPost.rds"),
weight = c(0.05, 0.1)
)
#> q0.01 q0.025 q0.05 q0.1 q0.2 q0.25 q0.5
#> w=0.05 -3.026944 -2.2752 -1.622075 -0.8592616 0.07084512 0.4121273 1.448454
#> w=0.1 -2.847352 -2.0679 -1.384287 -0.5786408 0.37040761 0.6759995 1.476666
#> q0.75 q0.8 q0.9 q0.95 q0.975 q0.99
#> w=0.05 2.372519 2.685386 3.589860 4.348482 5.000346 5.751503
#> w=0.1 2.193930 2.449017 3.323374 4.114635 4.794578 5.572358