man4ish
2008-Apr-19 04:53 UTC
[R] how to calculate the predicted value for the multiple regression
what i am trying to do , using the following data , i want to calculate the predicted value for each row and each value e.g 0 1 2 3 7 5 0 4 4 3 this is row one then i want to do the following keep 0 dependent variable and others as indepedent (1 2 3 7 5 0 4 4 3) predict value for this. again keep 1 as dependent variable and other as indepedent (0 2 3 7 5 0 4 4 3) predict value for this. again keep 2 as dependent variable and other as indepedent (0 1 3 7 5 0 4 4 3) predict value for this. again keep 3 as dependent variable and other as indepedent (0 1 2 7 5 0 4 4 3) predict value for this. and so on and in the last again keep 3 as dependent variable and other as indepedent (0 1 2 3 7 5 0 4 4 ) predict value for this. so that i can get the vector of exactly same length with predicted value for the given row . How can i do this , I will be very much thankful to you. -- View this message in context: http://www.nabble.com/how-to-calculate-the-predicted-value-for-the-multiple-regression-tp16770108p16770108.html Sent from the R help mailing list archive at Nabble.com.