saveModelCode: Extract JAGS model code from a 'mtc.results' object

Description Usage Arguments Details See Also

View source: R/nma.R

Description

Extract JAGS model code from a mtc.results object

Usage

1
saveModelCode(mtcRes, modelFile)

Arguments

mtcRes

An object of class mtc.result as returned by mtc.run from the gemtc package

modelFile

A character string specify the file path where the code will be saved.

Details

The mtc.run function automatically generates JAGS code to specify a network meta-analysis model. This function extracts the JAGS code from the mtc.results object and saves it to a file to have a record of what was done.

See Also

mtc.run


RichardBirnie/mautils documentation built on July 12, 2019, 8:56 p.m.