[R] how to compare a null model with a model with NAs?
Ronaldo Reis-Jr.
chrysopa at gmail.com
Wed Oct 19 20:53:07 CEST 2005
Hi,
I make a model:
m.null <- glm(y~1)
m.comp <- glm(y~x1+x2+x3)
I try make a anova like this
anova(m.null,m.comp,test="F")
The result:
Erro em anova.glmlist(c(list(object), dotargs), dispersion = dispersion, :
models were not all fitted to the same size of dataset
The problem is that I have some NAs in x1, x2 and x3 and is not teh same row
fo NAs. How to set is in a null model without I need to remove these rows?
Thansk
Ronaldo
--
Quem cedo madruga, fica com sono o dia todo.
--
|> // | \\ [***********************************]
| ( õ õ ) [Ronaldo Reis Júnior ]
|> V [UFV/DBA-Entomologia ]
| / \ [36570-000 Viçosa - MG ]
|> /(.''`.)\ [Fone: 31-3899-4007 ]
| /(: :' :)\ [chrysopa at insecta.ufv.br ]
|>/ (`. `'` ) \[ICQ#: 5692561 | LinuxUser#: 205366 ]
| ( `- ) [***********************************]
|>> _/ \_Powered by GNU/Debian Woody/Sarge
More information about the R-help
mailing list