boundPvalue: Construct p-values for treatment effects under partial...

Description Usage Arguments Value

View source: R/mst.R

Description

This function estimates the p-value for the treatment effect under partial identification. p-values corresponding to forward and backward confidence intervals can be returned.

Usage

1
boundPvalue(bounds, bounds.resamples, n, m, 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.

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', a scalar p-value corresponding to the type of confidence interval is returned. If type is 'both', a vector of p-values corresponding to the forward and backward confidence intervals is returned.


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