cv06_sw_norm_test_2 {CleaningValidation}R Documentation

Perform Shapiro-Wilk Normality Test on Two Variables

Description

This function performs the Shapiro-Wilk test for normality on two specified variables within a dataset. It returns a data frame with the variables' names, Shapiro-Wilk statistics, p-values in scientific notation, and indications of whether the p-values are less than 0.05.

Usage

cv06_sw_norm_test_2(data, residue_col, residue_pct_col)

Arguments

data

A data frame containing the dataset.

residue_col

The name of the first column to test for normality.

residue_pct_col

The name of the second column to test for normality.

Value

A data frame with Shapiro-Wilk test results for both variables.

Author(s)

Chan, Mohamed, Lou, Wendy, Yang, Xiande [xiande.yang at gmail.com]

Examples

# assuming Eq_DAR is a predefined dataset 
Eq_DAR <- cv03_usl_unification(data = Eq_DAR,  "CleaningEvent",  "DAR",  "USL")
cv06_sw_norm_test_2(data=Eq_DAR, residue_col="DAR", residue_pct_col="DAR_Pct")

[Package CleaningValidation version 1.0 Index]