[R] Question for LM intercept

From: Pavlidis, Efthymios <e.pavlidis_at_lancaster.ac.uk>
Date: Fri 14 Jul 2006 - 00:02:29 EST


I am having the following silly problem with lm.

Let X be a dataframe with X[,1] the dependent variable and X[,-1] the independent variables. I want to run the following but without including an intercept.

for(i in 1:100 ){

    lm( X[,100-i] ) # this works fine but it returns an intercept }

Can anyone help me? Thank you in advance!


R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Fri Jul 14 00:07:08 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Fri 14 Jul 2006 - 04:14:22 EST.

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