I want to test a hypothesis, where i want to test the marks scored by Boys and girls.
Gender = 1 is for males and gender = 0 is for females.
assuming I am reading a data from a CSV file this is how I am representing it.
hp<-read.csv("hyp.csv")
t.test(hp$Math[hp$Gender==1],mu=mean(hp$Math[hp$Gender==0]),alternative ="greater" ))
Is this the correct representation of the code. I am putting the girls mean in mu and boys as X.
Any help will be appreciated.
Thanks and regards,
Aditya