Learn R Programming

CIMTx (version 0.3.0)

postSumm: Summarize posterior samples

Description

This function summarize posterior samples of RD, RR and OR. Please use our main function causal_multi_treat.R.

Usage

postSumm(RD_est, RR_est, OR_est)

Arguments

RD_est

vector of estimation for RD

RR_est

vector of estimation for RR

OR_est

vector of estimation for OR

Value

list with 2 elements for ATT effect. It contains

ATT12:

A dataframe containing the estimation, standard error, lower and upper 95% CI for RD/RR/OR

ATT13:

A dataframe containing the estimation, standard error, lower and upper 95% CI for RD/RR/OR

list with 3 elements for ATE effect. It contains
ATE12:

A dataframe containing the estimation, standard error, lower and upper 95% CI for RD/RR/OR

ATE13:

A dataframe containing the estimation, standard error, lower and upper 95% CI for RD/RR/OR

ATE23:

A dataframe containing the estimation, standard error, lower and upper 95% CI for RD/RR/OR

Examples

Run this code
# NOT RUN {
library(CIMTx)
postSumm(RD_est = 1:10, RR_est = 11:20, OR_est = 1:10)
# }

Run the code above in your browser using DataLab