Normality test - Anderson darling normality test
Generate normal distribution
First we generate 100 random numbers from normal distribution with mean is 10 and
standard deviation is 1.
x = rnorm(amount of values,mean, standard deviation)
ex: > x = rnorm(100,10,1)
Generate non normal distribution
Next, generate 100 numbers from non normal data set.
y = rweibull(amount of values,shape, scale)
ex: > y = rweibull(100,10,1)
Next check normality test
>library(nortest)
>ad.test(x)
>ad.test(y)
Full code
> x = rnorm(100,10,1)
> x
> y = rweibull(100,10,1)
> y
> library(nortest)
> ad.test(x)
> ad.test(y)