gtools-1.1.2
Release update. Various bug fixes and minor improvements. Remember to run gtools, upgrade to keep up to date between major updates.
Enhancements and Features
-
Improved variable parsing in general (including '-' handling).
-
gcollapse (nmissing)counts the number of missing values (weights allowed). -
gcollapse (nansum)andgcollapse (rawnansum)preserve missing value (NaN) information: If all entries are missing, the output is also missing (instead of 0). This is a more flexible version of the previous implementation,gcollapse, missing. -
gcollapse, mergeandgegennow accept the undocumented option_subtractto subtract the result from the source variable. This is an option meant for advanced users, so no additional checks have been added. If you use it then you know what you're doing. -
Added option
sumcheckto create sum targets from integer source as the smallest type that reasonable given the total sum.
Bug fixes
-
gisidno longer gives wrong results when the data is partially ordered. Partially (weakly) sorted data in prior version was incorrectly counted as totally sorted. -
gcollapse (rawsum)gives 0 if all entries are missing. -
gcollapseandgegencorrectly parse types with weights for counts and sums. This includesgcollapse, sumcheck -
Recast upgrade (bug fix from 1.0.5) now done per-variable.
-
gcollapseno longer gives wrong results whencountis the first of multiple stats requested for a given source variable. Previous versions wrongly recast the source as long. -
Gtools exits with error if
_N > 2^31-1and points the user to the pertinent bug report.