Skip to content
Prev 12398 / 20628 Next

lmer() with 'na.action=na.exclude'; error with summary()

On 9 Sep 2014, at 2:50, Ben Bolker <bbolker at gmail.com> wrote:

            
That is a subtlety that I had not contemplated.  It is not in forming
the summary object, but in printing it that the problem is evident.
I see no reason not to choose (1),  At the time we prepared the 3rd edition of 
'Data Analysis and Graphics using R?, this was the behaviour. My understanding 
of ?na.action=na.exclude? has been that the result is as for ?na.action=na.omit?, 
except that residuals match up with the original observations, with NAs inserted
as necessary.  In other words, the change from  ?na.action=na.omit? to
?na.action=na.exclude? is all about wharf appears when one explicitly
calculates and returns residuals, not about what happens when summary 
information (quantiles, not the residuals themselves!) is printed.

This strategy also simplifies documenting and describing what is done.
John Maindonald             email: john.maindonald at anu.edu.au
phone : +61 2 (6125)3473    fax  : +61 2(6125)5549
Centre for Mathematics & Its Applications, Room 1194,
John Dedman Mathematical Sciences Building (Building 27)
Australian National University, Canberra ACT 0200.