[R] problem in caluclaring the multiple regression

From: man4ish <mandecent.gupta_at_gmail.com>
Date: Fri, 18 Apr 2008 23:18:38 -0700 (PDT)

I am trying to calculate the regression for the follwing input data stored in 'data.txt' file.I am reading this and storing it in the variable i .then i am trying to get the predicted value using f1 as dependent and others f2....f10 as independent variables.It is giving the following error. Also i want that i shoul get one predicted value for each row(y). What should i do. Please help me out i will be thankful to you.

i<-read.table("data.txt",header=FALSE)
i

        V1 V2 V3 V4 V5 V6 V7 V8 V9 V10 V11 1 molecule f1 f2 f3 f4 f5 f6 f7 f8 f9 f10

2       m1  3  7  0  3  0  0  0  1   1   1
3       m2  2  7  0  2  0  2  0  1   0   1
4       m3  0  0  0  3  0  0  0  3   1   0
5       m4  3  7  0  1  3  0  0  0   0   1

 attach(i)
out<-lm(y~x1+x2+x3+x4+x5+x6+x7+x8+x9+x10) Error in eval(expr, envir, enclos) : object "y" not found

-- 
View this message in context: http://www.nabble.com/problem-in-caluclaring-the-multiple-regression-tp16771241p16771241.html
Sent from the R help mailing list archive at Nabble.com.

	[[alternative HTML version deleted]]

______________________________________________
R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Sat 19 Apr 2008 - 08:00:42 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 21 Apr 2008 - 09:30:29 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive