sdFromCI: Standard deviation of log hazard ratio

View source: R/sdFromCI.R

sdFromCIR Documentation

Standard deviation of log hazard ratio

Description

Compute the standard deviation of a log hazard ratio when only given its repoted confidence limits.

Usage

sdFromCI(HR, lower.limit, upper.limit, alpha = 0.05)

Arguments

HR

reported hazard ratio

lower.limit

reported lower confidence limit

upper.limit

reported upper confidence limit

alpha

significance level

Details

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.

Value

A list with elements

sd

standard deviation of log HR

pval

estimated p-value

Author(s)

Aline Talhouk, Derek Chiu

References

http://www.ncbi.nlm.nih.gov/pmc/articles/PMC1920534/

Examples

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)

TalhoukLab/biostatUtil documentation built on April 14, 2025, 4:15 a.m.