The function ICA.BinCont
quantifies surrogacy in the single-trial causal-inference framework (individual causal association) when the surrogate endpoint is continuous (normally distributed) and the true endpoint is a binary outcome. For details, see Alonso et al. (2016).
ICA.BinCont(Dataset, Surr, True, Treat, Diff.Sigma=FALSE,
G_pi_00=seq(0, 1, by=.01), G_rho_01_00=seq(-1, 1, by=.01),
G_rho_01_01=seq(-1, 1, by=.01), G_rho_01_10=seq(-1, 1, by=.01),
G_rho_01_11=seq(-1, 1, by=.01), M=1000, Seed=123,
Plots=TRUE, Save.Plots="No", Test.Fit.Mixture=FALSE,
Test.Fit.Mixture.Alpha=0.01, Test.Fit.Details=FALSE,
Keep.All=FALSE)
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 Diff.Sigma=TRUE
, then the mixtures of normal distributions are allowed to have different variances. If Diff.Sigma=FALSE
, then the mixtures of normal distributions are not allowed to have different variances (selecting the latter option speeds up the required calculations). Default Diff.Sigma=FALSE
.
A grid of values to be considered for \(\pi_{11}\), i.e., the unidentifiable probability \(P(T_1=0,T_0=0)\). Default seq(0, 1, by=.01)
.
A grid of values to be considered for the association parameter \(\rho_{01}^{00}\). Default seq(-1, 1, by=.01)
.
A grid of values to be considered for the association parameter \(\rho_{01}^{01}\). Default seq(-1, 1, by=.01)
.
A grid of values to be considered for the association parameter \(\rho_{01}^{10}\). Default seq(-1, 1, by=.01)
.
A grid of values to be considered for the association parameter \(\rho_{01}^{11}\). Default seq(-1, 1, by=.01)
.
The number of valid ICA values to be sampled. Default M=1000
.
The seed to be used to generate \(\pi_r\). Default Seed=123
.
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 the fit of the densities of the mixture distributions with the observed densities of the surrogates in the control and experimental treatment groups be conducted? For details on the method used, see Wilcox (1995, 2014). The code used to conduct the analysis is provided by Wilcox, see http://dornsife.usc.edu/labs/rwilcox/software/. Default Test.Fit.Mixture=FALSE
.
The \(alpha\)-level that is used in comparing the observed densities of \(S[0]\) and \(S[1]\), see previous points. Default Test.Fit.Mixture.Alpha=0.01
.
Should the details of the Wilcox-testing procedure be saved? Default Test.Fit.Details=FALSE
When Test.Fit.Mixture
is used, the Wilcox-testing procedure is used to evaluate model fit and only models for which the fit is OK (i.e., all p-values above the specified \(\alpha\)-level) are retained. To keep all results (irrespective of whether or not model fit is OK), Keep.All=TRUE
can be used. Default Keep.All=FALSE
.
An object of class ICA.BinCont
with components,
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 \(R_{01}^{00}\) values.
The vector of the \(R_{01}^{01}\) values.
The vector of the \(R_{01}^{10}\) values.
The vector of the \(R_{01}^{11}\) values.
The vector of the \(\pi_{-1}^{\Delta T}\) values.
The vector of the \(\pi_{0}^{\Delta T}\) values.
The vector of the \(\pi_{1}^{\Delta T}\) values.
The vector of \(\pi_{00}\) values of \(f(S_0)\).
The vector of \(\pi_{01}\) values of \(f(S_0)\).
The vector of \(\pi_{10}\) values of \(f(S_0)\).
The vector of \(\pi_{11}\) values of \(f(S_0)\).
The vector of \(\mu_{0}^{00}\) values of \(f(S_0)\).
The vector of \(\mu_{0}^{01}\) values of \(f(S_0)\).
The vector of \(\mu_{0}^{10}\) values of \(f(S_0)\).
The vector of \(\mu_{0}^{11}\) values of \(f(S_0)\).
The vector of squared \(\sigma_{00}^{00}\) values of \(f(S_0)\).
The vector of squared \(\sigma_{00}^{01}\) values of \(f(S_0)\).
The vector of squared \(\sigma_{00}^{10}\) values of \(f(S_0)\).
The vector of squared \(\sigma_{00}^{11}\) values of \(f(S_0)\).
The vector of \(\pi_{00}\) values of \(f(S_1)\).
The vector of \(\pi_{01}\) values of \(f(S_1)\).
The vector of \(\pi_{10}\) values of \(f(S_1)\).
The vector of \(\pi_{11}\) values of \(f(S_1)\).
The vector of \(\mu_{1}^{00}\) values of \(f(S_1)\).
The vector of \(\mu_{1}^{01}\) values of \(f(S_1)\).
The vector of \(\mu_{1}^{10}\) values of \(f(S_1)\).
The vector of \(\mu_{1}^{11}\) values of \(f(S_1)\).
The vector of squared \(\sigma_{11}^{00}\) values of \(f(S_1)\).
The vector of squared \(\sigma_{11}^{01}\) values of \(f(S_1)\).
The vector of squared \(\sigma_{11}^{10}\) values of \(f(S_1)\).
The vector of squared \(\sigma_{11}^{11}\) values of \(f(S_1)\).
Is the fit of the mixture distribution for \(S[0]\) OK (i.e., all \(p\)-values) of the test procedure above the specified \(\alpha\)?
Is the fit of the mixture distribution for \(S[1]\) OK (i.e., all \(p\)-values) of the test procedure above the specified \(\alpha\)?
Details of the Wilcox-testing procedure. This information is provided when the argument Test.Fit.Details=FALSE
was used in the function call.
Alonso, A., Van der Elst, W., & Molenberghs, G. (2016). Surrogate markers validation: the continuous-binary setting from a causal inference perspective.
Wilcox, R.R. (1995) Comparing Two Independent Groups Via Multiple Quantiles. Journal of the Royal Statistical Society. Series D (The Statistician), 44, 91-99.
Wilcox, R. R., Erceg-Hurn, D. M, Clark, F., & Carlson, M. (2014). Comparing two independent groups via the lower and upper quantiles. Journal of Statistical Computation and Simulation.
# NOT RUN {
# Time consuming code part
data(Schizo)
Fit <- ICA.BinCont(Dataset = Schizo, Surr = BPRS, True = PANSS_Bin,
Treat=Treat, M=50, Seed=1)
summary(Fit)
plot(Fit)
# }
Run the code above in your browser using DataLab