boundCI: Construct confidence intervals for treatment effects under...

Description Usage Arguments Value

View source: R/mst.R

Description

This function constructs the forward and backward confidence intervals for the treatment effect under partial identification.

Usage

1
boundCI(bounds, bounds.resamples, n, m, levels, type)

Arguments

bounds

vector, bounds of the treatment effects under partial identification.

bounds.resamples

matrix, stacked bounds of the treatment effects under partial identification. Each row corresponds to a subset resampled from the original data set.

n

integer, size of original data set.

m

integer, size of resampled data sets.

levels

vector, real numbers between 0 and 1. Values correspond to the level of the confidence intervals constructed via bootstrap.

type

character. Set to 'forward' to construct the forward confidence interval for the treatment effect bounds. Set to 'backward' to construct the backward confidence interval for the treatment effect bounds. Set to 'both' to construct both types of confidence intervals.

Value

if type is 'forward' or 'backward', then the corresponding type of confidence interval for each level is returned. The output is in the form of a matrix, with each row corresponding to a level. If type is 'both', then a list is returned. One element of the list is the matrix of backward confidence intervals, and the other element of the list is the matrix of forward confidence intervals.


ivmte documentation built on Sept. 17, 2021, 5:06 p.m.