EffectTreat (version 1.1)

Min.R2.delta: Compute minimum \(R^2_{\delta}\) for desired prediction accuracy

Description

Computes the minimum \(R^2_{\delta}\) needed to achieve the desired prediction accuracy for the set of pretreatment predictors.

Usage

Min.R2.delta(delta, Sigma_T0T0, Sigma_T1T1)

Arguments

delta

The vector of \(\delta\) values to be considered.

Sigma_T0T0

The variance of \(T\) in the control treatment group.

Sigma_T1T1

The variance of \(T\) in the experimental treatment group.

References

Alonso, A., Van der Elst, W., Luaces, P., Sanchez, L., & Molenberghs, G. (submitted). Evaluating multivariate predictors of therapeutic success: a causal inference approach.

Examples

Run this code
# NOT RUN {
Fit <- Min.R2.delta(delta = seq(from = 0, to = 250, by=50), 
  Sigma_T0T0 = 38.606, Sigma_T1T1 = 663.917)

# Explore the results
summary(Fit)
plot(Fit)
# }

Run the code above in your browser using DataLab