Description Usage Arguments Details Value Author(s) References See Also Examples
Performs a principal stratification sensitivity analysis using the method described in Hudgens, Hoering, and Self (2003).
1 2 3 4 5 6 7 | sensitivityHHS(z, s, y, bound = c("upper", "lower"), selection,
groupings, empty.principal.stratum, ci = 0.95,
ci.method = c("bootstrap", "analytic"),
ci.type = "twoSided", custom.FUN = NULL, na.rm = FALSE,
N.boot = 100, upperTest = FALSE, lowerTest = FALSE,
twoSidedTest = TRUE, method = c("ACE", "T1", "T2"),
isSlaveMode=FALSE)
|
z |
vector; contains the grouping values (e.g., treatment assignment) for each record. |
s |
vector; indicates whether a record is selected. |
y |
vector; outcome values. Can be |
bound |
vector; which bound should be calculated, “upper” and/or “lower”. Partial string matching is performed. |
selection |
The value of |
groupings |
vector of two elements |
empty.principal.stratum |
vector of two elements |
ci |
numeric vector; confidence interval level, defaults to |
ci.method |
character; method by which the confidence interval and
variance are calculated. Can be “analytic” or
“bootstrap”. Defaults to |
ci.type |
character vector; type of confidence interval that the corisponding
|
custom.FUN |
function; function to calculate custom result. |
na.rm |
logical; indicates whether records that are invalid due to |
N.boot |
integer. Number of bootstrap repetitions that will be run when
|
lowerTest |
logical. Return the lower one sided p-value for returned tests. Defaults
to |
upperTest |
logical. Return the upper one sided p-value for returned tests. Defaults
to |
twoSidedTest |
logical. Return a two sided p-value for returned tests. Defaults
to |
method |
character vector; type of test statistic calculated. Can be one or
more of “ACE”, “T1”, or “T2”. Defaults to
|
isSlaveMode |
logical; Internal Use only. Used in recursion. |
Performs a sensitivity analysis estimating the average causal effect
among those who would have been selected regardless of treatment
assignment (ACE). The method assumes no interference (i.e., potential outcomes of all subjects are unaffected by treatment assignment of other subjects),
ignorable (i.e., random) treatment assignment, and monotonicity (i.e.,
one of the principal strata is empty). ACE is still not identified
after making these assumptions, so this method computes the lower and
upper bounds of the estimated ACE. These bounds correspond to the
values one would get if using sensitivityGBH
and
specifying the sensitivity parameter beta as -Inf
or
Inf
.
an object of class sensitivity2d
.
ACE |
ACE=E(Y(\var{g1})-Y(\var{g0})|S(\var{g1})=S(\var{g0})=\code{selection}).
Vector of the estimated ACE values at the specified bounds. Only
exists if |
ACE.ci |
vector; confidence interval of ACE determined by
quantiles of bootstrap if |
ACE.var |
vector; estimated variance of ACE. Only exists if |
ACE.p |
vector; estimated p-value of ACE. Only exists if
|
Fas0 |
function; estimator for the empirical distribution function values for y0 in the first group in the always selected principal stratum at the bounds. Pr(Y(\var{g0}) <= \var{y0}|S(\var{g0}) = S(\var{g1}) = \code{selection}) |
Fas1 |
function; estimator for the empirical distribution function values for y1 in the second group in the always selected principal stratum at the bounds. Pr(Y(\var{g1}) <= \var{y1}|S(\var{g0}) = S(\var{g1}) = \code{selection}) |
Bryan E. Shepherd
Department of Biostatistics
Vanderbilt University
Charles Dupont
Department of Biostatistics
Vanderbilt University
Hudgens MG, Hoering A, and Self SG (2003), “On the Analysis of Viral Load Endpoints in HIV Vaccine Trials,” Statistics in Medicine 22, 2281-2298.
sensitivityGBH
, sensitivityJR
, sensitivitySGL
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | data(vaccine.trial)
est.bounds<-with(vaccine.trial,
sensitivityHHS(z=treatment, s=hiv.outcome, y=logVL,
selection="infected", groupings=c("placebo","vaccine"),
empty.principal.stratum=c("not infected","infected"),
N.boot=100)
)
est.bounds
est.bounds<-with(vaccine.trial,
sensitivityHHS(z=treatment, s=hiv.outcome, y=logVL,
selection="infected", groupings=c("placebo","vaccine"),
empty.principal.stratum=c("not infected","infected"),
method=c("ACE", "T1", "T2"), N.boot=100,
custom.FUN=function(mu0, mu1, ...) mu1 - mu0,
upperTest=TRUE, lowerTest=TRUE, twoSidedTest=TRUE)
)
est.bounds
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.