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

  1. 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?
  2. 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.
  3. 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mathematics Questions!