Statistics 512: Problem Set No. 6Due October 23, 2009For the following 3 problems use the computer science data that we have been dis-cussing in class. You can get a copy of the data setcsdata.datfrom the class website.The variables are:id, a numerical identifier for each student;GPA, the grade pointaverage after three semesters;HSM;HSS;HSE;SATM;SATV, which were all explained inclass; andGENDER, coded as 1 for men and 2 for women.1. In adatastep, create a new variableGENDERWthat has values 1 for women and 0 for men(use arithmetic on the original variableGENDER). Run a regression to predictGPAusing theexplanatory variablesHSM,HSS,HSE,SATM,SATV, andGENDERW. (Do not include any interactionterms.)(a) Give the equation of the fitted regression line using all six explanatory variables.(b) Give the fitted regression line for women (use part a).(c) Give the fitted regression line for men (use part a).DO NOT attempt to runproc regon a subset of the data to answer this question.
This is the end of the preview.
access the rest of the document.