Parameter table formatting
This functions takes a data frame with model parameters as input and formats certain columns into a more readable layout (like collapsing separate columns for lower and upper confidence interval values). Furthermore, column names are formatted as well.
format_table( x, pretty_names = TRUE, stars = FALSE, digits = 2, ci_width = "auto", ci_brackets = TRUE, ci_digits = 2, p_digits = 3, rope_digits = 2, zap_small = FALSE, preserve_attributes = FALSE, verbose = TRUE, ... ) parameters_table( x, pretty_names = TRUE, stars = FALSE, digits = 2, ci_width = "auto", ci_brackets = TRUE, ci_digits = 2, p_digits = 3, rope_digits = 2, zap_small = FALSE, preserve_attributes = FALSE, verbose = TRUE, ... )
x |
A data frame of model's parameters, as returned by various functions
of the easystats-packages. May also be a result from
|
pretty_names |
Return "pretty" (i.e. more human readable) parameter names. |
stars |
Add significance stars (e.g., p < .001***). |
digits |
Number of decimal places for numeric values (except confidence intervals and p-values). |
ci_width |
Minimum width of the returned string for confidence
intervals. If not |
ci_brackets |
Logical, if |
ci_digits |
Number of decimal places for confidence intervals. |
p_digits |
Number of decimal places for p-values. May also be |
rope_digits |
Number of decimal places for the ROPE percentage values. |
zap_small |
Logical, if |
preserve_attributes |
Logical, if |
verbose |
Toggle messages and warnings. |
... |
Arguments passed to or from other methods. |
A data frame.
if (require("parameters")) { x <- model_parameters(lm(Sepal.Length ~ Species * Sepal.Width, data = iris)) as.data.frame(format_table(x)) as.data.frame(format_table(x, p_digits = "scientific")) } if (require("rstanarm") && require("parameters")) { model <- stan_glm(Sepal.Length ~ Species, data = iris, refresh = 0, seed = 123) x <- model_parameters(model, ci = c(0.69, 0.89, 0.95)) as.data.frame(format_table(x)) }
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.