Description Usage Arguments Examples
This function makes a covariate plot of how the relative effect changes as the covariate value changes.
User needs to specify one base treatment and one comparison treatment to make this plot (base category and comparison category is also needed for multinomial).
The function uses the relative.effects
to calculate the correct relative effect. 2.5%, median, and 97.5% C.I. are drawn.
1 2 3 |
result |
Object created by |
base.treatment |
Base treatment for relative effect |
comparison.treatment |
Treatment comparing against base treatment |
base.category |
Base category for multinomial data. Note that category in multinomial denotes which column it is in the Outcomes matrix. Thus, this should be a numeric value. |
comparison.category |
Comparison category for multinomial data |
covariate.name |
A vector of covariate names of the covariate that goes into x-axis label |
1 2 3 4 5 6 7 8 | ########### certolizumab (with covariate)
network <- with(certolizumab, {
network.data(Outcomes, Study, Treat, N=N, response="binomial", Treat.order,
covariate = covariate, hy.prior = list("dhnorm", 0, 9.77))
})
result <- network.run(network)
network.covariate.plot(result, base.treatment = "Placebo", comparison.treatment = "CZP",
covariate.name = "Disease Duration")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.