Learn R Programming

tipmap (version 0.5.2)

get_posterior_by_weight: Filter posterior by given weights

Description

Returns quantiles of the posterior distribution of the treatment effect for one or more specified weights.

Usage

get_posterior_by_weight(posterior, weight)

Value

The filtered posterior values

Arguments

posterior

The posterior data to be filtered (see create_posterior_data()).

weight

The weight(s) to be filtered by.

See Also

create_posterior_data

Examples

Run this code
get_posterior_by_weight(
  posterior = load_tipmap_data("tipPost.rds"),
  weight = c(0.05, 0.1)
)

Run the code above in your browser using DataLab