The function ICA.BinCont.BS
quantifies surrogacy in the single-trial setting within the causal-inference framework (individual causal association) when the surrogate endpoint is continuous (normally distributed) and the true endpoint is a binary outcome. This function also allows for an additional bootstrap procedure before the assessment to take the imprecision due to finite sample size into account. For details, see Alonso Abad et al. (2023).
ICA.BinCont.BS(Dataset, Surr, True, Treat,
BS=TRUE,
nb=300,
G_pi_10=c(0,1),
G_rho_01_00=c(-1,1),
G_rho_01_01=c(-1,1),
G_rho_01_10=c(-1,1),
G_rho_01_11=c(-1,1),
Theta.S_0,
Theta.S_1,
M=1000, Seed=123,
Monotonicity=FALSE,
Independence=FALSE,
HAA=FALSE,
Cond_ind=FALSE,
Plots=TRUE, Save.Plots="No", Show.Details=FALSE)
An object of class ICA.BinCont
with components,
The identification number of bootstrap samples being analyzed in the sensitivity analysis.
The vector of the \(R_H^2\) values.
The vector of \(\pi_{00}^T\) values.
The vector of \(\pi_{01}^T\) values.
The vector of \(\pi_{10}^T\) values.
The vector of \(\pi_{11}^T\) values.
The vector of the \(\rho_{01}^{00}\) values.
The vector of the \(\rho_{01}^{01}\) values.
The vector of the \(\rho_{01}^{10}\) values.
The vector of the \(\rho_{01}^{11}\) values.
The vector of mean \(\mu_{0}^{00}\) values of \(f(S_0)\).
The vector of mean \(\mu_{0}^{01}\) values of \(f(S_0)\).
The vector of mean \(\mu_{0}^{10}\) values of \(f(S_0)\).
The vector of mean \(\mu_{0}^{11}\) values of \(f(S_0)\).
The vector of mean \(\mu_{1}^{00}\) values of \(f(S_1)\).
The vector of mean \(\mu_{1}^{01}\) values of \(f(S_1)\).
The vector of mean \(\mu_{1}^{10}\) values of \(f(S_1)\).
The vector of mean \(\mu_{1}^{11}\) values of \(f(S_1)\).
The vector of variance \(\sigma_{00}\) values of \(f(S_0)\).
The vector of variance \(\sigma_{11}\) values of \(f(S_1)\).
A data.frame
that should consist of one line per patient. Each line contains (at least) a surrogate value, a true endpoint value, and a treatment indicator.
The name of the variable in Dataset
that contains the surrogate endpoint values.
The name of the variable in Dataset
that contains the true endpoint values.
The name of the variable in Dataset
that contains the treatment indicators. The treatment indicator should be coded as \(1\) for the experimental group and \(-1\) for the control group.
Logical. If BS=TRUE
, the additional bootstrap procedure is performed before the sensitivity analysis to account for the the imprecision due to finite sample size. Default BS=TRUE
.
The number of bootstrap. Default nb=300
.
The lower and upper limits of the uniform distribution from which the probability parameter \(\pi_{10}\) is sampled. Default c(0,1)
. Even though the default is c(0,1)
, due to the restriction that all \(\pi_{ij}\) should be between (0,1)
, the value of \(\pi_{10}\) will always be between \((0,min(\pi_{1.}, \pi_{.0}))\). When Monotonicity=TRUE
the values of these limits are set as c(0,0)
.
The lower and upper limits of the uniform distribution from which the association parameter \(\rho_{01}^{00}\) is sampled. Default c(-1,1)
.
The lower and upper limits of the uniform distribution from which the association parameter \(\rho_{01}^{01}\) is sampled. Default c(-1,1)
.
The lower and upper limits of the uniform distribution from which the association parameter \(\rho_{01}^{10}\) is sampled. Default c(-1,1)
.
The lower and upper limits of the uniform distribution from which the association parameter \(\rho_{01}^{11}\) is sampled. Default c(-1,1)
.
The starting values of the means and standard deviations for the mixture distribution of the surrogate endpoint in the control group. The argument should contain eight values, where the first four values represent the starting values for the means and the last four values represent the starting values for the standard deviations. These starting values should be approximated based on the data on hand. Example: Theta.S_0=c(-10,-5,5,10,10,10,10,10)
.
The starting values of the means and standard deviations for the mixture distribution of the surrogate endpoint in the treatment group. The argument should contain eight values, where the first four values represent the starting values for the means and the last four values represent the starting values for the standard deviations. These starting values should be approximated based on the data on hand. Example: Theta.S_1=c(-10,-5,5,10,10,10,10,10)
.
The number of Monte Carlo iterations. Default M=1000
.
The random seed to be used in the analysis (for reproducibility). Default Seed=123
.
Logical. If Monotonicity=TRUE
, the analysis is performed assuming monotonicity, i.e. \(P(T_1 < T_0) = 0\). Default Monotonicity=FALSE
.
Logical. If Independence=TRUE
, the analysis is performed assuming independence between the treatment effect in both groups, i.e. \(\pi_{ij} = \pi_{i.} \times \pi_{.j}\). Default Independence=FALSE
.
Logical. If HAA=TRUE
, the analysis is performed assuming homogeneous association, i.e. \(\rho_{01}^{ij} = \rho_{01}\). Default HAA=FALSE
.
Logical. If Cond_ind=TRUE
, the analysis is performed assuming conditional independence, i.e. \(\rho_{01} = 0\). Default Cond_ind=FALSE
.
Logical. Should histograms of \(S_0\) (surrogate endpoint in control group) and \(S_1\) (surrogate endpoint in experimental treatment group) be provided together with density of fitted mixtures? Default Plots=TRUE
.
Should the plots (see previous item) be saved? If Save.Plots="No"
, no plots are saved. If plots have to be saved, replace "No"
by the desired location, e.g., Save.Plots="C:/"
. Default Save.Plots="No"
.
Should some details regarding the availability of some output from the function be displayed in the console when the analysis is running? Setting Show.Details=TRUE
could be useful for debugging procedure (if any). Default Show.Details=FALSE
.
Wim Van der Elst, Fenny Ong, Ariel Alonso, and Geert Molenberghs
Alonso Abad, A., Ong, F., Stijven, F., Van der Elst, W., Molenberghs, G., Van Keilegom, I., Verbeke, G., & Callegaro, A. (2023). An information-theoretic approach for the assessment of a continuous outcome as a surrogate for a binary true endpoint based on causal inference: Application to vaccine evaluation.
ICA.BinCont
if (FALSE) # Time consuming code part
data(Schizo)
Fit <- ICA.BinCont.BS(Dataset = Schizo, Surr = BPRS, True = PANSS_Bin, nb = 10,
Theta.S_0=c(-10,-5,5,10,10,10,10,10), Theta.S_1=c(-10,-5,5,10,10,10,10,10),
Treat=Treat, M=50, Seed=1)
summary(Fit)
plot(Fit)
Run the code above in your browser using DataLab