MultipleTables.create {mmeta} | R Documentation |
Create an object of class MultipleTables
.
Description
Create an object of class MultipleTables
, which is
a components list of exact posterior inference based on multiple 2x2 tables.
Usage
MultipleTables.create(data = NULL, measure = NULL, model = NULL)
Arguments
data |
a data frame that contains |
measure |
a character string specifying a measure. Options are
|
model |
a character string specifying the model. Options are
|
Value
An object is returned, inheriting from class MultipleTables
.
Objects of this class contain the meta-data for generic functions: MultipleTables.modelFit
,
MultipleTables.summary
, and MultipleTables.plot
.
The following valuesof the object must be non-null under MultipleTables.create
.
measure |
the value of |
model |
the value of |
data |
a data matrix with rows being |
See Also
MultipleTables.modelFit
, MultipleTables.summary
, and MultipleTables.plot
.
Examples
library(mmeta)
library(ggplot2)
## Analyze the dataset colorectal to conduct exact inference of the odds ratios
data(colorectal)
colorectal['study_name'] <- colorectal['studynames']
multiple_tables_obj <- MultipleTables.create(data=colorectal, measure='OR', model= 'Sarmanov')