tidy_model_expressions {statsExpressions} | R Documentation |
Expressions with statistics for tidy regression data frames
tidy_model_expressions( data, statistic = NULL, k = 2L, effsize.type = "omega", ... )
data |
A tidy data frame from regression model object (see
|
statistic |
Which statistic is to be displayed (either |
k |
Number of digits after decimal point (should be an integer)
(Default: |
effsize.type |
Type of effect size needed for parametric tests. The
argument can be |
... |
Currently ignored. |
When any of the necessary numeric column values (estimate
, statistic
,
p.value
) are missing, for these rows, a NULL
is returned instead of an
expression with empty strings.
This is an experimental function and may change in the future. Please do not use it yet in your workflow.
# setup set.seed(123) library(statsExpressions) # extract a tidy data frame df <- tidy_model_parameters(lm(wt ~ am * cyl, mtcars)) # create a column containing expression; the expression will depend on `statistic` tidy_model_expressions(df, statistic = "t") tidy_model_expressions(df, statistic = "z") tidy_model_expressions(df, statistic = "chi")