fmt_terms | R Documentation |
Format estimate and 95% CIs for inline markdown
fmt_terms(
models,
str =
"$\\beta={signif(estimate, 2)}$ ({signif(conf.low, 2)}, {signif(conf.high, 2)})"
)
models |
A named list of models |
str |
A glue format string, Default: '$\\beta=signif(estimate, 2)$ (signif(conf.low, 2), signif(conf.high, 2))' |
Provide a named list of regression models, and the resulting named list will have a formatted string suitable for inline rmarkdown
A name list of model statistics, including str, a string version of the term estimate.
## Not run:
if(interactive()){
stats <- fmt_terms(list(m1 = lm(mpg ~ hp, mtcars), m2 = lm(mpg ~ wt, mtcars)))
stats$m1$hp$str
}
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.