
Last chance! 50% off unlimited learning
Sale ends in
The function TrialLevelMA
estimates trial-level surrogacy based on the vectors of treatment effects on
TrialLevelMA(Alpha.Vector, Beta.Vector,
N.Vector, Weighted=TRUE, Alpha=.05)
The vector of treatment effects on
The vector of treatment effects on
The vector of trial sizes
Logical. If TRUE
, then a weighted regression analysis is conducted. If FALSE
, then an unweighted regression analysis is conducted. Default TRUE
.
The
An object of class TrialLevelMA
with components,
The vector of treatment effects on
The vector of treatment effects on
The vector of trial sizes
A data.frame
that contains the trial-level coefficient of determination (
A data.frame
that contains the trial-level correlation coefficient (
The fitted stage
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
# NOT RUN {
# 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)
# }
Run the code above in your browser using DataLab