[R] Is this correct?
lmoto001 at fiu.edu
Mon Nov 24 03:45:55 CET 2008
I have to answer the following question for a homework assignment.
A researcher was interested in whether people taking part in sports at
university made more money after graduating, taking into account the
students' GPA. They sampled 200 alumni from a large university. The
variables are: income (income 10 years after graduating), sports (1 if they
did sports, 0 if they did not), and GPA (the grade point average at
university). Discuss the relationship between taking part in sports, GPA,
and income for these data.
The R code I used so far is
Does sports predict GPA?
Does sports predict income?
Does GPA predict income?
Does sports predict income after accounting for GPA?
Can someone let me know is the above is correct? I am not sure if to keep
all four regressions or only 1 and 4. Also, I need to plot the data on a
graph or table. Can anyone suggest how to do this? Thank you in advance :)
View this message in context: http://www.nabble.com/Is-this-correct--tp20654004p20654004.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help