Bug Description
In CovColl.m, the isCovPresent method uses strict less-than when checking index bounds:
if((cov>0)&&(cov<ccObj.numCov))
With 1-based indexing, if numCov=2, valid indices are 1 and 2. But cov < numCov (i.e., 2 < 2) evaluates to false, incorrectly reporting that the last covariate is not present.
Expected Fix
if((cov>0)&&(cov<=ccObj.numCov))
Found during comprehensive cross-toolbox audit. Fixed in Python nSTAT-python PR #54.
Bug Description
In
CovColl.m, theisCovPresentmethod uses strict less-than when checking index bounds:With 1-based indexing, if
numCov=2, valid indices are 1 and 2. Butcov < numCov(i.e.,2 < 2) evaluates to false, incorrectly reporting that the last covariate is not present.Expected Fix
Found during comprehensive cross-toolbox audit. Fixed in Python nSTAT-python PR #54.