msurv {metaSurvival} | R Documentation |
Summary survival curve from aggregated survival data of a meta-analysis
Description
Estimation of the summary survival curve from the survival rates and the numbers of at-risk individuals extracted from studies of a meta-analysis.
Usage
msurv(
study,
time,
n.risk,
surv.rate,
confidence,
correctionFlag = TRUE,
correctionVal = c(0.25, 0.5)
)
Arguments
study |
A numeric vector with the numbering of the studies included in the meta-analysis. The numbering of a study is repeated for each survival probabilities extracted from this study. |
time |
A numeric vector with the time at which the survival probabilities are collected. |
n.risk |
A numeric vector with the number of at-risk patients in the study for each value of thr time. |
surv.rate |
A numeric vector with the survival rates collected per study for each value of time. |
confidence |
A text argument indicating the method to calculate the confidence interval of the summary survival probabilities: "Greenwood" or "MonteCarlo". |
correctionFlag |
A logical variable which takes into account if user wants the continuity correaction or not (By default TRUE). |
correctionVal |
A numeric vector for continuity correction, if you don't want to apply correction pass c(0,0). |
Value
List of fixed and random effect pooled probabilities
Author(s)
Shubhram Pandey shubhram1992@gmail.com
Examples
attach(exampleData)
result <- msurv(study = Study,
time = Time,
n.risk = NbRisk,
surv.rate = Survival,
confidence = "Greenwood",
correctionFlag = FALSE
)
result