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
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.
# NOT RUN {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 objectnormal(rn1)
#normal test for dataframenormal(df)
# }