hrci: Combine hazard ratio and 95 percent CI to one string

Description Usage Arguments Examples

Description

Useful for combining HR and 95CI information from a dataframe used for drawing a forestplot.

Usage

1
hrci(f_data, hr = hr, lci = lci, uci = uci)

Arguments

f_data

a dataframe containing information for the forestplot

hr

hazard ratio; hr by default

lci

lower confidence interval; lci by default

uci

upper confidence interval; uci by default

Examples

1
2
3
4
5
6
7
8
9
Create some test data
hr <- seq(0.80, 1.1, by = 0.05)
lci <- hr - 0.1
uci <- hr + 0.1
left_text<- paste0("Left text no ", 1:7)
forest_data <- data.frame(left_text,lci,hr,uci)

forest_data$right_text <- hrci(forest_data)
forestplot(forest_data, hr, lci, uci, left_text, right_text) 

dlindholm/doctoR documentation built on May 15, 2019, 9:18 a.m.