Non Par Source Code
Non Par Source Code
#Normality test
number_of_person<-c(5,6,14,19,15,11,18,22,26)
coffee_sold<- c(10,20,30,40,30,20,40,40,50)
shapiro.test(number_of_person)
shapiro.test(coffee_sold)
#Statisticial Test
weight1 <-c(198,237,233,179,219,169,222,167,199,233,179,158,157,216,355,151)
weight2 <-c(196,233,231,181,217,166,219,167,200,229,181,153,151,213,255,146)
differrence <-weight1-weight2
shapiro.test(differrence)
#statistical test
weight1 <-c(198,237,233,179,219,169,222,167,199,233,179,158,157,216,355,151)
weight2 <-c(196,233,231,181,217,166,219,167,200,229,181,153,151,213,255,146)
exact = FALSE)
## Mann-Witney U test
#Example 1
results<-c(105,119,100,97,96,101,94,95,98,96,99,94,89,96,93,88,105,88)
RER <-c(replicate(9,"placebo"),replicate(9,"caffeine"))
data_frame<-data.frame(results,RER)
data_frame
#apply subset, to get the data "visual" and "textual" from dataframe
Placebo<-subset(data_frame,RER=="placebo")
Caffeine<-subset(data_frame,RER=="caffeine")
shapiro.test(Placebo$results)
shapiro.test(Caffeine$results)
## statistical test
gains<-c(63,-261,-153,-13,965,0,-652,4724,-2,0,-86,2239,171,40,1395)
data_frame<-data.frame(gains,group)
data_frame
#apply subset, to get the data "visual" and "textual" from dataframe
group1<-subset(data_frame,group=="group1")
group2<-subset(data_frame,group=="group2")
group3<-subset(data_frame,group=="group3")
shapiro.test(group1$gains)
shapiro.test(group2$gains)
shapiro.test(group3$gains)
#Statistical Test
table(School_Dataset$Gender,School_Dataset$`Drop Reason`)
table(School_Dataset$`Drop Reason`,School_Dataset$Gender)
chisq.test(School_Dataset$`Drop Reason`,School_Dataset$Gender)