sdFromCI | R Documentation |
Compute the standard deviation of a log hazard ratio when only given its repoted confidence limits.
sdFromCI(HR, lower.limit, upper.limit, alpha = 0.05)
HR |
reported hazard ratio |
lower.limit |
reported lower confidence limit |
upper.limit |
reported upper confidence limit |
alpha |
significance level |
Extract standard deviation from a confidence limit and obtain a corresponding p-value, which can be compared to the reported p-value. The null p-values are calculated from the Chi-squared 1 distribution.
A list with elements
sd |
standard deviation of log HR |
pval |
estimated p-value |
Aline Talhouk, Derek Chiu
http://www.ncbi.nlm.nih.gov/pmc/articles/PMC1920534/
library(meta)
studlab <- c("PORTEC", "Leuven", "TCGA", "Billingsley")
effects <- log(c(0.43, 0.18, 0.12, 0.37))
se_effects <- c(sdFromCI(0.43, 0.13, 1.37)$sd,
sdFromCI(0.18, 0.01, 3.11)$sd,
sdFromCI(0.12, 0.01, 2.11)$sd,
sdFromCI(0.37, 0.09, 1.54)$sd)
metagen(effects, se_effects, studlab = studlab, sm = "HR", comb.fixed = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.