normality.loop: A Function for computing univariate normality test on data...

View source: R/normality.loop.R

normality.loopR Documentation

A Function for computing univariate normality test on data frame.

Description

This function will compute normality on entire data set. Sometime in dlookr package p values turns out to be null thus failing to test normality of the data set. This is a good alternative of dlookr function. Here normality is tested using shapiro.test from base stats.

Usage

normality.loop(df, bonf = TRUE, alpha = 0.05)

Arguments

df

A data frame.

bonf

If TRUE a bonferonni correction will be conducted.

alpha

Desired alpha.

Value

Provides normality tests results for all columns in a wide data frame in a list format.

Examples

data <- tabledown::Rotter[, 11:31]
normality.loop(data)

m-a-siraji/BAAP documentation built on May 7, 2024, 12:54 p.m.