runnetmeta: Run 'netmeta'

Description Usage Arguments Value References See Also Examples

View source: R/runnetmeta.R

Description

R package netmeta provides frequenstist methods for network meta-analysis based on Rücker (2012) and Rücker (2014). This function is used to run netmeta on a specified network included in the database of network meta-analyses, which can be downloaded using function getNMADB.

Usage

1
runnetmeta(recid, model = "random", measure = "notset")

Arguments

recid

ID of network in database

model

"fixed" or "random"; specifies if fixed or random effects network meta-analysis should be conducted.

measure
  • "notset" (default) is the type of effect measure in the original publication

  • "OR" odds ratio for binary data

  • "RR" risk ratio for binary data

  • "RD" risk difference for binary data

  • "MD" mean difference for continuous data

  • "SMD" standardized mean difference for continuous data

  • "HR" hazard ratio for survival data

  • "IRR" incidence rate ratio for rate data

If the measure entered is not compatible with network's type you get an error

Value

An object of class netmeta; for the descirption of the components included in the object, see the help file of netmeta.

References

Rücker G (2012) <doi:10.1002/jrsm.1058>.

Rücker G, Schwarzer G (2014) <doi:10.1002/sim.6236>.

See Also

netmeta ,getNMADB ,readByID

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
## Not run: 
  Conduct random effects network meta-analysis 
  in a random network with continuous outcome

## End(Not run)
cid <- 501427
netc <- readByID(cid)
## Not run: get type and effect
netc$type
netc$effect
## Not run: In order to run netmeta but get "SMD" summary effects instead
runnetmeta(recid=cid, measure="SMD")



## Not run: If we the following example choosing OR we get an error
runnetmeta(recid=cid, measure="OR")
## End(Not run)

## Not run: As before for a network with binary outcome
bid <- 481216
netb <- readByID(bid)
## Not run: get type and effect
netb$type
netb$effect
runnetmeta(recid=bid, measure="OR")
 
## Not run: Survival outcome
sid <- 479888
nets <- readByID(sid)
## Not run: get type and effect
nets$type
nets$effect
runnetmeta(recid=sid)
 
## Not run: Rate outcome
rid <- 479999
netr <- readByID(rid)
## Not run: get type and effect
netr$type
netr$effect
runnetmeta(recid=rid)

 

nmadb documentation built on Dec. 19, 2019, 5:07 p.m.

Related to runnetmeta in nmadb...