relative.effects {bnma} | R Documentation |
This function calculates relative effects for base treatment and comparison treatments.
relative.effects(
result,
base.treatment = NULL,
comparison.treatments = NULL,
base.category = NULL,
comparison.categories = NULL,
covariate = NULL
)
result |
Object created by |
base.treatment |
Base treatment user wants for the relative effects. Base treatment is initially set by |
comparison.treatments |
Treatments that user wants to compare against base treatment. If set to null, all the treatments besides base treatment is considered as comparison treatments. |
base.category |
Base category user wants for the relative effects. Only used for multinomial data. |
comparison.categories |
Category that user wants to compare against base.category. Only used for multinomial data. |
covariate |
Covariate value at which to compute relative effects. Only used if covariate value is specified in the model. |
This returns a mcmc.list sample of relative effects for the base treatment specified. This allows user to obtain relative effects of different base.treatment after the sampling has been done.
For a simple summary, use relative.effects.table
.
network <- with(parkinsons, {
network.data(Outcomes, Study, Treat, SE = SE, response = "normal")
})
result <- network.run(network)
summary(relative.effects(result, base.treatment = "Placebo"))