View source: R/plotCovariateEffect.R
| plotCovariateEffect | R Documentation |
The plot will show the median treatment effect and the 95% credible interval on the y-axis and the covariate value on the x-axis. One plot page will be generated per pair of treatments.
plotCovariateEffect(result, t1, t2, xlim=NULL, ylim=NULL,
ask=dev.interactive(orNone=TRUE))
result |
Results object - created by |
t1 |
A list of baseline treatments to calculate treatment effects against. Will be extended to match the length of t2. |
t2 |
A list of treatments to calculate the effects for. Will be extended to match the length of t1. If left empty and t1 is a single treatment, effects of all treatments except t1 will be calculated. |
xlim |
The x-axis limits. |
ylim |
The y-axis limits. |
ask |
If TRUE, a prompt will be displayed before generating the next page of a multi-page plot. |
Default x-axis limits will be set to three standard deviations above and below the centering value of the covariate. The y-axis limits will be set based on the minimum and maximum 95% CrI limits among the set of effects computed.
None.
Gert van Valkenhoef
relative.effect, mtc.run
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.