[R] lm regression: estimate of a categorical variable without being broken into levels

avneet singh avneetaquarian at yahoo.com
Tue Dec 21 21:06:47 CET 2004


Hello:

I am new to R and am going through the growing pains,
wonder if you could help alleviate some.

I wished to find the estimate for a categorical
variable without it being broken into levels but dont
know how to.

if I use the following example:

$>data(iris)
$>g=lm(Sepal.Length~.,iris)
$>summary(g)

I get the estimate of the categorical variable
"Species" broken up into levels.

$>anova(g)

Now i get values pertaining to the variable "Species"
without the levels being broken but i do not get the
estimate.

Question: Is there a formulae which provides the
values that "summary" provides but doesnt break up the
categorical variable into levels?

Thank you


=====
There are lies, damned lies and statistics. 
~Mark Twain




More information about the R-help mailing list