View source: R/MultipleTables-method-exported.R
| MultipleTables.create | R Documentation |
MultipleTables.Create an object of class MultipleTables, which is
a components list of exact posterior inference based on multiple 2x2 tables.
MultipleTables.create(data = NULL, measure = NULL, model = NULL)
data |
a data frame that contains |
measure |
a character string specifying a measure. Options are
|
model |
a character string specifying the model. Options are
|
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 |
MultipleTables.modelFit, MultipleTables.summary, and MultipleTables.plot.
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')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.