nt_norm_test: Normality tests

View source: R/normality_test.R

nt_norm_testR Documentation

Normality tests

Description

Perform Anderson-Darling, Shapiro-Francia, Kolmogorov-Smirnov, Cramer-vonMises, and Pearson normality tests for several variables. In addition, it also plots a Quantile-Quantile plot and a histogram.

Usage

nt_norm_test(data, group = NULL, norm.test = helper_sf_test)

Arguments

data

a data frame with the variables.

group

an optional character indicating the group variable.

norm.test

a function with a numeric vector as input and a list as output containing an object named p.value similar to helper_sf_test.

Value

tab a table of p-values for each of the five normality tests.

plot a Quantile-Quantile plot.

Examples

library(dplyr)
data(iris)

iris |> select(-Species) |> nt_norm_test()
iris |> nt_norm_test(group = Species)


dnzmarcio/ntimes documentation built on Jan. 4, 2024, 2:23 p.m.