Learn R Programming

borrowr (version 0.2.0)

credint: Posterior Credible Interval for Population Average Treatment Effect (PATE)

Description

Computes an equal-tailed credible interval for an object of class 'pate'

Usage

credint(object, level = 0.95)

Arguments

object

An object of class pate fit by the pate function.

level

the credible level required

Examples

Run this code
# NOT RUN {
data(adapt)

est <- pate(y ~ treatment*x + treatment*I(x ^ 2), data = adapt,
 estimator = "bayesian_lm", src_var = "source", primary_source = "Primary",
 trt_var = "treatment")

credint(est)

# }

Run the code above in your browser using DataLab