Provides an upper bound on the average of attributable risk
under the monotone treatment response (MTR) and monotone treatment selection (MTS) assumptions.
An S3 object of type "ciccr". The object has the following elements:
est
(length)-dimensional vector of the upper bounds on the average of attributable risk
ci
(length)-dimensional vector of the upper ends of pointwise one-sided confidence intervals
pseq
(length)-dimensional vector of a grid from 0 to p_upper
cov_prob
the nominal coverage probability
return_code
status of existence of missing values in bootstrap replications
Arguments
y
n-dimensional vector of binary outcomes
t
n-dimensional vector of binary treatments
x
n by d matrix of covariates
sampling
'cc' for case-control sampling; 'cp' for case-population sampling; 'rs' for random sampling (default = 'cc')
p_upper
a specified upper bound for the unknown true case probability (default = 1)
cov_prob
coverage probability of a confidence interval (default = 0.95)
length
specified length of a sequence from 0 to p_upper (default = 21)
interaction
TRUE if there are interaction terms in the retrospective logistic model; FALSE if not (default = TRUE)
no_boot
number of bootstrap repetitions to compute the confidence intervals (default = 0)
eps
a small constant that determines the trimming of the estimated probabilities.
Specifically, the estimate probability is trimmed to be between eps and 1-eps (default = 1e-8).
References
Jun, S.J. and Lee, S. (2020). Causal Inference under Outcome-Based Sampling with Monotonicity Assumptions.
https://arxiv.org/abs/2004.08318.
# use the ACS_CC dataset included in the package. y = ciccr::ACS_CC$topincome
t = ciccr::ACS_CC$baplus
x = ciccr::ACS_CC$age
results_AR = cicc_AR(y, t, x, sampling = 'cc', no_boot = 100)