Re: [R] Making predictions from a linear model

2013-08-27 Thread Jeff Newmiller
In spite of your claim to be familiar with explanatory modeling, you are not describing your questions about R in terms of theory you would like to apply and assumptions you are willing to make. This list is about R, so don't go fishing for statistical advice. Have you read the help file for pr

[R] Making predictions from a linear model

2013-08-27 Thread Abraham Mathew
I'm trying to educate myself about predictive analytics and am using R to generate a linear model with the following data. age <- c(23, 19, 25, 10,9, 12, 11,8) steroid <- c(27.1, 22.1, 21.9, 10.7, 7.4, 18.8, 14.7, 5.7) gpa <- c( 2.1, 2.9, 2.8, 3.5, 3.2, 3.9, 2.8, 2.6) sample