Aliases: tidy.epi.2by2 epiR_tidiers
Keywords:
### ** Examples # feel free to ignore the following lineāit allows {broom} to supply # examples without requiring the model-supplying package to be installed. if (requireNamespace("epiR", quietly = TRUE)) { # load libraries for models and data library(epiR) # generate data dat <- matrix(c(13, 2163, 5, 3349), nrow = 2, byrow = TRUE) rownames(dat) <- c("DF+", "DF-") colnames(dat) <- c("FUS+", "FUS-") # fit model fit <- epi.2by2( dat = as.table(dat), method = "cross.sectional", conf.level = 0.95, units = 100, outcome = "as.columns" ) # summarize model fit with tidiers tidy(fit, parameters = "moa") tidy(fit, parameters = "stat") }