hierarchical.plot: Plotting Results from 'nmadt.hierarchical' and...

Description Usage Arguments Examples

View source: R/hierarchical.plot.R

Description

hierarchical.plot plots the results from nmadt.hierarchical and nmadt.hierarchical.MNAR.Graphics representation includes density plots, forest plots, SROC curves, and contour plots of the results.

Usage

1
2
hierarchical.plot(nstu, K, data, testname, output, directory,
  typeofplot = c("density", "forest", "sroc", "contour"), n.chains = 3)

Arguments

nstu

an integer indicating the number of studies included in the dataset.

K

an integer indicating the number of candiate test in the dataset.

data

a list conating the input dataset to be used for meta-analysis.

testname

a string vector of the names of the candidate tests in the dataset in the same order as presetned in the dataset.

output

a list object obtained by function nmadt.hierarchical and nmadt.hierarchical.MNAR.

directory

a string specifying the designated directory to save the plots.

typeofplot

a string vector containing the types of plot to be generated including "density", "forest","sroc", and "contour".

n.chains

a number indicating number of MCMC chains generated using nmadt.hierarchical and nmadt.hierarchical.MNAR. The default is 3.

Examples

1
2
3
4
5
6
kangdata<-read.csv(file=system.file("extdata","kangdata.csv",package="NMADiagT"),
header=TRUE, sep=",")
set.seed(9)
kang.out <- nmadt.hierarchical(nstu=12, K=2, data=kangdata, testname=c("D-dimer","Ultrasonography"))
hierarchical.plot(nstu=12, K=2, data=kangdata, directory = tempdir(),
testname=c("D-dimer","Ultrasonography"),output=kang.out)

NMADiagT documentation built on Feb. 26, 2020, 9:06 a.m.