Learn R Programming

tabledown (version 1.0.0)

normality.loop: 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)

Value

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

Arguments

df

A data frame.

bonf

If TRUE a bonferonni correction will be conducted.

alpha

Desired alpha.

Examples

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

Run the code above in your browser using DataLab