tests_norm: Performs a variety of Normality Tests on a given dataset

Description Usage Arguments Value See Also Examples

Description

Performs a variety of normality tests on the numeric variables on a given dataset. Note the function also evaluates numeric vectors as well. The tests include; the shapiro wilk test, the anderson darling test, the cramer-von Mises test, the lillie (kolmogorov-smirnov) test, pearson chi-square test and the shapiro-francia test. The results can be saved to a specified directory.

Usage

1
2
3
tests_norm(dataset, test = c("shapiro-wilk", "anderson-darling",
  "cramer-von mises", "lillie", "pearson", "shapiro-francia"),
  file_name = NULL, directory = NULL)

Arguments

dataset

A dataset to be tested

test

The type of normlity test used. One of six; "shapiro-wilk", "anderson-darling", "cramer-von mises", "lillie", "pearson" and "shapiro-francia". Default is "shapiro-wilk".

file_name

A character object indicating the file name when saving the data frame. The default is NULL. The name must include the .csv suffixs.

directory

A character object specifying the directory where the data frame is to be saved as a .csv file.

Value

Outputs a dataframe of the normality tests

See Also

tests_chisq, tests_cors, tests_ks, tests_proptest, tests_t, tests_var, tests_wilcoxon

Examples

1
2
# Example House Price Dataset
tests_norm(dataset = house_prices, test = "anderson-darling")

oislen/BuenaVista documentation built on May 16, 2019, 8:12 p.m.