hi ,
i am trying to predict the value of dependent variable using the independent
variable using R .
like y is dependent and x1,x2,x3 ...,xn are independent variables so how can
predict the value of y using x1,x2,x3 ...,xn .
y x1 x2 x3 x4 x5 x6
6 0 1 231 2
5 1 34
Generally lm and predict.lm will solve this kind of problems, see
?lm
?predict.lm
But with your given data there is nothing to predict, since you have 6
independent variables and 6 observations. So you have a complete System
of linear equations, which you can solve, see ?solve.
hth.
man4ish
2 matches
Mail list logo