# \donttest{
library(mmeta)
library(ggplot2)
## Analyze the dataset colorectal to conduct exact inference of the odds ratios
data(colorectal)
colorectal['study_name'] <- colorectal['studynames']
## If exact method is used, the codes for sampling method are similar.
## Create object multiple_tables_obj_exact
multiple_tables_obj_exact <- MultipleTables.create(data=colorectal,
measure='OR', model= 'Sarmanov')
## Model fit default
multiple_tables_obj_exact <- MultipleTables.modelFit(multiple_tables_obj_exact, method = 'exact')
## Summary of the fitting process (default)
multiple_tables_obj_exact <- MultipleTables.summary(multiple_tables_obj_exact)
## Structure of SingleTable object
str(multiple_tables_obj_exact)
## If set alpha level to 0.1
multiple_tables_obj_exact <- MultipleTables.summary(multiple_tables_obj_exact, alpha = 0.1)
## If set digit to 4
multiple_tables_obj_exact <- MultipleTables.summary(multiple_tables_obj_exact,
alpha = 0.05, digit = 4)
## If decided not to print out
multiple_tables_obj_exact <- MultipleTables.summary(multiple_tables_obj_exact,
alpha = 0.05, digit = 4,verbose = FALSE)
# }
Run the code above in your browser using DataLab