Description Usage Arguments Value Examples
Report statistics from fmt_regression
and fmt_uni_regression
inline in an Rmarkdown document
1 2 3 4 5 6 7 | ## S3 method for class 'fmt_regression'
inline_text(x, cell,
stat = "{est} (95% CI {ci}; {p_pvalue})", sep = ":", ...)
## S3 method for class '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
1 2 3 4 5 6 7 8 9 10 11 12 | mod <- glm(response ~ age + grade + stage, trial, family = binomial(link = "logit")) %>%
fmt_regression(exponentiate = TRUE)
inline_text(mod, "age")
inline_text(mod, "grade:III")
trial %>%
fmt_uni_regression(
method = "lm",
y = "age"
) %>%
inline_text("grade:II")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.