Thank you. I was confused because the output of the line "summary(lm(formula =..." reads:
"Coefficients: (1 not defined because of singularities)", which did not look like a normal message (which can safely be ignored) to me. --Holger On Tue, 8 Nov 2011 15:06:28 +0100 Peter Konings <[email protected]> wrote: > On Tue, Nov 8, 2011 at 2:52 PM, Holger Taschenberger < > [email protected]> wrote: > <snip> > > > summary(lm(formula = y ~ x - 1 + x:g, dta)) > > ################## > > I assume that the last line is the correct way to specify a linear model > > without intercept. But I'm not certain about that. Can someone please > > confirm? > > > Yes, that's true. See chapter 11 of the "Introduction To R" manual that was > installed with R for an overview of model specification in R. > > HTH > Peter. ______________________________________________ [email protected] 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.

