Learn R Programming

gemtc (version 0.8-8)

read.mtc.network: Read mtc.network from legacy GeMTC XML files (.gemtc)

Description

Read legacy GeMTC XML (.gemtc) files.

Usage

read.mtc.network(file)

Arguments

file

Path to the file to read (read.mtc.network).

Value

read.mtc.network returns an object of S3 class mtc.network.

Details

read.mtc.network exists to migrate data from the older GeMTC XML format, and requires the XML package to be installed.

Support for writing XML files has been removed. Instead, use native R methods to read and write networks (e.g. save/load or dput/dget).

See Also

mtc.network

Examples

Run this code
# NOT RUN {
# Read an example GeMTC XML file
file <- system.file("extdata/luades-smoking.gemtc", package="gemtc")
network <- read.mtc.network(file)

# Summarize the network (generate some interesting network properties)
summary(network)
## $Description
## [1] "MTC dataset: Smoking cessation rates"
## 
## $`Studies per treatment`
##  A  B  C  D 
## 19  6 19  6 
## 
## $`Number of n-arm studies`
## 2-arm 3-arm 
##    22     2 
# }

Run the code above in your browser using DataLab