Question: This is a R studio question What is the difference between the s-squared of education for men in your sample and the s-squared for education
This is a R studio question
- What is the difference between the s-squared of education for men in your sample and the s-squared for education for women in your sample?
- Test the null hypothesis that men and women have the same average education. Perform a two-sided test, without assuming equal variances. Report the resulting p-value.
- Set a seed equal to the number 2108. Create one new variable in your data set called "Sex_Randomized" and randomly assign each observation to be male or female. You can use the following way:
"set.seed(310)
My_data$Sex_Randomized = sample(My_Data$Sex, size = length(My_Data$Sex))"
a. Find the difference between the mean of education for those randomly assigned "male" and those randomly assigned "female"
b. Find the difference between the s-squared for the sample of observations randomly assigned male and the sample randomly assigned female.
The link to the data:
https://docs.google.com/spreadsheets/d/1XsXxJWg3JlDafIG2ZCc56vBIffb-e0qUnPJpsut9QjU/edit#gid=0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
