Skip to content

ctest package: wilcox.test() produces integer overflow (PR#2453)

2 messages · Douglas Bates, Kurt Hornik

#
This was filed as a bug report on the Debian r-base package.  It is
more properly a bug report on the ctest package in R.  

The default method for wilcox.test manipulates x and y without
checking the class or data.class of these objects.  Possible solutions
are
 - create wilcox.test.factor (if appropriate)
 - check the class and/or data.class of x and y in wilcox.test.default
   and produce error messages or warnings for inappropriate objects
 - coerce to numeric unconditionally (probably not a good idea)

Martin Michlmayr <tbm@cyrius.com> writes:

  
    
#
Hmm, but the documentation clearly says

  \item{x}{numeric vector of data values.}
  \item{y}{an optional numeric vector of data values.}

-k