Ronaldo Reis-Jr.
2005-Oct-19 18:53 UTC
[R] how to compare a null model with a model with NAs?
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