See ?contrasts and ?contr.sum By default, R uses contr.treatment, you want contr.sum
Christophe On Sat, Feb 12, 2011 at 6:57 AM, ATANU <ata.s...@gmail.com> wrote: > > i am trying to fit a linear model with both continuous covariates and > factors. When fitted with the intercept > term the first level of the factor is treated by R as intercept and the > estimate of the effects of remaining levels(say i th level) are given as > true estimate of i th level - estimate of 1st level. i want the estimates of > coefficients of each level along with the intercept term(general > effect).can anyone please help me? > thanks in advance..... > -- > View this message in context: > http://r.789695.n4.nabble.com/linear-models-with-factors-tp3302404p3302404.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > R-help@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. > -- Christophe Pallier <christo...@pallier.org> tel: +33 (0)1 69 08 79 34 Unité de Neuroimagerie Cognitive INSERM-CEA, Neurospin center, F91191 Gif-sur-Yvette, France web site: http://www.unicog.org personal web site: www.pallier.org ______________________________________________ R-help@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.