[R] Howto calculate R^2 from an anconva glm
Ronaldo Reis Jr.
chrysopa at insecta.ufv.br
Thu Apr 17 16:19:32 CEST 2003
Hi,
If I have the follow example:
y = count data
x1 = continuous data
x2 = qualitative data (2 factors levels)
I make a model
glm(y~x1,family=poisson)
The model has only one curve, to calculate r-square, I do
"x1 Deviance"/"total Deviance"
But in a model with x2
glm(y~x1+x2,family=poisson)
I have two curves, but I dont have, using summary() or anova(), the deviance
for separates levels. How to obtain rsquare for the two ajusted curves???
Thanks
Ronaldo
--
Quando uma boa administração é trazida para um mau negócio, é a reputação do
negócio que permanece intacta
--Warren Buffet
--
| // | \\ [*****************************][*******************]
|| ( õ õ ) [Ronaldo Reis Júnior ][PentiumIII-600 ]
| V [UFV/DBA-Entomologia ][HD: 30 + 10 Gb ]
|| / \ [36571-000 Viçosa - MG ][RAM: 128 Mb ]
| /(.''`.)\ [Fone: 31-3899-2532 ][Video: SiS620-8Mb ]
||/(: :' :)\ [chrysopa at insecta.ufv.br ][Modem: Pctel-onboar]
|/ (`. `'` ) \[ICQ#: 5692561 ][Kernel: 2.4.18 ]
|| ( `- ) [*****************************][*******************]
||| _/ \_Powered by GNU/Debian W/Sarge D+ || Lxuser#: 205366
More information about the R-help
mailing list