[R] diagnostic information in glm. How about N of missing observations?

Roger D. Peng rpeng at jhsph.edu
Thu Dec 18 21:02:02 CET 2003


There should be an element of the fitted model object called `na.action' 
which (if you used the default na.omit()) should tell you which 
observations were dropped.

-roger

Paul Johnson wrote:
> I handed out some results from glm() and the students ask "how many 
> observations were dropped due to missing values"?
> 
> How would I know?
> In other stat programs, the results will typically include N and the 
> number dropped because of missings.  Without going back to R and 
> fiddling about to find the total number of rows in the dataframe, there 
> is no way to tell.  Somewhat inconvenient. Do you agree?
>




More information about the R-help mailing list