Description Usage Arguments Value Examples
View source: R/inconsistency.functions.R
Calculates relative effects between treatments in an MBNMA model
1  get.relative(mbnma, treatments = list())

mbnma 
An object of 
treatments 
A list whose elements each represent different treatments.
Treatment is defined as a combination of agent and dose. Only agents specified in

An array of length(treatments) x length(treatments) x nsims
, where nsims
is the number of iterations monitored in mbnma
. The array contains the individual
MCMC values for each relative effect calculated between all treatments
. The
direction of effect is for the rowdefined treatment versus the columndefined
treatment.
1 2 3 4 5 6 7 8  # Using the osteoarthritis data
network < mbnma.network(osteopain_2wkabs)
expon < mbnma.exponential(network, method="random")
# Calculate relative effects between:
# Celebrex 100mg/d, Celebrex 200mg/d, Tramadol 100mg/d
rel.eff < get.relative(expon, treatments=list("Celebrex"=c(100,200), "Tramadol"=100))

Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.