ICA.BinCont.BS: Assess surrogacy in the causal-inference single-trial setting...

View source: R/ICA.BinCont.BS.R

ICA.BinCont.BSR Documentation

Assess surrogacy in the causal-inference single-trial setting in the binary-continuous case with an additional bootstrap procedure before the assessment

Description

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

Usage

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)

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.

BS

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.

nb

The number of bootstrap. Default nb=300.

G_pi_10

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

G_rho_01_00

The lower and upper limits of the uniform distribution from which the association parameter \rho_{01}^{00} is sampled. Default c(-1,1).

G_rho_01_01

The lower and upper limits of the uniform distribution from which the association parameter \rho_{01}^{01} is sampled. Default c(-1,1).

G_rho_01_10

The lower and upper limits of the uniform distribution from which the association parameter \rho_{01}^{10} is sampled. Default c(-1,1).

G_rho_01_11

The lower and upper limits of the uniform distribution from which the association parameter \rho_{01}^{11} is sampled. Default c(-1,1).

Theta.S_0

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

Theta.S_1

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

M

The number of Monte Carlo iterations. Default M=1000.

Seed

The random seed to be used in the analysis (for reproducibility). Default Seed=123.

Monotonicity

Logical. If Monotonicity=TRUE, the analysis is performed assuming monotonicity, i.e. P(T_1 < T_0) = 0. Default Monotonicity=FALSE.

Independence

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.

HAA

Logical. If HAA=TRUE, the analysis is performed assuming homogeneous association, i.e. \rho_{01}^{ij} = \rho_{01}. Default HAA=FALSE.

Cond_ind

Logical. If Cond_ind=TRUE, the analysis is performed assuming conditional independence, i.e. \rho_{01} = 0. Default Cond_ind=FALSE.

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

Show.Details

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.

Value

An object of class ICA.BinCont with components,

nboots

The identification number of bootstrap samples being analyzed in the sensitivity analysis.

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 \rho_{01}^{00} values.

G_rho_01_01

The vector of the \rho_{01}^{01} values.

G_rho_01_10

The vector of the \rho_{01}^{10} values.

G_rho_01_11

The vector of the \rho_{01}^{11} values.

mu_0_00

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

mu_0_01

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

mu_0_10

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

mu_0_11

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

mu_1_00

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

mu_1_01

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

mu_1_10

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

mu_1_11

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

sigma_00

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

sigma_11

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

Author(s)

Wim Van der Elst, Fenny Ong, Ariel Alonso, and Geert Molenberghs

References

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.

See Also

ICA.BinCont

Examples

## Not run: # 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)

## End(Not run)

Surrogate documentation built on June 22, 2024, 9:16 a.m.