[R] how to calculate the predicted value for the multiple regression

man4ish mandecent.gupta at gmail.com
Sat Apr 19 06:53:56 CEST 2008


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.



More information about the R-help mailing list