I have random sample containing 1 response variable and 10 explanatory variables (X) and I'm trying to find the best subset applying linear regression
No problems with fitting the model, but I need y^s for each subset, so I'm open to any suggestions how to discard the least significant variable and re-fit the model repeatedly until there's only constant and yet save y^ for each subset.
Don't need the whole script, that would be silly of me, i'm just looking for any useful functions.
Thank you all in advance.
Ondrej