s-news
[Top] [All Lists]

Names of coefficients in GLM

To: s-news@wubios.wustl.edu
Subject: Names of coefficients in GLM
From: yiwu ye <yiwu21111958@yahoo.com>
Date: Thu, 24 Jan 2008 16:48:42 -0800 (PST)
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type:Message-ID; b=uQHvBX9ol5525e15BrWGl+DqUj2QJRft+0fwaF0u+uVoQ/s+B4C+2nu0gUXOVI1mm2sJTwJBslqHgWsmdbvYphWp37FUoFaXLnGr0ALG7NQ0l+zitRttVLqt3C3UC84aSR5XqJk9pRKYxyThq9jt7Z84PwApkWr5uSPX62YQEb8=;
Dear List,

This is a simple example showing what I am after.

Number<-c(1,2,2,4,5,4,12,15,13)
Region<-c(rep("South",3),rep("West",3),rep("North",3))
X1<-c(c(1,2,3),c(2,3,2),c(3,4,5))
dat<-data.frame(Number=Number,Region=Region,X1=X1)
fit<-glm(Number~X1+Region)
summary(fit,cor=F) gives:
....
Coefficients:
                 Value Std. Error   t value
(Intercept)  4.8571429  1.2568582  3.864511
         X1  0.5714286  0.4379917  1.304656
    Region1 -5.2619048  0.5839889 -9.010282
    Region2 -0.9285714  0.2433287 -3.816119
.....
The names Region1 and Region2  are confusing particularly when there are many levels. I remember I got the names like RegionSouth and RegionWest before, but I don't know how to get that kind of coefficient names. Could anyone help?

Thanks,

Yiwu








Never miss a thing. Make Yahoo your homepage.
<Prev in Thread] Current Thread [Next in Thread>