plot.twotrials {twotrials} | R Documentation |
Plot method for class "twotrials"
Description
Plot method for class "twotrials"
Usage
## S3 method for class 'twotrials'
plot(
x,
xlim = c(min(x$isummaries$lower), max(x$isummaries$upper)),
two.sided = FALSE,
plot = TRUE,
...
)
Arguments
x |
Object of class |
xlim |
x-axis limits. Defaults to the confidence interval range of trial 1 and trial 2 |
two.sided |
Logical indicating whether the p-value functions should be
converted to a two-sided p-value function via the centrality function
2min(p, 1 - p). Defaults to |
plot |
Logical indicating whether p-value functions should be plotted.
Defaults to |
... |
Other arguments (for consistency with the generic) |
Value
Plots combined p-value functions and invisibly returns a data frame containing the data underlying the plot
Author(s)
Samuel Pawel
See Also
Examples
## logRR estimates from RESPIRE trials
res <- twotrials(null = 0, t1 = -0.4942, t2 = -0.1847, se1 = 0.1833, se2 = 0.1738,
alternative = "less", level = 0.95)
plot(res) # one-sided p-value functions
plot(res, two.sided = TRUE) # two-sided p-value functions
[Package twotrials version 0.6 Index]