sharp_null_double_test: Asymptotic sharp null sensitivity analysis for a class of test statistics
accommodating continuous exposures and any scalar outcome.
Description
Asymptotic sharp null sensitivity analysis for a class of test statistics
accommodating continuous exposures and any scalar outcome.
A list containing the deviate, one-sided p-value,
observed value of the test statistic in each matched set,
and conservative standard deviation estimate.
Arguments
Z
A length N vector of observed doses.
R
A length N vector of observed outcomes.
index
A length N vector of indices indicating matched set membership.
gamma
The nonnegative sensitivity parameter; gamma = 0 means no
unmeasured confounding.
q1
A transformation to apply to the doses.
q2
A transformation to apply to the outcomes
X
A matrix with I rows and less than I columns that contains covariate
information.
stratum_weights
A weight vector.
conservative_variance
Whether to use the conservative variance or not;
default is TRUE.
double_rank
Whether to use the ranks of the transformed doses and
outcomes; default is TRUE.