get.relative: Calculates relative effects between treatments in an MBNMA...

Description Usage Arguments Value Examples

View source: R/inconsistency.functions.R

Description

Calculates relative effects between treatments in an MBNMA model

Usage

1
get.relative(mbnma, treatments = list())

Arguments

mbnma

An object of class("mbnma")

treatments

A list whose elements each represent different treatments. Treatment is defined as a combination of agent and dose. Only agents specified in mbnma can be included. Each element in treatments is named corresponding to the agent and contains a numeric vector of doses. Relative effects will be calculated between all treatments specified in treatments.

Value

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 row-defined treatment versus the column-defined treatment.

Examples

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))

MBNMAdose documentation built on Sept. 13, 2020, 5:08 p.m.