Fano.BinBin | R Documentation |
S
and T
are binary endpointsThe function Fano.BinBin
evaluates the existence of a good surrogate in the single-trial causal-inference framework when both the surrogate and the true endpoints are binary outcomes. See Details below.
Fano.BinBin(pi1_, pi_1, rangepi10=c(0,min(pi1_,1-pi_1)),
fano_delta=c(0.1), M=100, Seed=1)
pi1_ |
A scalar or a vector of plausibel values that represents the proportion of responders under treatment. |
pi_1 |
A scalar or a vector of plausibel values that represents the proportion of responders under control. |
rangepi10 |
Represents the range from which |
fano_delta |
A scalar or a vector that specifies the values for the upper bound of the prediction error |
M |
The number of random samples that have to be drawn for the freely varying parameter |
Seed |
The seed to be used to sample the freely varying parameter |
Values for \pi_{10}
have to be uniformly sampled from the interval [0,\min(\pi_{1\cdot},\pi_{\cdot0})]
. Any sampled value for \pi_{10}
will fully determine the bivariate distribution of potential outcomes for the true endpoint. The treatment effect should be positive.
The vector \bold{\pi_{km}}
fully determines R^2_{HL}
.
An object of class Fano.BinBin
with components,
R2_HL |
The sampled values for |
H_Delta_T |
The sampled values for |
PPE_T |
The sampled values for |
minpi10 |
The minimum value for |
maxpi10 |
The maximum value for |
samplepi10 |
The sampled value for |
delta |
The specified vector of upper bounds for the prediction errors. |
uncertainty |
Indexes the sampling of |
pi_00 |
The sampled values for |
pi_11 |
The sampled values for |
pi_01 |
The sampled values for |
pi_10 |
The sampled values for |
Paul Meyvisch, Wim Van der Elst, Ariel Alonso
Alonso, A., Van der Elst, W., & Molenberghs, G. (2014). Validation of surrogate endpoints: the binary-binary setting from a causal inference perspective.
plot.Fano.BinBin
# Conduct the analysis assuming no montonicity
# for the true endpoint, using a range of
# upper bounds for prediction errors
Fano.BinBin(pi1_ = 0.5951 , pi_1 = 0.7745,
fano_delta=c(0.05, 0.1, 0.2), M=1000)
# Conduct the same analysis now sampling from
# a range of values to allow for uncertainty
Fano.BinBin(pi1_ = runif(n=20,min=0.504,max=0.681),
pi_1 = runif(n=20,min=0.679,max=0.849),
fano_delta=c(0.05, 0.1, 0.2), M=10, Seed=2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.