[R] how to compare a null model with a model with NAs?

From: Ronaldo Reis-Jr. <chrysopa_at_gmail.com>
Date: Thu 20 Oct 2005 - 04:53:07 EST


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@insecta.ufv.br ] |>/ (`. `'` ) \[ICQ#: 5692561 | LinuxUser#: 205366 ] | ( `- ) [***********************************] |>> _/ \_Powered by GNU/Debian Woody/Sarge ______________________________________________ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Received on Thu Oct 20 04:58:10 2005

This archive was generated by hypermail 2.1.8 : Sun 23 Oct 2005 - 19:07:05 EST