normal: Normal Distribution Test

Description Usage Arguments Value Examples

View source: R/normal.R

Description

Using Jarque Bera test, shapiro wilk test and Kolmogorov Smirnov test for one numeric object or numeric object in dataframe or matrix. Na is omitted in each object.

Usage

1
normal(x, num.names)

Arguments

x

numerica object or dataframe and matrix

num.names

numeric column names for dataframe and matrix. If missing, all numeric column names will be given.

Value

a dataframe containing kurtosis, skewness and p value for Jarque Bera test, shapiro wilk test and Kolmogorov Smirnov test. In star column, star represents p > 0.05, while underline taking the opposite.

Examples

1
2
3
4
5
6
7
8
9
set.seed(2019)
rn1=rnorm(100,0,2)
df=data.frame(rn1=rnorm(100,0,2),
              rn2=rnorm(100,2,4))
#normal test for one object
normal(rn1)

#normal test for dataframe
normal(df)

fastStat documentation built on Jan. 13, 2021, 7:32 a.m.

Related to normal in fastStat...