placed<-deans.df[which(deans.df$Placement_B==1), ]
placed1<-aggregate(placed$Salary,by=list(placed$Gender),FUN=mean)
View(placed1)
H1: The average salary of the male MBAs is higher than the average salary of female MBAs.
t.test(Salary~Gender,data=deans.df,alternative="less")
##
## Welch Two Sample t-test
##
## data: Salary by Gender
## t = -2.69, df = 278.55, p-value = 0.003789
## alternative hypothesis: true difference in means is less than 0
## 95 percent confidence interval:
## -Inf -14762.25
## sample estimates:
## mean in group F mean in group M
## 193288.2 231484.8