[R] Bug in t.test?

Peter Dalgaard pdalgd at gmail.com
Sat Aug 14 02:24:50 CEST 2010


(Ted Harding) wrote:

> Johannes' original query was about differences when there
> are NAs, corresponding to different settings of "na.action".
> It is perhaps possible that 'na.action="na.pass"' and
> 'na.action="na.exclude"' result in different pairings in the
> case "paired=TRUE". However, it seems to me that the differences
> he observed are, shall we say, obscure!

Did you miss the point that the incorrect behaviour with na.exclude is
the default one? (Actually, na.omit is, but the effect is the same).

Arguably, t.test could just hardcode na.action=na.pass and begone with it.

-- 
Peter Dalgaard
Center for Statistics, Copenhagen Business School
Phone: (+45)38153501
Email: pd.mes at cbs.dk  Priv: PDalgd at gmail.com



More information about the R-help mailing list