plotCovariateEffect function

Plot treatment effects versus covariate values

Plot treatment effects versus covariate values

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. utf8

plotCovariateEffect(result, t1, t2, xlim=NULL, ylim=NULL, ask=dev.interactive(orNone=TRUE))

Arguments

  • result: Results object - created by mtc.result
  • 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.

Details

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.

Returns

None.

Author(s)

Gert van Valkenhoef

See Also

relative.effect, mtc.run