Description Usage Arguments Value See Also Examples
Takes a character vector as formated by pretty_ci
and adds a user specified explanatory note; to be used inline.
1 | pretty_inline_ci(string, note = "95% CI ", replace_bracket = TRUE)
|
string |
A character vector as formated by |
note |
A character vector indicating the explanatory note to be used. |
replace_bracket |
Logical, defaults to |
An estimate with formated CI's for use inline within a document.
pretty_ci
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | ## Use input from pretty_ci to generate a inline CI
pretty_inline_ci(pretty_ci(2,1,3))
## Change note i.e for 90% credible intervals
pretty_inline_ci(pretty_ci(2,1,3), note = '90% credible interval ')
## Handle vectorised input
est <- c(1,2,3,10)
lci <- c(0, -19, -209, -100)
uci <- c(100, 30, 40, 19)
formated_ci <- pretty_ci(est, lci, uci, sep = '-')
pretty_inline_ci(formated_ci)
## Add a note before the braket
pretty_inline_ci(formated_ci, note = " per 100,000 (95% CI ", replace_bracket = FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.