Skip to contents

The test is calculated using stats::shapiro.test.

Usage

effect_metrics_one(data, col, labels = TRUE, clean = TRUE, ...)

Arguments

data

A tibble.

col

The column holding metric values.

labels

If TRUE (default) extracts labels from the attributes, see codebook.

clean

Prepare data by data_clean.

...

Placeholder to allow calling the method with unused parameters from effect_metrics.

Value

A volker tibble.

Examples

library(volker)
data <- volker::chatgpt

effect_metrics_one(data, sd_age)
#> 
#> 
#> |Age      | value|
#> |:--------|-----:|
#> |skewness |  0.25|
#> |kurtosis | -0.98|
#> 
#> 
#> |Shapiro-Wilk normality test |      value|
#> |:---------------------------|----------:|
#> |W-statistic                 |       0.96|
#> |p value                     |      0.002|
#> |stars                       |         **|
#> |normality                   | not normal|