door_component_forestplot {door} | R Documentation |
Create DOOR component forest plot
Description
Create DOOR component forest plot
Usage
door_component_forestplot(
comp_table = NULL,
y1 = NULL,
y2 = NULL,
n1 = NULL,
n2 = NULL,
data_type = c("freq", "prop"),
summary_obj = NULL,
conf_level = 0.95,
ci_method = c("halperin", "ps_h", "ps_tanh")
)
Arguments
comp_table |
a data frame of DOOR components. See example. |
y1 , y2 |
Numeric vectors of DOOR proportion or frequency distribution for group 1, group 2. The entries should be ordered from most desirable to least desirable |
n1 , n2 |
Sample sizes of group 1, group 2; must be specified if method = "prop" |
data_type |
Either "freq" for frequency input or "prop" for proportion input when using y1 and y2 |
summary_obj |
An object returned by |
conf_level |
confidence level |
ci_method |
method for confidence interval calculation; one of "halperin", "ps_h", "ps_tanh" |
Value
a forest plot object
Examples
comp_table = data.frame(compname = c("A", "B"), trt = c(30, 20), ctr = c(40, 25))
y1 = c(60, 30, 10)
y2 = c(60, 30, 10)
door_component_forestplot(comp_table = comp_table,
y1 = y1,
y2 = y2)
[Package door version 0.0.2 Index]