TrialLevelMA | R Documentation |
The function TrialLevelMA
estimates trial-level surrogacy based on the vectors of treatment effects on S
(i.e., \alpha_{i}
) and T
(i.e., \beta_{i}
) in the different trials. In particular, \beta_{i}
is regressed on \alpha_{i}
and the classical coefficient of determination of the fitted model provides an estimate of R^2_{trial}
. In addition, the standard error and CI are provided.
TrialLevelMA(Alpha.Vector, Beta.Vector,
N.Vector, Weighted=TRUE, Alpha=.05)
Alpha.Vector |
The vector of treatment effects on |
Beta.Vector |
The vector of treatment effects on |
N.Vector |
The vector of trial sizes |
Weighted |
Logical. If |
Alpha |
The |
An object of class TrialLevelMA
with components,
Alpha.Vector |
The vector of treatment effects on |
Beta.Vector |
The vector of treatment effects on |
N.Vector |
The vector of trial sizes |
Trial.R2 |
A |
Trial.R |
A |
Model.2.Fit |
The fitted stage |
Wim Van der Elst, Ariel Alonso, & Geert Molenberghs
Burzykowski, T., Molenberghs, G., & Buyse, M. (2005). The evaluation of surrogate endpoints. New York: Springer-Verlag.
Buyse, M., Molenberghs, G., Burzykowski, T., Renard, D., & Geys, H. (2000). The validation of surrogate endpoints in meta-analysis of randomized experiments. Biostatistics, 1, 49-67.
UnimixedContCont
, UnifixedContCont
, BifixedContCont
, BimixedContCont
, plot Meta-Analytic
# Generate vector treatment effects on S
set.seed(seed = 1)
Alpha.Vector <- seq(from = 5, to = 10, by=.1) + runif(min = -.5, max = .5, n = 51)
# Generate vector treatment effects on T
set.seed(seed=2)
Beta.Vector <- (Alpha.Vector * 3) + runif(min = -5, max = 5, n = 51)
# Vector of sample sizes of the trials (here, all n_i=10)
N.Vector <- rep(10, times=51)
# Apply the function to estimate R^2_{trial}
Fit <- TrialLevelMA(Alpha.Vector=Alpha.Vector,
Beta.Vector=Beta.Vector, N.Vector=N.Vector)
# Plot the results and obtain summary
plot(Fit)
summary(Fit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.