ONEWAY: Fixed crash when the dependent variable contained only missing values.
authorJohn Darrington <john@darrington.wattle.id.au>
Sat, 3 Dec 2011 12:06:32 +0000 (13:06 +0100)
committerJohn Darrington <john@darrington.wattle.id.au>
Sat, 3 Dec 2011 12:06:32 +0000 (13:06 +0100)
commit1cf8b236bb43257161f2c014b2384aa4709315c9
tree7b063128ce9a52ddf31840ae7e105bc002f0c085
parent6dffb017e700eda7cd5111509042dc8964fff29f
ONEWAY: Fixed crash when the dependent variable contained only missing values.

When forming a struct categoricals, there is no way in advance to know if the
given categorical variables will actually contain any values.  If one or more
of them contains no non-missing values, then it's not meaningfull to talk
about categories.

Such cases were causing oneway to crash.  Thanks to Dave Purdy
<David_Purdy@btinternet.com> for reporting this problem.
src/language/stats/oneway.c
src/math/categoricals.c
src/math/categoricals.h
tests/language/stats/oneway.at