R programming at work: Shapiro-Wilk Test, statistical analysis

Rajendra Choure
Rajendra Choure
2.3 هزار بار بازدید - 3 سال پیش - Shapiro-wilk test is best of
Shapiro-wilk test is best of the tests to confirm normal  destribution of data . This is the test used before all other hypothesis testing methods.

#rprogramming
#shapirowilktest
#statisticaltest
#normaldestribution
#shapiro.test
#testsfordestribution

#code for learniing

a=c(28, 23, 21, 19, 24)
shapiro.test(a)

b=c(29, 24, 52, 23, 27)
shapiro.test(b)

 
c=c(17,15,41,12,32)
shapiro.test(c)

women
shapiro.test(women$height)
shapiro.test(women$weight)


cat=c(rep("a",20),rep("b",20),rep("c",20))
pop=rnorm(5000,sd=10)
values=c(rnorm(20,mean=0.7,sd=3),rnorm(20,mean=1.2,sd=3),rnorm(20,mean=1.5,sd=6))
cat=c(rep("pop",5000),cat)
values=c(pop,values)
df=data.frame(cat,values)
library(ggplot2)
ggplot(df,aes(values,color=cat,fill=cat))+
 geom_density(alpha=0.25)+
 theme_void()
3 سال پیش در تاریخ 1400/06/21 منتشر شده است.
2,394 بـار بازدید شده
... بیشتر