Learn R Programming

nmadb (version 1.2.0)

runnetmeta: Run netmeta

Description

R package netmeta provides frequenstist methods for network meta-analysis based on R<U+00FC>cker (2012) and R<U+00FC>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

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<U+00FC>cker G (2012) <doi:10.1002/jrsm.1058>.

R<U+00FC>cker G, Schwarzer G (2014) <doi:10.1002/sim.6236>.

See Also

netmeta ,getNMADB ,readByID

Examples

Run this code
# NOT RUN {
  Conduct random effects network meta-analysis 
  in a random network with continuous outcome
# }
# NOT RUN {
cid <- 501427
netc <- readByID(cid)
# }
# NOT RUN {
get type and effect
# }
# NOT RUN {
netc$type
netc$effect
# }
# NOT RUN {
In order to run netmeta but get "SMD" summary effects instead
# }
# NOT RUN {
runnetmeta(recid=cid, measure="SMD")

# }
# NOT RUN {
If we the following example choosing OR we get an error
runnetmeta(recid=cid, measure="OR")

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

Run the code above in your browser using DataLab