fmt_regression and fmt_uni_regression inline in an Rmarkdown documentinline_text.fmt_regression.RdReport statistics from fmt_regression and fmt_uni_regression inline in an Rmarkdown document
# S3 method for fmt_regression inline_text(x, cell, stat = "{est} (95% CI {ci}; {p_pvalue})", sep = ":", ...) # S3 method for fmt_uni_regression inline_text(x, cell, stat = "{est} (95% CI {ci}; {p_pvalue})", sep = ":", ...)
| x | object of class |
|---|---|
| cell | identifier for which cell to return from the |
| stat | Statistic to report. User can access the primary estimate ( |
| sep | a character string to separate the terms |
| ... | further arguments passed from generic |
Formatted descriptive statistics from a fmt_regression object
mod <- glm(response ~ age + grade + stage, trial, family = binomial(link = "logit")) %>% fmt_regression(exponentiate = TRUE) inline_text(mod, "age")#> [1] "1.00 (95% CI 0.98, 1.02; p=0.9)"#> [1] "0.79 (95% CI 0.38, 1.64; p=0.5)"#> [1] "1.34 (95% CI -3.78, 6.45; p=0.6)"