Surrogate (version 1.7)

ICA.BinCont: Assess surrogacy in the causal-inference single-trial setting in the binary-continuous case

Description

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).

Usage

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)

Arguments

Dataset

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.

Surr

The name of the variable in Dataset that contains the surrogate endpoint values.

True

The name of the variable in Dataset that contains the true endpoint values.

Treat

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.

Diff.Sigma

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.

G_pi_00

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).

G_rho_01_00

A grid of values to be considered for the association parameter \(\rho_{01}^{00}\). Default seq(-1, 1, by=.01).

G_rho_01_01

A grid of values to be considered for the association parameter \(\rho_{01}^{01}\). Default seq(-1, 1, by=.01).

G_rho_01_10

A grid of values to be considered for the association parameter \(\rho_{01}^{10}\). Default seq(-1, 1, by=.01).

G_rho_01_11

A grid of values to be considered for the association parameter \(\rho_{01}^{11}\). Default seq(-1, 1, by=.01).

M

The number of valid ICA values to be sampled. Default M=1000.

Seed

The seed to be used to generate \(\pi_r\). Default Seed=123.

Plots

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.

Save.Plots

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".

Test.Fit.Mixture

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.

Test.Fit.Mixture.Alpha

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.

Test.Fit.Details

Should the details of the Wilcox-testing procedure be saved? Default Test.Fit.Details=FALSE

Keep.All

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.

Value

An object of class ICA.BinCont with components,

R2_H

The vector of the \(R_H^2\) values.

pi_00

The vector of \(\pi_{00}^T\) values.

pi_01

The vector of \(\pi_{01}^T\) values.

pi_10

The vector of \(\pi_{10}^T\) values.

pi_11

The vector of \(\pi_{11}^T\) values.

G_rho_01_00

The vector of the \(R_{01}^{00}\) values.

G_rho_01_01

The vector of the \(R_{01}^{01}\) values.

G_rho_01_10

The vector of the \(R_{01}^{10}\) values.

G_rho_01_11

The vector of the \(R_{01}^{11}\) values.

pi_Delta_T_min1

The vector of the \(\pi_{-1}^{\Delta T}\) values.

pi_Delta_T_0

The vector of the \(\pi_{0}^{\Delta T}\) values.

pi_Delta_T_1

The vector of the \(\pi_{1}^{\Delta T}\) values.

pi_0_00

The vector of \(\pi_{00}\) values of \(f(S_0)\).

pi_0_01

The vector of \(\pi_{01}\) values of \(f(S_0)\).

pi_0_10

The vector of \(\pi_{10}\) values of \(f(S_0)\).

pi_0_11

The vector of \(\pi_{11}\) values of \(f(S_0)\).

mu_0_00

The vector of \(\mu_{0}^{00}\) values of \(f(S_0)\).

mu_0_01

The vector of \(\mu_{0}^{01}\) values of \(f(S_0)\).

mu_0_10

The vector of \(\mu_{0}^{10}\) values of \(f(S_0)\).

mu_0_11

The vector of \(\mu_{0}^{11}\) values of \(f(S_0)\).

sigma2_00_00

The vector of squared \(\sigma_{00}^{00}\) values of \(f(S_0)\).

sigma2_00_01

The vector of squared \(\sigma_{00}^{01}\) values of \(f(S_0)\).

sigma2_00_10

The vector of squared \(\sigma_{00}^{10}\) values of \(f(S_0)\).

sigma2_00_11

The vector of squared \(\sigma_{00}^{11}\) values of \(f(S_0)\).

pi_1_00

The vector of \(\pi_{00}\) values of \(f(S_1)\).

pi_1_01

The vector of \(\pi_{01}\) values of \(f(S_1)\).

pi_1_10

The vector of \(\pi_{10}\) values of \(f(S_1)\).

pi_1_11

The vector of \(\pi_{11}\) values of \(f(S_1)\).

mu_1_00

The vector of \(\mu_{1}^{00}\) values of \(f(S_1)\).

mu_1_01

The vector of \(\mu_{1}^{01}\) values of \(f(S_1)\).

mu_1_10

The vector of \(\mu_{1}^{10}\) values of \(f(S_1)\).

mu_1_11

The vector of \(\mu_{1}^{11}\) values of \(f(S_1)\).

sigma2_11_00

The vector of squared \(\sigma_{11}^{00}\) values of \(f(S_1)\).

sigma2_11_01

The vector of squared \(\sigma_{11}^{01}\) values of \(f(S_1)\).

sigma2_11_10

The vector of squared \(\sigma_{11}^{10}\) values of \(f(S_1)\).

sigma2_11_11

The vector of squared \(\sigma_{11}^{11}\) values of \(f(S_1)\).

Fit.Mixture_S_0_OK

Is the fit of the mixture distribution for \(S[0]\) OK (i.e., all \(p\)-values) of the test procedure above the specified \(\alpha\)?

Fit.Mixture_S_1_OK

Is the fit of the mixture distribution for \(S[1]\) OK (i.e., all \(p\)-values) of the test procedure above the specified \(\alpha\)?

Test.Fit.Details

Details of the Wilcox-testing procedure. This information is provided when the argument Test.Fit.Details=FALSE was used in the function call.

References

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.

See Also

ICA.ContCont, MICA.ContCont, ICA.BinBin

Examples

Run this code
# 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