relative.effects {bnma}R Documentation

Find relative effects for base treatment and comparison treatments

Description

This function calculates relative effects for base treatment and comparison treatments.

Usage

relative.effects(
  result,
  base.treatment = NULL,
  comparison.treatments = NULL,
  base.category = NULL,
  comparison.categories = NULL,
  covariate = NULL
)

Arguments

result

Object created by network.run function

base.treatment

Base treatment user wants for the relative effects. Base treatment is initially set by Treat.order parameter in network.data (first one in the list). If set to null, default is to use base treatment.

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.

Value

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.

See Also

relative.effects.table

Examples

network <- with(parkinsons, {
 network.data(Outcomes, Study, Treat, SE = SE, response = "normal")
})

result <- network.run(network)
summary(relative.effects(result, base.treatment = "Placebo"))


[Package bnma version 1.6.0 Index]