Learn R Programming

statsExpressions (version 1.3.1)

tidy_model_expressions: Expressions with statistics for tidy regression dataframes

Description

Expressions with statistics for tidy regression dataframes

Usage

tidy_model_expressions(
  data,
  statistic = NULL,
  k = 2L,
  effsize.type = "omega",
  ...
)

Arguments

data

A tidy dataframe from regression model object.

statistic

Which statistic is to be displayed (either "t" or "f"or "z" or "chi") in the label.

k

Number of digits after decimal point (should be an integer) (Default: k = 2L).

effsize.type

Type of effect size needed for parametric tests. The argument can be "eta" (partial eta-squared) or "omega" (partial omega-squared).

...

Currently ignored.

Examples

Run this code
# NOT RUN {
set.seed(123)

# tidy dataframe
df <- tidy_model_parameters(lm(wt ~ am * cyl, mtcars))

# create a column containing expressions
tidy_model_expressions(df, statistic = "t")
# }

Run the code above in your browser using DataLab