-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge 'develop' gtools-1.5.1; matasave (gtop, glevelsof), greshape @
Features - `greshape` supports `@` syntax for wide and long. Change the string to be matched via `match()` - `greshape` supports stata varlist syntax for long to wide (may not be combined with `@` within a stub). - `greshape` does not support varlist syntax for wide to long, but can use `match(regex)` for complex wide to long matches (see examples). - Closes #57 - `glevelsof, mata[(name)]` saves the levels to mata. The levels are _not_ stored in `r(levels)` and option `local()` is not allowed. With `silent`, the levels are additionally not formatted. - `glevelsof, mata numfmt()` requires `numfmt` to be a mata print format instead of a C print format. - `gtop, ntop(.)` and `gtop, ntop(-.)` now allow printing all the levels from largest to smallest or the converse. - `gtop, alpha` sorts the top levels in variable order. if `gtop -var, alpha` is passed then they are sorted in reverse order. - `gtop, mata` uses temporary files on disk to read the levels from C via mata. Matrices and locals are not used, meaning `r(levels)`, `r(toplevels)`, and the resuls stored via the option -matrix()-, ``r(`matrix')``, are no longer available. The user can access each of these via the mata object `GtoolsByLevels` (the user can change the name of this object via `mata(name)`). The levels are stored raw in `GtoolsByLevels.charx` and `GtoolsByLevels.numx`; the levels are stored formatted in `GtoolsByLevels.printed`; the frequencies are stored in `GtoolsByLevels.toplevels`. - `r(matalevels)` stores the name of the mata object with the levels and frequencies. - `gtop` also stores `r(ntop)`, `r(nrows)`, and `r(alpha)` as return scalars, for the numbere of top levels (if `.`, this will be `r(J)`), the number of rows in the `toplevels` matrix (it may or not include a row for "other" and a row for "missing"), and whether the top levels are sorted by their values. - `gtop, mata numfmt()` requires `numfmt` to be a mata print format instead of a C print format.
- Loading branch information
Showing
92 changed files
with
4,562 additions
and
1,984 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
version: "generic-1.4.1-{build}" | ||
version: "generic-1.5.1-{build}" | ||
|
||
environment: | ||
matrix: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.