From f3a804656013db8ef0dd9ba960893b7b0f2a219d Mon Sep 17 00:00:00 2001 From: Mauricio Caceres Date: Sun, 22 Jul 2018 17:52:30 -0400 Subject: [PATCH 1/6] Specified gtop is an alias in readthedocs examples. --- docs/examples/gtoplevelsof.do | 24 ++++++++++++------------ docs/usage/gtoplevelsof.md | 33 +++++++++++++++++---------------- 2 files changed, 29 insertions(+), 28 deletions(-) diff --git a/docs/examples/gtoplevelsof.do b/docs/examples/gtoplevelsof.do index 4d209aba..9e6ee7a5 100644 --- a/docs/examples/gtoplevelsof.do +++ b/docs/examples/gtoplevelsof.do @@ -4,28 +4,28 @@ gtoplevelsof rep78 gtoplevelsof rep78 [fw = weight] -gtoplevelsof rep78 [w = gear_ratio] +gtop rep78 [w = gear_ratio] -gtoplevelsof rep78, missrow +gtop rep78, missrow -gtoplevelsof rep78, colsep(", ") +gtop rep78, colsep(", ") -gtoplevelsof rep78, pctfmt(%7.3f) +gtop rep78, pctfmt(%7.3f) -gtoplevelsof mpg, numfmt(%7.3f) +gtop mpg, numfmt(%7.3f) -gtoplevelsof foreign +gtop foreign -gtoplevelsof foreign, colmax(3) +gtop foreign, colmax(3) -gtoplevelsof foreign, novaluelab +gtop foreign, novaluelab -gtoplevelsof foreign rep78, ntop(4) missrow colstrmax(2) +gtop foreign rep78, ntop(4) missrow colstrmax(2) -gtoplevelsof foreign rep78, ntop(4) missrow groupmiss +gtop foreign rep78, ntop(4) missrow groupmiss -gtoplevelsof foreign rep78, ntop(4) missrow groupmiss noother +gtop foreign rep78, ntop(4) missrow groupmiss noother -gtoplevelsof foreign rep78, cols(<<) missrow("I am missing") matrix(lvl) +gtop foreign rep78, cols(<<) missrow("I am missing") matrix(lvl) matrix list lvl diff --git a/docs/usage/gtoplevelsof.md b/docs/usage/gtoplevelsof.md index bebb7a21..a2e282c2 100644 --- a/docs/usage/gtoplevelsof.md +++ b/docs/usage/gtoplevelsof.md @@ -3,10 +3,11 @@ gtoplevelsof Quickly tabulate most common levels of variable list. -gtoplevelsof displays a table with the frequency counts, percentages, and -cummulative counts and %s of the most common levels of varlist that occur in -the data. It is similar to the user-written group with the select otpion or -to contract after keeping only the largest frequency counts. +gtoplevelsof (alias gtop) displays a table with the frequency counts, +percentages, and cummulative counts and %s of the most common levels of +varlist that occur in the data. It is similar to the user-written group +with the select otpion or to contract after keeping only the largest +frequency counts. Unlike contract, it does not modify the original data and instead prints the resulting table to the console. It also stores a matrix with the frequency @@ -239,7 +240,7 @@ You can download the raw code for the examples below 1 | 6,200 223,440 2.8 100.0 -. gtoplevelsof rep78 [w = gear_ratio] +. gtop rep78 [w = gear_ratio] (analytic weights assumed) rep78 | W Cum Pct (%) Cum Pct (%) @@ -252,7 +253,7 @@ You can download the raw code for the examples below 1 | 5.81 223 2.6 100.0 -. gtoplevelsof rep78, missrow +. gtop rep78, missrow rep78 | N Cum Pct (%) Cum Pct (%) --------------------------------------------- @@ -266,7 +267,7 @@ You can download the raw code for the examples below -. gtoplevelsof rep78, colsep(", ") +. gtop rep78, colsep(", ") rep78 | N Cum Pct (%) Cum Pct (%) -------------------------------------------- @@ -278,7 +279,7 @@ You can download the raw code for the examples below 1 | 2 74 2.7 100 -. gtoplevelsof rep78, pctfmt(%7.3f) +. gtop rep78, pctfmt(%7.3f) rep78 | N Cum Pct (%) Cum Pct (%) -------------------------------------------- @@ -290,7 +291,7 @@ You can download the raw code for the examples below 1 | 2 74 2.703 100.000 -. gtoplevelsof mpg, numfmt(%7.3f) +. gtop mpg, numfmt(%7.3f) mpg | N Cum Pct (%) Cum Pct (%) -------------------------------------------- @@ -309,7 +310,7 @@ You can download the raw code for the examples below -. gtoplevelsof foreign +. gtop foreign foreign | N Cum Pct (%) Cum Pct (%) ---------------------------------------------- @@ -317,7 +318,7 @@ You can download the raw code for the examples below Foreign | 22 74 30 100 -. gtoplevelsof foreign, colmax(3) +. gtop foreign, colmax(3) foreign | N Cum Pct (%) Cum Pct (%) --------------------------------------------- @@ -325,7 +326,7 @@ You can download the raw code for the examples below For... | 22 74 30 100 -. gtoplevelsof foreign, novaluelab +. gtop foreign, novaluelab foreign | N Cum Pct (%) Cum Pct (%) --------------------------------------------- @@ -333,7 +334,7 @@ You can download the raw code for the examples below 1 | 22 74 30 100 -. gtoplevelsof foreign rep78, ntop(4) missrow colstrmax(2) +. gtop foreign rep78, ntop(4) missrow colstrmax(2) foreign rep78 | N Cum Pct (%) Cum Pct (%) ------------------------------------------------------ @@ -346,7 +347,7 @@ You can download the raw code for the examples below -. gtoplevelsof foreign rep78, ntop(4) missrow groupmiss +. gtop foreign rep78, ntop(4) missrow groupmiss foreign rep78 | N Cum Pct (%) Cum Pct (%) ------------------------------------------------------ @@ -360,7 +361,7 @@ You can download the raw code for the examples below -. gtoplevelsof foreign rep78, ntop(4) missrow groupmiss noother +. gtop foreign rep78, ntop(4) missrow groupmiss noother foreign rep78 | N Cum Pct (%) Cum Pct (%) ------------------------------------------------------ @@ -373,7 +374,7 @@ You can download the raw code for the examples below -. gtoplevelsof foreign rep78, cols(<<) missrow("I am missing") matrix(lvl) +. gtop foreign rep78, cols(<<) missrow("I am missing") matrix(lvl) foreign<< rep78 | N Cum Pct (%) Cum Pct (%) ------------------------------------------------------ From def07c5b83c2fa8e42d802d54d897a7e46a73a5c Mon Sep 17 00:00:00 2001 From: Mauricio Caceres Date: Mon, 23 Jul 2018 11:25:21 -0400 Subject: [PATCH 2/6] gtools-1.0.1 (2018-07-23); bug fixes to gegen and gunique Bug fixes * `gegen, replace` gave the wrong result if the source was also the target (`tag` and `group` worked, but all other stats did not). * `gunique, by()` was affected by this bug and now works correctly. Enhancements * `gunique, by()` no longer prints the top unique levels by default unless the user asks for them via `detail`. --- README.md | 8 +++++- build.py | 4 +-- build/_gtools_internal.ado | 2 +- build/changelog.md | 13 +++++++++ build/fasterxtile.ado | 2 +- build/gcollapse.ado | 2 +- build/gcontract.ado | 2 +- build/gdistinct.ado | 2 +- build/gduplicates.ado | 2 +- build/gegen.ado | 10 +++++-- build/gisid.ado | 2 +- build/glevelsof.ado | 2 +- build/gquantiles.ado | 2 +- build/gtools.ado | 52 +++++++++++++++++++++++++++++------- build/gtools.pkg | 17 +++++++----- build/gtools.sthlp | 4 ++- build/gtools_tests.do | 47 +++++++++++++++++++++++++++++++- build/gtop.ado | 2 +- build/gtoplevelsof.ado | 2 +- build/gunique.ado | 25 ++++++++--------- build/gunique.sthlp | 5 ++-- build/hashsort.ado | 2 +- changelog.md | 13 +++++++++ docs/index.md | 8 +++++- docs/stata/gtools.sthlp | 4 ++- docs/stata/gunique.sthlp | 5 ++-- docs/usage/gtools.md | 2 ++ docs/usage/gunique.md | 9 ++----- src/ado/_gtools_internal.ado | 2 +- src/ado/fasterxtile.ado | 2 +- src/ado/gcollapse.ado | 2 +- src/ado/gcontract.ado | 2 +- src/ado/gdistinct.ado | 2 +- src/ado/gduplicates.ado | 2 +- src/ado/gegen.ado | 10 +++++-- src/ado/gisid.ado | 2 +- src/ado/glevelsof.ado | 2 +- src/ado/gquantiles.ado | 2 +- src/ado/gtools.ado | 52 +++++++++++++++++++++++++++++------- src/ado/gtop.ado | 2 +- src/ado/gtoplevelsof.ado | 2 +- src/ado/gunique.ado | 25 ++++++++--------- src/ado/hashsort.ado | 2 +- src/gtools.pkg | 17 +++++++----- src/test/gtools_tests.do | 2 +- src/test/test_gegen.do | 18 +++++++++++++ src/test/test_gunique.do | 27 +++++++++++++++++++ 47 files changed, 320 insertions(+), 105 deletions(-) diff --git a/README.md b/README.md index deadf89e..5c57d279 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ implementation of collapse, pctile, xtile, contract, egen, isid, levelsof, duplicates, and unique/distinct using C plugins for a massive speed improvement. -`version 1.0.0 22Jul2018` +`version 1.0.1 23Jul2018` Builds: Linux, OSX [![Travis Build Status](https://travis-ci.org/mcaceresb/stata-gtools.svg?branch=develop)](https://travis-ci.org/mcaceresb/stata-gtools), Windows (Cygwin) [![Appveyor Build status](https://ci.appveyor.com/api/projects/status/2bh1q9bulx3pl81p/branch/develop?svg=true)](https://ci.appveyor.com/project/mcaceresb/stata-gtools) @@ -166,6 +166,12 @@ Installation I only have access to Stata 13.1, so I impose that to be the minimum. ```stata +ssc install gtools +* ssc uninstall gtools +``` + +To download the latest version +```stata local github "https://raw.githubusercontent.com" net install gtools, from(`github'/mcaceresb/stata-gtools/develop/build/) * adoupdate, update diff --git a/build.py b/build.py index d59e7f48..0a1a6934 100755 --- a/build.py +++ b/build.py @@ -137,11 +137,11 @@ def makedirs_safe(directory): gtools_zip = [ "changelog.md", "gtools.pkg", - "stata.toc" + "stata.toc", ] + gtools_ssc gtools_build = gtools_zip + [ - "tests.do" + "gtools_tests.do" ] # --------------------------------------------------------------------- diff --git a/build/_gtools_internal.ado b/build/_gtools_internal.ado index a0a09e10..a64ec8af 100644 --- a/build/_gtools_internal.ado +++ b/build/_gtools_internal.ado @@ -14,7 +14,7 @@ capture program drop _gtools_internal program _gtools_internal, rclass - version 13 + version 13.1 global GTOOLS_USER_INTERNAL_VARABBREV `c(varabbrev)' * set varabbrev off diff --git a/build/changelog.md b/build/changelog.md index 2d4eb023..95fb1479 100644 --- a/build/changelog.md +++ b/build/changelog.md @@ -1,6 +1,19 @@ Change Log ========== +## gtools-1.0.1 (2018-07-23) + +### Bug fixes + +* `gegen, replace` gave the wrong result if the source was also the target + (`tag` and `group` worked, but all other stats did not). +* `gunique, by()` was affected by this bug and now works correctly. + +### Enhancements + +* `gunique, by()` no longer prints the top unique levels by default unless + the user asks for them via `detail`. + ## gtools-1.0.0 (2018-07-21) First official release! This will go on SSC once all the tests have diff --git a/build/fasterxtile.ado b/build/fasterxtile.ado index dd75a48b..03c9b98f 100644 --- a/build/fasterxtile.ado +++ b/build/fasterxtile.ado @@ -4,7 +4,7 @@ capture program drop fasterxtile program define fasterxtile - version 13 + version 13.1 if ( `=_N < 1' ) { error 2000 diff --git a/build/gcollapse.ado b/build/gcollapse.ado index 20478a47..7a382044 100644 --- a/build/gcollapse.ado +++ b/build/gcollapse.ado @@ -3,7 +3,7 @@ capture program drop gcollapse program gcollapse, rclass - version 13 + version 13.1 global GTOOLS_USER_VARABBREV `c(varabbrev)' local 00 `0' diff --git a/build/gcontract.ado b/build/gcontract.ado index 0296dd17..4bfbe4d0 100644 --- a/build/gcontract.ado +++ b/build/gcontract.ado @@ -3,7 +3,7 @@ cap program drop gcontract program gcontract, rclass - version 13 + version 13.1 if ( `=_N' == 0 ) { di as err "no observations" diff --git a/build/gdistinct.ado b/build/gdistinct.ado index 3778ad9f..e436cbb4 100644 --- a/build/gdistinct.ado +++ b/build/gdistinct.ado @@ -3,7 +3,7 @@ capture program drop gdistinct program gdistinct, rclass - version 13 + version 13.1 if ( `=_N < 1' ) { di as err "no observations" diff --git a/build/gduplicates.ado b/build/gduplicates.ado index 84a8264e..0716b4af 100644 --- a/build/gduplicates.ado +++ b/build/gduplicates.ado @@ -3,7 +3,7 @@ capture program drop gduplicates program gduplicates, rclass - version 13 + version 13.1 local 00 `0' gettoken cmd 0 : 0, parse(" ,") diff --git a/build/gegen.ado b/build/gegen.ado index 6ea18997..d6009d5b 100644 --- a/build/gegen.ado +++ b/build/gegen.ado @@ -1,4 +1,4 @@ -*! version 1.0.0 21Jul2018 Mauricio Caceres Bravo, mauricio.caceres.bravo@gmail.com +*! version 1.0.1 23Jul2018 Mauricio Caceres Bravo, mauricio.caceres.bravo@gmail.com *! implementation -egen- using C for faster processing /* @@ -23,7 +23,7 @@ capture program drop gegen program define gegen, byable(onecall) rclass - version 13 + version 13.1 local 00 `0' qui syntax anything(equalok) [if] [in] [aw fw iw pw], [by(str) *] @@ -465,6 +465,12 @@ program define gegen, byable(onecall) rclass global GTOOLS_CALLER "" di as err "{opth `ofcn'(varlist)} must call a numeric variable list." exit _rc } + + if ( "`:list sources & dummy'" != "" ) { + if ( "`replace'" != "" ) local extra " even with -replace-" + di as error "Variable `dummy' canot be a source and a target`extra'" + exit 198 + } } } else if ( `rc' == 0 ) { diff --git a/build/gisid.ado b/build/gisid.ado index f9851058..3d6422c8 100644 --- a/build/gisid.ado +++ b/build/gisid.ado @@ -3,7 +3,7 @@ capture program drop gisid program gisid - version 13 + version 13.1 global GTOOLS_CALLER gisid syntax varlist /// Variables to check diff --git a/build/glevelsof.ado b/build/glevelsof.ado index 8c579e5c..f6f6246f 100644 --- a/build/glevelsof.ado +++ b/build/glevelsof.ado @@ -3,7 +3,7 @@ capture program drop glevelsof program glevelsof, rclass - version 13 + version 13.1 if ( `=_N < 1' ) { di as err "no observations" diff --git a/build/gquantiles.ado b/build/gquantiles.ado index bd1bd6be..dd07a9a1 100644 --- a/build/gquantiles.ado +++ b/build/gquantiles.ado @@ -3,7 +3,7 @@ capture program drop gquantiles program gquantiles, rclass - version 13 + version 13.1 if ( `=_N < 1' ) { error 2000 diff --git a/build/gtools.ado b/build/gtools.ado index 7fa9ebb8..d27557ad 100644 --- a/build/gtools.ado +++ b/build/gtools.ado @@ -1,9 +1,9 @@ -*! version 1.0.0 21Jul2018 Mauricio Caceres Bravo, mauricio.caceres.bravo@gmail.com +*! version 1.0.1 23Jul2018 Mauricio Caceres Bravo, mauricio.caceres.bravo@gmail.com *! Program for managing the gtools package installation capture program drop gtools program gtools - version 13 + version 13.1 if ( inlist("`c(os)'", "MacOSX") | strpos("`c(machine_type)'", "Mac") ) local c_os_ macosx else local c_os_: di lower("`c(os)'") @@ -13,7 +13,21 @@ program gtools exit 198 } - syntax, [LICENSEs Verbose Dependencies Install_latest Upgrade replace dll hashlib(str) showcase examples] + syntax, [ /// + LICENSEs /// + Verbose /// + Dependencies /// + Install_latest /// + Upgrade /// + replace /// + dll /// + hashlib(str) /// + showcase /// + examples /// + test /// + TESTbranch(str) /// + ] + local cwd `c(pwd)' local github https://raw.githubusercontent.com/mcaceresb/stata-gtools/master @@ -30,7 +44,7 @@ program gtools gtools_licenses } - if ( `"`dependencies'`hashlib'`install_latest'`upgrade'`dll'`showcase'`examples'"' == `""' ) { + if ( `"`dependencies'`hashlib'`install_latest'`upgrade'`dll'`showcase'`examples'`test'`testbranch'"' == `""' ) { exit 0 } } @@ -72,7 +86,7 @@ program gtools di as txt "Success!" cd `"`cwd'"' - if ( `"`hashlib'`install_latest'`upgrade'`dll'`showcase'`examples'"' == `""' ) { + if ( `"`hashlib'`install_latest'`upgrade'`dll'`showcase'`examples'`test'`testbranch'"' == `""' ) { exit 0 } } @@ -80,7 +94,7 @@ program gtools if ( ("`install_latest'" == "install_latest") | ("`upgrade'" == "upgrade") ) { net install gtools, from(`github'/build) replace gtools, dependencies replace - if ( `"`hashlib'`dll'"' == `""' ) { + if ( `"`hashlib'`dll'`showcase'`examples'`test'`testbranch'"' == `""' ) { exit 0 } } @@ -144,19 +158,37 @@ program gtools } } else local hashlib spookyhash.dll - exit 0 + if ( `"`showcase'`examples'`test'`testbranch'"' == `""' ) { + exit 0 + } } else if ( `hashusr' | ("`dll'" == "dll") ) { di as txt "-gtools, hashlib()- and -gtools, dll- only on Windows." - exit 0 + if ( `"`showcase'`examples'`test'`testbranch'"' == `""' ) { + exit 0 + } } if ( "`showcase'`examples'" != "" ) { gtools_showcase - exit 0 + if ( "`test'`testbranch'" != "" ) { + exit 0 + } + } + + if ( "`test'`testbranch'" != "" ) { + if ( "`testbranch'" == "" ) local testbranch master + disp as txt "{bf:WARNING:} Unit tests from branch `testbranch' take 1-3 hours!" + disp as txt "Hit the break button if you don't have time (tests will start in 5 seconds)." + sleep 8000 + + local github https://raw.githubusercontent.com/mcaceresb/stata-gtools/`testbranch' + cap noi do `github'/build/gtools_tests.do + exit _rc } - display "Nothing to do. Specify: licenses, dependencies, dll (Windows), hasblib (Windows), upgrade, or examples." + display "Nothing to do. See {stata help gtools} for usage. Version info:" + which gtools end capture program drop gtools_licenses diff --git a/build/gtools.pkg b/build/gtools.pkg index 41f5e799..cf2a4563 100644 --- a/build/gtools.pkg +++ b/build/gtools.pkg @@ -1,11 +1,14 @@ -v 1.0.0 +v 1.0.1 d -d 'GTOOLS': Faster group operations using C plugins +d 'GTOOLS': Faster implementation of common Stata commands optimized for large datasets d -d This package provides a fast C-based implementations of Stata commands, -d such as collapse, pctile, xtile, contract, egen, isid, levelsof, top -d levelsof, unique/distinct, duplicates via gcollapse, gegen, and so on. -d This package was inspired d by Sergio Correia's ftools. +d Faster Stata for big data. Gtools provides a hash-based implementation +d of common Stata commands using C plugins for a massive speed +d improvement. Gtools implements gcollapse, gquantiles (pctile, xtile, +d and _pctile), gcontract, gegen, gisid, glevelsof, gunique, gdistinct, +d gduplicates, and gtop. Syntax is largely analogous to their native +d counterparts (see help gtools for details). This package was inspired +d by Sergio Correia's ftools. d d KW: plugin d KW: gtools @@ -42,7 +45,7 @@ d d Author: Mauricio Caceres Bravo d Support: email mauricio.caceres.bravo@gmail.com d -d Distribution-Date: 20180721 +d Distribution-Date: 20180723 d f _gtools_internal.ado f gcollapse.ado diff --git a/build/gtools.sthlp b/build/gtools.sthlp index a77dc39a..23d234ea 100644 --- a/build/gtools.sthlp +++ b/build/gtools.sthlp @@ -1,5 +1,5 @@ {smcl} -{* *! version 1.0.0 21Jul2018}{...} +{* *! version 1.0.1 23Jul2018}{...} {viewerdialog gtools "dialog gtools"}{...} {vieweralsosee "[R] gtools" "mansection R gtools"}{...} {viewerjumpto "Syntax" "gtools##syntax"}{...} @@ -82,6 +82,8 @@ traditional stata commands. The following are available as part of gtools {p_end} {synopt :{opt showcase}}Alias for {opt examples}. {p_end} +{synopt :{cmd:test}[{cmd:(}{branch}{cmd:)}]}Run gtools unit tests (1-3h) from the specified github branch (default is master). +{p_end} {synoptline} diff --git a/build/gtools_tests.do b/build/gtools_tests.do index e35e6b07..2b272cd0 100644 --- a/build/gtools_tests.do +++ b/build/gtools_tests.do @@ -5,7 +5,7 @@ * Created: Tue May 16 07:23:02 EDT 2017 * Updated: Sun Jul 22 11:39:18 EDT 2018 * Purpose: Unit tests for gtools -* Version: 1.0.0 +* Version: 1.0.1 * Manual: help gtools * Stata start-up options @@ -4175,6 +4175,24 @@ program checks_gegen gegen z = count(x) if x == 8, by(x) replace assert z == 1 | mi(z) + cap gegen z = count(z) if x == 8, by(z) replace + assert _rc == 198 + gegen y = count(z) if x == 8, by(z) replace + gegen z = group(z) in 8 / 9, replace missing + assert z == (x - 7) | mi(z) + gegen z = tag(z) in 7 / 10, replace missing + assert z[7] == 1 + assert z[8] == 1 + assert z[9] == 1 + assert (z == 0) | z == 1 + cap gegen z = sum(z) in 2 / 9, replace + assert _rc == 198 + cap gegen z = sum(x* z*) in 2 / 9, replace + assert _rc == 198 + gegen y = sum(z) in 2 / 8, replace + assert (y == 2) | mi(y) + gegen z = sum(x* z) in 2 / 9, replace + clear set obs 10 gen x = 1 @@ -4574,6 +4592,33 @@ program checks_unique replace x = . cap gunique x if 0 assert _rc == 0 + + clear + set obs 10 + gen x = mod(_n, 3) + gen y = mod(_n, 4) + gunique x + gunique y + gunique y, by(x) + cap gunique y, by(x) + assert _rc == 110 + gen `:type _Unique' _Unique2 = _Unique + gunique y, by(x) replace + assert _Unique == _Unique2 + replace y = 0 + gunique y, by(x) replace + assert _Unique == 1 + + drop _U* + gunique y, by(x) gen(nuniq) + cap gunique y, by(x) gen(nuniq) + assert _rc == 110 + gen `:type nuniq' nuniq2 = nuniq + gunique y, by(x) gen(nuniq) replace + assert nuniq == nuniq2 + replace y = 0 + gunique y, by(x) gen(nuniq) replace + assert nuniq == 1 end capture program drop checks_inner_unique diff --git a/build/gtop.ado b/build/gtop.ado index 64d8ee79..ffbe3de8 100644 --- a/build/gtop.ado +++ b/build/gtop.ado @@ -3,7 +3,7 @@ cap program drop gtop program gtop, rclass - version 13 + version 13.1 local 00 `0' gtoplevelsof `0' diff --git a/build/gtoplevelsof.ado b/build/gtoplevelsof.ado index ef34ff02..f94ca990 100644 --- a/build/gtoplevelsof.ado +++ b/build/gtoplevelsof.ado @@ -6,7 +6,7 @@ cap program drop gtoplevelsof program gtoplevelsof, rclass global GTOP_RC 0 - version 13 + version 13.1 if ( `=_N < 1' ) { di as txt "no observations" diff --git a/build/gunique.ado b/build/gunique.ado index e24d28f5..6e0c245f 100644 --- a/build/gunique.ado +++ b/build/gunique.ado @@ -1,9 +1,9 @@ -*! version 1.0.0 21Jul2018 Mauricio Caceres Bravo, mauricio.caceres.bravo@gmail.com +*! version 1.0.1 23Jul2018 Mauricio Caceres Bravo, mauricio.caceres.bravo@gmail.com *! -unique- implementation using C for faster processing capture program drop gunique program gunique, rclass - version 13 + version 13.1 if ( `=_N < 1' ) { di as err "no observations" @@ -130,21 +130,22 @@ program gunique, rclass } if ( "`by'" != "" ) { - gegen `type' `generate' = tag(`by' `id') `ifid', missing replace - gegen `generate' = sum(`generate'), by(`by') replace + gegen `id' = tag(`by' `id') `ifid', missing replace + gegen `type' `generate' = sum(`id'), by(`by') replace di as txt "" di as txt "'`varlist'' had `r_Jdisp' unique values in `r_Ndisp' observations." di as txt "Variable `generate' has the number of unique values of '`varlist'' by '`by''." - if ( `=`nunique'' > 5 ) { - local header = `"The top 5 frequency counts of `generate' for the levels of '`by'' are"' - } - else { - local header = `"The frequency counts of `generate' for the levels of '`by'' are"' + if ( "`detail'" != "" ) { + if ( `=`nunique'' > 5 ) { + local header = `"The top 5 frequency counts of `generate' for the levels of '`by'' are"' + } + else { + local header = `"The frequency counts of `generate' for the levels of '`by'' are"' + } + di as txt `"`header'"' + gtoplevelsof `by' `generate' if `generate' > 0, ntop(5) } - di as txt `"`header'"' - gtoplevelsof `by' `generate' if `generate' > 0, ntop(5) - } end diff --git a/build/gunique.sthlp b/build/gunique.sthlp index bae06eb1..c565399e 100644 --- a/build/gunique.sthlp +++ b/build/gunique.sthlp @@ -1,5 +1,5 @@ {smcl} -{* *! version 1.0.0 21Jul2018}{...} +{* *! version 1.0.1 23Jul2018}{...} {viewerdialog gunique "dialog gunique"}{...} {vieweralsosee "[D] gunique" "mansection D gunique"}{...} {viewerjumpto "Syntax" "gunique##syntax"}{...} @@ -63,7 +63,8 @@ generate}, if it exists. {phang} {opt detail} request summary statistics on the number of records which are -present for unique values of the varlist. +present for unique values of the varlist. With {opt by()}, it also prints +the levels with the most unique values. {dlgtab:Gtools} diff --git a/build/hashsort.ado b/build/hashsort.ado index 5540cae4..8f91c1dd 100644 --- a/build/hashsort.ado +++ b/build/hashsort.ado @@ -3,7 +3,7 @@ capture program drop hashsort program define hashsort - version 13 + version 13.1 global GTOOLS_CALLER hashsort syntax anything, /// Variables to sort by: [+|-]varname [[+|-]varname ...] diff --git a/changelog.md b/changelog.md index 2d4eb023..95fb1479 100644 --- a/changelog.md +++ b/changelog.md @@ -1,6 +1,19 @@ Change Log ========== +## gtools-1.0.1 (2018-07-23) + +### Bug fixes + +* `gegen, replace` gave the wrong result if the source was also the target + (`tag` and `group` worked, but all other stats did not). +* `gunique, by()` was affected by this bug and now works correctly. + +### Enhancements + +* `gunique, by()` no longer prints the top unique levels by default unless + the user asks for them via `detail`. + ## gtools-1.0.0 (2018-07-21) First official release! This will go on SSC once all the tests have diff --git a/docs/index.md b/docs/index.md index bcd6af4e..7e4ee5a2 100644 --- a/docs/index.md +++ b/docs/index.md @@ -5,7 +5,7 @@ implementation of collapse, pctile, xtile, contract, egen, isid, levelsof, duplicates, and unique/distinct using C plugins for a massive speed improvement. -`version 1.0.0 21Jul2018` +`version 1.0.1 23Jul2018` Builds: Linux, OSX [![Travis Build Status](https://travis-ci.org/mcaceresb/stata-gtools.svg?branch=master)](https://travis-ci.org/mcaceresb/stata-gtools), Windows (Cygwin) [![Appveyor Build status](https://ci.appveyor.com/api/projects/status/2bh1q9bulx3pl81p/branch/master?svg=true)](https://ci.appveyor.com/project/mcaceresb/stata-gtools) @@ -158,6 +158,12 @@ Installation I only have access to Stata 13.1, so I impose that to be the minimum. ```stata +ssc install gtools +* ssc uninstall gtools +``` + +To download the latest version +```stata local github "https://raw.githubusercontent.com" net install gtools, from(`github'/mcaceresb/stata-gtools/master/build/) * adoupdate, update diff --git a/docs/stata/gtools.sthlp b/docs/stata/gtools.sthlp index a77dc39a..23d234ea 100644 --- a/docs/stata/gtools.sthlp +++ b/docs/stata/gtools.sthlp @@ -1,5 +1,5 @@ {smcl} -{* *! version 1.0.0 21Jul2018}{...} +{* *! version 1.0.1 23Jul2018}{...} {viewerdialog gtools "dialog gtools"}{...} {vieweralsosee "[R] gtools" "mansection R gtools"}{...} {viewerjumpto "Syntax" "gtools##syntax"}{...} @@ -82,6 +82,8 @@ traditional stata commands. The following are available as part of gtools {p_end} {synopt :{opt showcase}}Alias for {opt examples}. {p_end} +{synopt :{cmd:test}[{cmd:(}{branch}{cmd:)}]}Run gtools unit tests (1-3h) from the specified github branch (default is master). +{p_end} {synoptline} diff --git a/docs/stata/gunique.sthlp b/docs/stata/gunique.sthlp index bae06eb1..c565399e 100644 --- a/docs/stata/gunique.sthlp +++ b/docs/stata/gunique.sthlp @@ -1,5 +1,5 @@ {smcl} -{* *! version 1.0.0 21Jul2018}{...} +{* *! version 1.0.1 23Jul2018}{...} {viewerdialog gunique "dialog gunique"}{...} {vieweralsosee "[D] gunique" "mansection D gunique"}{...} {viewerjumpto "Syntax" "gunique##syntax"}{...} @@ -63,7 +63,8 @@ generate}, if it exists. {phang} {opt detail} request summary statistics on the number of records which are -present for unique values of the varlist. +present for unique values of the varlist. With {opt by()}, it also prints +the levels with the most unique values. {dlgtab:Gtools} diff --git a/docs/usage/gtools.md b/docs/usage/gtools.md index a61b8948..bb5eca7a 100644 --- a/docs/usage/gtools.md +++ b/docs/usage/gtools.md @@ -47,3 +47,5 @@ Options - `verbose` With `licenses`, prints the licenses of the open source projects used in `gtools` - `examples` (alias `showcase`) print examples of how to use available gtools functions. + +- `test` or `test(branch)` runs the gtools unit tests (1-3h) from the specified github branch (default master). diff --git a/docs/usage/gunique.md b/docs/usage/gunique.md index f0aa00ee..7a70b7af 100644 --- a/docs/usage/gunique.md +++ b/docs/usage/gunique.md @@ -36,7 +36,8 @@ Options if it exists. - `detail` request summary statistics on the number of records which are - present for unique values of the varlist. + present for unique values of the varlist. With `by()`, it also + prints the levels with the most unique values. ### Gtools options @@ -131,10 +132,4 @@ N = 69; 69 balanced groups of size 1 'rep78' had 5 unique values in 69 observations. Variable _Unique has the number of unique values of 'rep78' by 'foreign'. -The frequency counts of _Unique for the levels of 'foreign' are - - foreign _Unique | N Cum Pct (%) Cum Pct (%) - -------------------------------------------------------- - Domestic 5 | 52 52 70 70 - Foreign 3 | 22 74 30 100 ``` diff --git a/src/ado/_gtools_internal.ado b/src/ado/_gtools_internal.ado index a0a09e10..a64ec8af 100644 --- a/src/ado/_gtools_internal.ado +++ b/src/ado/_gtools_internal.ado @@ -14,7 +14,7 @@ capture program drop _gtools_internal program _gtools_internal, rclass - version 13 + version 13.1 global GTOOLS_USER_INTERNAL_VARABBREV `c(varabbrev)' * set varabbrev off diff --git a/src/ado/fasterxtile.ado b/src/ado/fasterxtile.ado index dd75a48b..03c9b98f 100644 --- a/src/ado/fasterxtile.ado +++ b/src/ado/fasterxtile.ado @@ -4,7 +4,7 @@ capture program drop fasterxtile program define fasterxtile - version 13 + version 13.1 if ( `=_N < 1' ) { error 2000 diff --git a/src/ado/gcollapse.ado b/src/ado/gcollapse.ado index 20478a47..7a382044 100644 --- a/src/ado/gcollapse.ado +++ b/src/ado/gcollapse.ado @@ -3,7 +3,7 @@ capture program drop gcollapse program gcollapse, rclass - version 13 + version 13.1 global GTOOLS_USER_VARABBREV `c(varabbrev)' local 00 `0' diff --git a/src/ado/gcontract.ado b/src/ado/gcontract.ado index 0296dd17..4bfbe4d0 100644 --- a/src/ado/gcontract.ado +++ b/src/ado/gcontract.ado @@ -3,7 +3,7 @@ cap program drop gcontract program gcontract, rclass - version 13 + version 13.1 if ( `=_N' == 0 ) { di as err "no observations" diff --git a/src/ado/gdistinct.ado b/src/ado/gdistinct.ado index 3778ad9f..e436cbb4 100644 --- a/src/ado/gdistinct.ado +++ b/src/ado/gdistinct.ado @@ -3,7 +3,7 @@ capture program drop gdistinct program gdistinct, rclass - version 13 + version 13.1 if ( `=_N < 1' ) { di as err "no observations" diff --git a/src/ado/gduplicates.ado b/src/ado/gduplicates.ado index 84a8264e..0716b4af 100644 --- a/src/ado/gduplicates.ado +++ b/src/ado/gduplicates.ado @@ -3,7 +3,7 @@ capture program drop gduplicates program gduplicates, rclass - version 13 + version 13.1 local 00 `0' gettoken cmd 0 : 0, parse(" ,") diff --git a/src/ado/gegen.ado b/src/ado/gegen.ado index 6ea18997..d6009d5b 100644 --- a/src/ado/gegen.ado +++ b/src/ado/gegen.ado @@ -1,4 +1,4 @@ -*! version 1.0.0 21Jul2018 Mauricio Caceres Bravo, mauricio.caceres.bravo@gmail.com +*! version 1.0.1 23Jul2018 Mauricio Caceres Bravo, mauricio.caceres.bravo@gmail.com *! implementation -egen- using C for faster processing /* @@ -23,7 +23,7 @@ capture program drop gegen program define gegen, byable(onecall) rclass - version 13 + version 13.1 local 00 `0' qui syntax anything(equalok) [if] [in] [aw fw iw pw], [by(str) *] @@ -465,6 +465,12 @@ program define gegen, byable(onecall) rclass global GTOOLS_CALLER "" di as err "{opth `ofcn'(varlist)} must call a numeric variable list." exit _rc } + + if ( "`:list sources & dummy'" != "" ) { + if ( "`replace'" != "" ) local extra " even with -replace-" + di as error "Variable `dummy' canot be a source and a target`extra'" + exit 198 + } } } else if ( `rc' == 0 ) { diff --git a/src/ado/gisid.ado b/src/ado/gisid.ado index f9851058..3d6422c8 100644 --- a/src/ado/gisid.ado +++ b/src/ado/gisid.ado @@ -3,7 +3,7 @@ capture program drop gisid program gisid - version 13 + version 13.1 global GTOOLS_CALLER gisid syntax varlist /// Variables to check diff --git a/src/ado/glevelsof.ado b/src/ado/glevelsof.ado index 8c579e5c..f6f6246f 100644 --- a/src/ado/glevelsof.ado +++ b/src/ado/glevelsof.ado @@ -3,7 +3,7 @@ capture program drop glevelsof program glevelsof, rclass - version 13 + version 13.1 if ( `=_N < 1' ) { di as err "no observations" diff --git a/src/ado/gquantiles.ado b/src/ado/gquantiles.ado index bd1bd6be..dd07a9a1 100644 --- a/src/ado/gquantiles.ado +++ b/src/ado/gquantiles.ado @@ -3,7 +3,7 @@ capture program drop gquantiles program gquantiles, rclass - version 13 + version 13.1 if ( `=_N < 1' ) { error 2000 diff --git a/src/ado/gtools.ado b/src/ado/gtools.ado index 7fa9ebb8..d27557ad 100644 --- a/src/ado/gtools.ado +++ b/src/ado/gtools.ado @@ -1,9 +1,9 @@ -*! version 1.0.0 21Jul2018 Mauricio Caceres Bravo, mauricio.caceres.bravo@gmail.com +*! version 1.0.1 23Jul2018 Mauricio Caceres Bravo, mauricio.caceres.bravo@gmail.com *! Program for managing the gtools package installation capture program drop gtools program gtools - version 13 + version 13.1 if ( inlist("`c(os)'", "MacOSX") | strpos("`c(machine_type)'", "Mac") ) local c_os_ macosx else local c_os_: di lower("`c(os)'") @@ -13,7 +13,21 @@ program gtools exit 198 } - syntax, [LICENSEs Verbose Dependencies Install_latest Upgrade replace dll hashlib(str) showcase examples] + syntax, [ /// + LICENSEs /// + Verbose /// + Dependencies /// + Install_latest /// + Upgrade /// + replace /// + dll /// + hashlib(str) /// + showcase /// + examples /// + test /// + TESTbranch(str) /// + ] + local cwd `c(pwd)' local github https://raw.githubusercontent.com/mcaceresb/stata-gtools/master @@ -30,7 +44,7 @@ program gtools gtools_licenses } - if ( `"`dependencies'`hashlib'`install_latest'`upgrade'`dll'`showcase'`examples'"' == `""' ) { + if ( `"`dependencies'`hashlib'`install_latest'`upgrade'`dll'`showcase'`examples'`test'`testbranch'"' == `""' ) { exit 0 } } @@ -72,7 +86,7 @@ program gtools di as txt "Success!" cd `"`cwd'"' - if ( `"`hashlib'`install_latest'`upgrade'`dll'`showcase'`examples'"' == `""' ) { + if ( `"`hashlib'`install_latest'`upgrade'`dll'`showcase'`examples'`test'`testbranch'"' == `""' ) { exit 0 } } @@ -80,7 +94,7 @@ program gtools if ( ("`install_latest'" == "install_latest") | ("`upgrade'" == "upgrade") ) { net install gtools, from(`github'/build) replace gtools, dependencies replace - if ( `"`hashlib'`dll'"' == `""' ) { + if ( `"`hashlib'`dll'`showcase'`examples'`test'`testbranch'"' == `""' ) { exit 0 } } @@ -144,19 +158,37 @@ program gtools } } else local hashlib spookyhash.dll - exit 0 + if ( `"`showcase'`examples'`test'`testbranch'"' == `""' ) { + exit 0 + } } else if ( `hashusr' | ("`dll'" == "dll") ) { di as txt "-gtools, hashlib()- and -gtools, dll- only on Windows." - exit 0 + if ( `"`showcase'`examples'`test'`testbranch'"' == `""' ) { + exit 0 + } } if ( "`showcase'`examples'" != "" ) { gtools_showcase - exit 0 + if ( "`test'`testbranch'" != "" ) { + exit 0 + } + } + + if ( "`test'`testbranch'" != "" ) { + if ( "`testbranch'" == "" ) local testbranch master + disp as txt "{bf:WARNING:} Unit tests from branch `testbranch' take 1-3 hours!" + disp as txt "Hit the break button if you don't have time (tests will start in 5 seconds)." + sleep 8000 + + local github https://raw.githubusercontent.com/mcaceresb/stata-gtools/`testbranch' + cap noi do `github'/build/gtools_tests.do + exit _rc } - display "Nothing to do. Specify: licenses, dependencies, dll (Windows), hasblib (Windows), upgrade, or examples." + display "Nothing to do. See {stata help gtools} for usage. Version info:" + which gtools end capture program drop gtools_licenses diff --git a/src/ado/gtop.ado b/src/ado/gtop.ado index 64d8ee79..ffbe3de8 100644 --- a/src/ado/gtop.ado +++ b/src/ado/gtop.ado @@ -3,7 +3,7 @@ cap program drop gtop program gtop, rclass - version 13 + version 13.1 local 00 `0' gtoplevelsof `0' diff --git a/src/ado/gtoplevelsof.ado b/src/ado/gtoplevelsof.ado index ef34ff02..f94ca990 100644 --- a/src/ado/gtoplevelsof.ado +++ b/src/ado/gtoplevelsof.ado @@ -6,7 +6,7 @@ cap program drop gtoplevelsof program gtoplevelsof, rclass global GTOP_RC 0 - version 13 + version 13.1 if ( `=_N < 1' ) { di as txt "no observations" diff --git a/src/ado/gunique.ado b/src/ado/gunique.ado index e24d28f5..6e0c245f 100644 --- a/src/ado/gunique.ado +++ b/src/ado/gunique.ado @@ -1,9 +1,9 @@ -*! version 1.0.0 21Jul2018 Mauricio Caceres Bravo, mauricio.caceres.bravo@gmail.com +*! version 1.0.1 23Jul2018 Mauricio Caceres Bravo, mauricio.caceres.bravo@gmail.com *! -unique- implementation using C for faster processing capture program drop gunique program gunique, rclass - version 13 + version 13.1 if ( `=_N < 1' ) { di as err "no observations" @@ -130,21 +130,22 @@ program gunique, rclass } if ( "`by'" != "" ) { - gegen `type' `generate' = tag(`by' `id') `ifid', missing replace - gegen `generate' = sum(`generate'), by(`by') replace + gegen `id' = tag(`by' `id') `ifid', missing replace + gegen `type' `generate' = sum(`id'), by(`by') replace di as txt "" di as txt "'`varlist'' had `r_Jdisp' unique values in `r_Ndisp' observations." di as txt "Variable `generate' has the number of unique values of '`varlist'' by '`by''." - if ( `=`nunique'' > 5 ) { - local header = `"The top 5 frequency counts of `generate' for the levels of '`by'' are"' - } - else { - local header = `"The frequency counts of `generate' for the levels of '`by'' are"' + if ( "`detail'" != "" ) { + if ( `=`nunique'' > 5 ) { + local header = `"The top 5 frequency counts of `generate' for the levels of '`by'' are"' + } + else { + local header = `"The frequency counts of `generate' for the levels of '`by'' are"' + } + di as txt `"`header'"' + gtoplevelsof `by' `generate' if `generate' > 0, ntop(5) } - di as txt `"`header'"' - gtoplevelsof `by' `generate' if `generate' > 0, ntop(5) - } end diff --git a/src/ado/hashsort.ado b/src/ado/hashsort.ado index 5540cae4..8f91c1dd 100644 --- a/src/ado/hashsort.ado +++ b/src/ado/hashsort.ado @@ -3,7 +3,7 @@ capture program drop hashsort program define hashsort - version 13 + version 13.1 global GTOOLS_CALLER hashsort syntax anything, /// Variables to sort by: [+|-]varname [[+|-]varname ...] diff --git a/src/gtools.pkg b/src/gtools.pkg index 8694c599..cf2a4563 100644 --- a/src/gtools.pkg +++ b/src/gtools.pkg @@ -1,11 +1,14 @@ -v 1.0.0 +v 1.0.1 d -d 'GTOOLS': Faster group operations using C plugins +d 'GTOOLS': Faster implementation of common Stata commands optimized for large datasets d -d This package provides a fast C-based implementations of Stata commands, -d such as collapse, pctile, xtile, contract, egen, isid, levelsof, top -d levelsof, unique/distinct, duplicates via gcollapse, gegen, and so on. -d This package was inspired d by Sergio Correia's ftools. +d Faster Stata for big data. Gtools provides a hash-based implementation +d of common Stata commands using C plugins for a massive speed +d improvement. Gtools implements gcollapse, gquantiles (pctile, xtile, +d and _pctile), gcontract, gegen, gisid, glevelsof, gunique, gdistinct, +d gduplicates, and gtop. Syntax is largely analogous to their native +d counterparts (see help gtools for details). This package was inspired +d by Sergio Correia's ftools. d d KW: plugin d KW: gtools @@ -42,7 +45,7 @@ d d Author: Mauricio Caceres Bravo d Support: email mauricio.caceres.bravo@gmail.com d -d Distribution-Date: 20180722 +d Distribution-Date: 20180723 d f _gtools_internal.ado f gcollapse.ado diff --git a/src/test/gtools_tests.do b/src/test/gtools_tests.do index 743c8f5e..0ccd9101 100644 --- a/src/test/gtools_tests.do +++ b/src/test/gtools_tests.do @@ -5,7 +5,7 @@ * Created: Tue May 16 07:23:02 EDT 2017 * Updated: Sun Jul 22 11:39:18 EDT 2018 * Purpose: Unit tests for gtools -* Version: 1.0.0 +* Version: 1.0.1 * Manual: help gtools * Stata start-up options diff --git a/src/test/test_gegen.do b/src/test/test_gegen.do index 964d2ceb..70c0a39d 100644 --- a/src/test/test_gegen.do +++ b/src/test/test_gegen.do @@ -101,6 +101,24 @@ program checks_gegen gegen z = count(x) if x == 8, by(x) replace assert z == 1 | mi(z) + cap gegen z = count(z) if x == 8, by(z) replace + assert _rc == 198 + gegen y = count(z) if x == 8, by(z) replace + gegen z = group(z) in 8 / 9, replace missing + assert z == (x - 7) | mi(z) + gegen z = tag(z) in 7 / 10, replace missing + assert z[7] == 1 + assert z[8] == 1 + assert z[9] == 1 + assert (z == 0) | z == 1 + cap gegen z = sum(z) in 2 / 9, replace + assert _rc == 198 + cap gegen z = sum(x* z*) in 2 / 9, replace + assert _rc == 198 + gegen y = sum(z) in 2 / 8, replace + assert (y == 2) | mi(y) + gegen z = sum(x* z) in 2 / 9, replace + clear set obs 10 gen x = 1 diff --git a/src/test/test_gunique.do b/src/test/test_gunique.do index fd1c6e70..c0e0a1d2 100644 --- a/src/test/test_gunique.do +++ b/src/test/test_gunique.do @@ -51,6 +51,33 @@ program checks_unique replace x = . cap gunique x if 0 assert _rc == 0 + + clear + set obs 10 + gen x = mod(_n, 3) + gen y = mod(_n, 4) + gunique x + gunique y + gunique y, by(x) + cap gunique y, by(x) + assert _rc == 110 + gen `:type _Unique' _Unique2 = _Unique + gunique y, by(x) replace + assert _Unique == _Unique2 + replace y = 0 + gunique y, by(x) replace + assert _Unique == 1 + + drop _U* + gunique y, by(x) gen(nuniq) + cap gunique y, by(x) gen(nuniq) + assert _rc == 110 + gen `:type nuniq' nuniq2 = nuniq + gunique y, by(x) gen(nuniq) replace + assert nuniq == nuniq2 + replace y = 0 + gunique y, by(x) gen(nuniq) replace + assert nuniq == 1 end capture program drop checks_inner_unique From dda6071d4a88342cb1659be291415bf690a60bd8 Mon Sep 17 00:00:00 2001 From: Mauricio Caceres Date: Mon, 23 Jul 2018 13:07:16 -0400 Subject: [PATCH 3/6] gtools-1.0.1 (2018-07-23); gegen replace bug fix now internally handled --- build/_gtools_internal.ado | 13 ++++++++++--- build/gegen.ado | 32 ++++++++++++++++++++++++++------ build/gtools_tests.do | 17 +++++++---------- build/gunique.ado | 4 ++-- src/ado/_gtools_internal.ado | 13 ++++++++++--- src/ado/gegen.ado | 32 ++++++++++++++++++++++++++------ src/ado/gunique.ado | 4 ++-- src/test/test_gegen.do | 17 +++++++---------- 8 files changed, 90 insertions(+), 42 deletions(-) diff --git a/build/_gtools_internal.ado b/build/_gtools_internal.ado index a64ec8af..9135bbf2 100644 --- a/build/_gtools_internal.ado +++ b/build/_gtools_internal.ado @@ -1,4 +1,4 @@ -*! version 1.0.0 21Jul2018 Mauricio Caceres Bravo, mauricio.caceres.bravo@gmail.com +*! version 1.0.1 23Jul2018 Mauricio Caceres Bravo, mauricio.caceres.bravo@gmail.com *! Encode varlist using Jenkin's 128-bit spookyhash via C plugins * rc 17000 @@ -1385,7 +1385,7 @@ program _gtools_internal, rclass scalar __gtools_used_io = 0 scalar __gtools_ixfinish = 0 scalar __gtools_J = _N - scalar __gtools_init_targ = ( "`ifin'" != "" ) & ("`merge'" != "") + scalar __gtools_init_targ = ("`ifin'" != "") & ("`merge'" != "") if inlist("`anything'", "forceio", "switch") { local extravars `__gtools_sources' `__gtools_sources' `freq' @@ -1481,9 +1481,16 @@ program _gtools_internal, rclass * 2. Sort indexed hash * 3. Determine group sizes and cut points * 4. Use index and group info to compute the function + * + * NOTE: If there are targets (as with egen, collapse, or generic + * hash), they are replaced with missing values internally right + * before writing the output. Special functions tag, group, + * and count are initialized as well, should they have been + * requested. - if ( inlist("`gfunction'", "unique", "egen") ) { + if ( inlist("`gfunction'", "unique", "egen", "hash") ) { local gcall hash + scalar __gtools_init_targ = ("`ifin'" != "") & ("`replace'" != "") } else if ( inlist("`gfunction'", "contract") ) { local 0 `gcontract' diff --git a/build/gegen.ado b/build/gegen.ado index d6009d5b..c7fbff21 100644 --- a/build/gegen.ado +++ b/build/gegen.ado @@ -290,11 +290,30 @@ program define gegen, byable(onecall) rclass local retype = `retype' & 1 } else { + + * NOTE: Addvar should be "" with replace; the problem was that + * the internals did not empty the variable before writing to + * it. With if/in conditions, this caused problems because the + * variable was not set to missing outside the range, as it + * should. + * + * As a quickfix I thought I could just empty it before calling + * internals. However, this causesd two issues: The variable + * would be missing on error, and if the target is also a source, + * the source would be all misssing when read by the plugin! + * + * The easiest fix was to require the target to not be in the + * sources, but there was an easier fix! I already empty the + * targets fot gcollapse, so I simply set that boolean to true + * (init_targ) when gegen was called with replace! This impacts + * the check in lines 489-492. + cap confirm new variable `name' if ( _rc ) { local dummy `name' local rename "" - local addvar qui replace `dummy' = . + local addvar "" + * local addvar qui replace `dummy' = . local retype = `retype' & 0 } else { @@ -466,11 +485,12 @@ program define gegen, byable(onecall) rclass exit _rc } - if ( "`:list sources & dummy'" != "" ) { - if ( "`replace'" != "" ) local extra " even with -replace-" - di as error "Variable `dummy' canot be a source and a target`extra'" - exit 198 - } + * See notes in lines 294-310 + * if ( "`:list sources & dummy'" != "" ) { + * if ( "`replace'" != "" ) local extra " even with -replace-" + * di as error "Variable `dummy' canot be a source and a target`extra'" + * exit 198 + * } } } else if ( `rc' == 0 ) { diff --git a/build/gtools_tests.do b/build/gtools_tests.do index 2b272cd0..3100e0ee 100644 --- a/build/gtools_tests.do +++ b/build/gtools_tests.do @@ -4175,9 +4175,9 @@ program checks_gegen gegen z = count(x) if x == 8, by(x) replace assert z == 1 | mi(z) - cap gegen z = count(z) if x == 8, by(z) replace - assert _rc == 198 - gegen y = count(z) if x == 8, by(z) replace + gegen z = count(z) if x == 8, by(z) replace + assert z[8] == 1 + assert mi(z) | _n == 8 gegen z = group(z) in 8 / 9, replace missing assert z == (x - 7) | mi(z) gegen z = tag(z) in 7 / 10, replace missing @@ -4185,13 +4185,10 @@ program checks_gegen assert z[8] == 1 assert z[9] == 1 assert (z == 0) | z == 1 - cap gegen z = sum(z) in 2 / 9, replace - assert _rc == 198 - cap gegen z = sum(x* z*) in 2 / 9, replace - assert _rc == 198 - gegen y = sum(z) in 2 / 8, replace - assert (y == 2) | mi(y) - gegen z = sum(x* z) in 2 / 9, replace + gegen z = sum(z) in 2 / 9, replace + assert z == 3 | inlist(_n, 1, 10) + gegen z = sum(x* z*) in 2 / 9, replace + assert z == `=4 * (2 + 9) + 8 * 3' | inlist(_n, 1, 10) clear set obs 10 diff --git a/build/gunique.ado b/build/gunique.ado index 6e0c245f..f842f6df 100644 --- a/build/gunique.ado +++ b/build/gunique.ado @@ -130,8 +130,8 @@ program gunique, rclass } if ( "`by'" != "" ) { - gegen `id' = tag(`by' `id') `ifid', missing replace - gegen `type' `generate' = sum(`id'), by(`by') replace + gegen `type' `generate' = tag(`by' `id') `ifid', missing `replace' + gegen `generate' = sum(`generate'), by(`by') replace di as txt "" di as txt "'`varlist'' had `r_Jdisp' unique values in `r_Ndisp' observations." diff --git a/src/ado/_gtools_internal.ado b/src/ado/_gtools_internal.ado index a64ec8af..9135bbf2 100644 --- a/src/ado/_gtools_internal.ado +++ b/src/ado/_gtools_internal.ado @@ -1,4 +1,4 @@ -*! version 1.0.0 21Jul2018 Mauricio Caceres Bravo, mauricio.caceres.bravo@gmail.com +*! version 1.0.1 23Jul2018 Mauricio Caceres Bravo, mauricio.caceres.bravo@gmail.com *! Encode varlist using Jenkin's 128-bit spookyhash via C plugins * rc 17000 @@ -1385,7 +1385,7 @@ program _gtools_internal, rclass scalar __gtools_used_io = 0 scalar __gtools_ixfinish = 0 scalar __gtools_J = _N - scalar __gtools_init_targ = ( "`ifin'" != "" ) & ("`merge'" != "") + scalar __gtools_init_targ = ("`ifin'" != "") & ("`merge'" != "") if inlist("`anything'", "forceio", "switch") { local extravars `__gtools_sources' `__gtools_sources' `freq' @@ -1481,9 +1481,16 @@ program _gtools_internal, rclass * 2. Sort indexed hash * 3. Determine group sizes and cut points * 4. Use index and group info to compute the function + * + * NOTE: If there are targets (as with egen, collapse, or generic + * hash), they are replaced with missing values internally right + * before writing the output. Special functions tag, group, + * and count are initialized as well, should they have been + * requested. - if ( inlist("`gfunction'", "unique", "egen") ) { + if ( inlist("`gfunction'", "unique", "egen", "hash") ) { local gcall hash + scalar __gtools_init_targ = ("`ifin'" != "") & ("`replace'" != "") } else if ( inlist("`gfunction'", "contract") ) { local 0 `gcontract' diff --git a/src/ado/gegen.ado b/src/ado/gegen.ado index d6009d5b..c7fbff21 100644 --- a/src/ado/gegen.ado +++ b/src/ado/gegen.ado @@ -290,11 +290,30 @@ program define gegen, byable(onecall) rclass local retype = `retype' & 1 } else { + + * NOTE: Addvar should be "" with replace; the problem was that + * the internals did not empty the variable before writing to + * it. With if/in conditions, this caused problems because the + * variable was not set to missing outside the range, as it + * should. + * + * As a quickfix I thought I could just empty it before calling + * internals. However, this causesd two issues: The variable + * would be missing on error, and if the target is also a source, + * the source would be all misssing when read by the plugin! + * + * The easiest fix was to require the target to not be in the + * sources, but there was an easier fix! I already empty the + * targets fot gcollapse, so I simply set that boolean to true + * (init_targ) when gegen was called with replace! This impacts + * the check in lines 489-492. + cap confirm new variable `name' if ( _rc ) { local dummy `name' local rename "" - local addvar qui replace `dummy' = . + local addvar "" + * local addvar qui replace `dummy' = . local retype = `retype' & 0 } else { @@ -466,11 +485,12 @@ program define gegen, byable(onecall) rclass exit _rc } - if ( "`:list sources & dummy'" != "" ) { - if ( "`replace'" != "" ) local extra " even with -replace-" - di as error "Variable `dummy' canot be a source and a target`extra'" - exit 198 - } + * See notes in lines 294-310 + * if ( "`:list sources & dummy'" != "" ) { + * if ( "`replace'" != "" ) local extra " even with -replace-" + * di as error "Variable `dummy' canot be a source and a target`extra'" + * exit 198 + * } } } else if ( `rc' == 0 ) { diff --git a/src/ado/gunique.ado b/src/ado/gunique.ado index 6e0c245f..f842f6df 100644 --- a/src/ado/gunique.ado +++ b/src/ado/gunique.ado @@ -130,8 +130,8 @@ program gunique, rclass } if ( "`by'" != "" ) { - gegen `id' = tag(`by' `id') `ifid', missing replace - gegen `type' `generate' = sum(`id'), by(`by') replace + gegen `type' `generate' = tag(`by' `id') `ifid', missing `replace' + gegen `generate' = sum(`generate'), by(`by') replace di as txt "" di as txt "'`varlist'' had `r_Jdisp' unique values in `r_Ndisp' observations." diff --git a/src/test/test_gegen.do b/src/test/test_gegen.do index 70c0a39d..71d74c77 100644 --- a/src/test/test_gegen.do +++ b/src/test/test_gegen.do @@ -101,9 +101,9 @@ program checks_gegen gegen z = count(x) if x == 8, by(x) replace assert z == 1 | mi(z) - cap gegen z = count(z) if x == 8, by(z) replace - assert _rc == 198 - gegen y = count(z) if x == 8, by(z) replace + gegen z = count(z) if x == 8, by(z) replace + assert z[8] == 1 + assert mi(z) | _n == 8 gegen z = group(z) in 8 / 9, replace missing assert z == (x - 7) | mi(z) gegen z = tag(z) in 7 / 10, replace missing @@ -111,13 +111,10 @@ program checks_gegen assert z[8] == 1 assert z[9] == 1 assert (z == 0) | z == 1 - cap gegen z = sum(z) in 2 / 9, replace - assert _rc == 198 - cap gegen z = sum(x* z*) in 2 / 9, replace - assert _rc == 198 - gegen y = sum(z) in 2 / 8, replace - assert (y == 2) | mi(y) - gegen z = sum(x* z) in 2 / 9, replace + gegen z = sum(z) in 2 / 9, replace + assert z == 3 | inlist(_n, 1, 10) + gegen z = sum(x* z*) in 2 / 9, replace + assert z == `=4 * (2 + 9) + 8 * 3' | inlist(_n, 1, 10) clear set obs 10 From 963f4faf4e9eefa6634a46300b22ea767479186c Mon Sep 17 00:00:00 2001 From: Mauricio Caceres Date: Mon, 23 Jul 2018 15:06:16 -0400 Subject: [PATCH 4/6] `gcollapse, merge` exits with error if there are no observations. --- build.py | 2 +- build/changelog.md | 1 + build/gcollapse.ado | 7 +++- build/gcollapse.sthlp | 2 +- build/gegen.ado | 5 ++- build/gtools.ado | 65 +++++++++++++++++++------------------- build/gtools.sthlp | 4 ++- build/gtools_tests.do | 6 ++++ changelog.md | 1 + docs/stata/gcollapse.sthlp | 2 +- docs/stata/gtools.sthlp | 4 ++- docs/usage/gtools.md | 10 +++--- src/ado/gcollapse.ado | 7 +++- src/ado/gegen.ado | 5 ++- src/ado/gtools.ado | 65 +++++++++++++++++++------------------- src/test/test_gegen.do | 6 ++++ 16 files changed, 115 insertions(+), 77 deletions(-) diff --git a/build.py b/build.py index 0a1a6934..d8644093 100755 --- a/build.py +++ b/build.py @@ -380,7 +380,7 @@ def makedirs_safe(directory): f.write(linesep) f.write("cap net uninstall gtools") f.write(linesep) - f.write("net install gtools, from($builddir)") + f.write("net install gtools, from($builddir) replace") f.write(linesep) chdir(statadir) diff --git a/build/changelog.md b/build/changelog.md index 95fb1479..7eb9090d 100644 --- a/build/changelog.md +++ b/build/changelog.md @@ -8,6 +8,7 @@ Change Log * `gegen, replace` gave the wrong result if the source was also the target (`tag` and `group` worked, but all other stats did not). * `gunique, by()` was affected by this bug and now works correctly. +* `gcollapse, merge` exits with error if there are no observations matching `if' `in'. ### Enhancements diff --git a/build/gcollapse.ado b/build/gcollapse.ado index 7a382044..bdae4160 100644 --- a/build/gcollapse.ado +++ b/build/gcollapse.ado @@ -1,4 +1,4 @@ -*! version 1.0.0 21Jul2018 Mauricio Caceres Bravo, mauricio.caceres.bravo@gmail.com +*! version 1.0.1 23Jul2018 Mauricio Caceres Bravo, mauricio.caceres.bravo@gmail.com *! -collapse- implementation using C for faster processing capture program drop gcollapse @@ -627,6 +627,11 @@ program gcollapse, rclass collapse `anything' `if' `in', `by' `cw' `fast' exit 0 } + else if ( _rc == 17001 ) { + local rc = _rc + CleanExit + error 2000 + } else if ( _rc ) { local rc = _rc CleanExit diff --git a/build/gcollapse.sthlp b/build/gcollapse.sthlp index c0000e7a..906489fc 100644 --- a/build/gcollapse.sthlp +++ b/build/gcollapse.sthlp @@ -1,5 +1,5 @@ {smcl} -{* *! version 1.0.0 21Jul2018}{...} +{* *! version 1.0.1 23Jul2018}{...} {viewerdialog gcollapse "dialog gcollapse"}{...} {vieweralsosee "[R] gcollapse" "mansection R gcollapse"}{...} {viewerjumpto "Syntax" "gcollapse##syntax"}{...} diff --git a/build/gegen.ado b/build/gegen.ado index c7fbff21..b566d384 100644 --- a/build/gegen.ado +++ b/build/gegen.ado @@ -287,6 +287,7 @@ program define gegen, byable(onecall) rclass tempvar dummy local rename rename `dummy' `name' local addvar qui mata: st_addvar("`type'", "`dummy'") + local noobs "" local retype = `retype' & 1 } else { @@ -313,13 +314,14 @@ program define gegen, byable(onecall) rclass local dummy `name' local rename "" local addvar "" - * local addvar qui replace `dummy' = . + local noobs qui replace `dummy' = . local retype = `retype' & 0 } else { tempvar dummy local rename rename `dummy' `name' local addvar qui mata: st_addvar("`type'", "`dummy'") + local noobs "" local retype = `retype' & 1 } } @@ -604,6 +606,7 @@ program define gegen, byable(onecall) rclass } else if ( `rc' == 17001 ) { if ( "${GTOOLS_DUPS}" == "" ) { + `noobs' `rename' exit 0 } diff --git a/build/gtools.ado b/build/gtools.ado index d27557ad..fc7d0447 100644 --- a/build/gtools.ado +++ b/build/gtools.ado @@ -13,23 +13,25 @@ program gtools exit 198 } - syntax, [ /// - LICENSEs /// - Verbose /// - Dependencies /// - Install_latest /// - Upgrade /// - replace /// - dll /// - hashlib(str) /// - showcase /// - examples /// - test /// - TESTbranch(str) /// + syntax, [ /// + LICENSEs /// + Verbose /// + Dependencies /// + Install_latest /// + Upgrade /// + replace /// + dll /// + hashlib(str) /// + showcase /// + examples /// + test /// + branch(str) /// ] + if ( "`branch'" == "" ) local branch master + local cwd `c(pwd)' - local github https://raw.githubusercontent.com/mcaceresb/stata-gtools/master + local github https://raw.githubusercontent.com/mcaceresb/stata-gtools/`branch' if ( "`licenses'" == "licenses" ) { disp `"gtools is {browse "https://github.com/mcaceresb/stata-gtools/blob/master/LICENSE":MIT-licensed }"' @@ -44,7 +46,7 @@ program gtools gtools_licenses } - if ( `"`dependencies'`hashlib'`install_latest'`upgrade'`dll'`showcase'`examples'`test'`testbranch'"' == `""' ) { + if ( `"`dependencies'`hashlib'`install_latest'`upgrade'`dll'`showcase'`examples'`test'"' == `""' ) { exit 0 } } @@ -86,15 +88,16 @@ program gtools di as txt "Success!" cd `"`cwd'"' - if ( `"`hashlib'`install_latest'`upgrade'`dll'`showcase'`examples'`test'`testbranch'"' == `""' ) { + if ( `"`hashlib'`install_latest'`upgrade'`dll'`showcase'`examples'`test'"' == `""' ) { exit 0 } } if ( ("`install_latest'" == "install_latest") | ("`upgrade'" == "upgrade") ) { + cap net uninstall gtools net install gtools, from(`github'/build) replace gtools, dependencies replace - if ( `"`hashlib'`dll'`showcase'`examples'`test'`testbranch'"' == `""' ) { + if ( `"`hashlib'`dll'`showcase'`examples'`test'"' == `""' ) { exit 0 } } @@ -112,8 +115,7 @@ program gtools if ( _rc | `hashusr' ) { cap confirm file `"`hashlib'"' if ( _rc ) { - local url https://raw.githubusercontent.com/mcaceresb/stata-gtools - local url `url'/master/spookyhash.dll + local url `github'/build/spookyhash.dll di as err `"'`hashlib'' not found."' di as err "Download {browse "`url'":here} or run {opt gtools, dependencies}"' exit _rc @@ -158,36 +160,35 @@ program gtools } } else local hashlib spookyhash.dll - if ( `"`showcase'`examples'`test'`testbranch'"' == `""' ) { + if ( `"`showcase'`examples'`test'"' == `""' ) { exit 0 } } else if ( `hashusr' | ("`dll'" == "dll") ) { di as txt "-gtools, hashlib()- and -gtools, dll- only on Windows." - if ( `"`showcase'`examples'`test'`testbranch'"' == `""' ) { + if ( `"`showcase'`examples'`test'"' == `""' ) { exit 0 } } if ( "`showcase'`examples'" != "" ) { gtools_showcase - if ( "`test'`testbranch'" != "" ) { + if ( "`test'" == "" ) { exit 0 } } - if ( "`test'`testbranch'" != "" ) { - if ( "`testbranch'" == "" ) local testbranch master - disp as txt "{bf:WARNING:} Unit tests from branch `testbranch' take 1-3 hours!" - disp as txt "Hit the break button if you don't have time (tests will start in 5 seconds)." - sleep 8000 - - local github https://raw.githubusercontent.com/mcaceresb/stata-gtools/`testbranch' - cap noi do `github'/build/gtools_tests.do - exit _rc + if ( "`test'" != "" ) { + disp as txt "{bf:WARNING:} Unit tests from branch `branch' take 1-3 hours!" + disp as txt "Are you sure you want to run them? (yes/no)", _request(yesno) + if inlist("`yesno'", "y", "yes") { + cap noi do `github'/build/gtools_tests.do + exit _rc + } + else exit 0 } - display "Nothing to do. See {stata help gtools} for usage. Version info:" + display "Nothing to do. See {stata help gtools} or {stata gtools, examples} for usage. Version info:" which gtools end diff --git a/build/gtools.sthlp b/build/gtools.sthlp index 23d234ea..20fac4c7 100644 --- a/build/gtools.sthlp +++ b/build/gtools.sthlp @@ -82,7 +82,9 @@ traditional stata commands. The following are available as part of gtools {p_end} {synopt :{opt showcase}}Alias for {opt examples}. {p_end} -{synopt :{cmd:test}[{cmd:(}{branch}{cmd:)}]}Run gtools unit tests (1-3h) from the specified github branch (default is master). +{synopt :{opt test}}Run gtools unit tests (1-3h) from the specified github branch (default is master). +{p_end} +{synopt :{opth branch(str)}}Github branch to use (defualt is master). {p_end} diff --git a/build/gtools_tests.do b/build/gtools_tests.do index 3100e0ee..8b29c7df 100644 --- a/build/gtools_tests.do +++ b/build/gtools_tests.do @@ -4189,6 +4189,12 @@ program checks_gegen assert z == 3 | inlist(_n, 1, 10) gegen z = sum(x* z*) in 2 / 9, replace assert z == `=4 * (2 + 9) + 8 * 3' | inlist(_n, 1, 10) + gegen z = sum(x* z*) if 0, replace + assert z == . + gegen z = sum(x* z*) if 1, replace + assert z != . + cap gegen z = sum(x* z*) if 1 + assert _rc == 110 clear set obs 10 diff --git a/changelog.md b/changelog.md index 95fb1479..7eb9090d 100644 --- a/changelog.md +++ b/changelog.md @@ -8,6 +8,7 @@ Change Log * `gegen, replace` gave the wrong result if the source was also the target (`tag` and `group` worked, but all other stats did not). * `gunique, by()` was affected by this bug and now works correctly. +* `gcollapse, merge` exits with error if there are no observations matching `if' `in'. ### Enhancements diff --git a/docs/stata/gcollapse.sthlp b/docs/stata/gcollapse.sthlp index c0000e7a..906489fc 100644 --- a/docs/stata/gcollapse.sthlp +++ b/docs/stata/gcollapse.sthlp @@ -1,5 +1,5 @@ {smcl} -{* *! version 1.0.0 21Jul2018}{...} +{* *! version 1.0.1 23Jul2018}{...} {viewerdialog gcollapse "dialog gcollapse"}{...} {vieweralsosee "[R] gcollapse" "mansection R gcollapse"}{...} {viewerjumpto "Syntax" "gcollapse##syntax"}{...} diff --git a/docs/stata/gtools.sthlp b/docs/stata/gtools.sthlp index 23d234ea..20fac4c7 100644 --- a/docs/stata/gtools.sthlp +++ b/docs/stata/gtools.sthlp @@ -82,7 +82,9 @@ traditional stata commands. The following are available as part of gtools {p_end} {synopt :{opt showcase}}Alias for {opt examples}. {p_end} -{synopt :{cmd:test}[{cmd:(}{branch}{cmd:)}]}Run gtools unit tests (1-3h) from the specified github branch (default is master). +{synopt :{opt test}}Run gtools unit tests (1-3h) from the specified github branch (default is master). +{p_end} +{synopt :{opth branch(str)}}Github branch to use (defualt is master). {p_end} diff --git a/docs/usage/gtools.md b/docs/usage/gtools.md index bb5eca7a..8d96e89f 100644 --- a/docs/usage/gtools.md +++ b/docs/usage/gtools.md @@ -34,18 +34,20 @@ Options - `dependencies` Installs the hash library, spookyhash.dll, which is required for the plugin to execute correctly. -- `upgrade` (alias `install_latest`) Upgrades gtools to the latest github version. +- `upgrade` (alias `install_latest`) Upgrades gtools to the latest github version (default is master). - `replace` Replace spookyhash.dll if already installed. - `dll` Add path to spookyhash.dll to system path. -- `hashlib(str)Custom` path to spookyhash.dll. +- `hashlib(str)` Custom path to spookyhash.dll. - `licenses` Prints the open source projects used in `gtools` - `verbose` With `licenses`, prints the licenses of the open source projects used in `gtools` -- `examples` (alias `showcase`) print examples of how to use available gtools functions. +- `examples` (alias `showcase`) Print examples of how to use available gtools functions. -- `test` or `test(branch)` runs the gtools unit tests (1-3h) from the specified github branch (default master). +- `test` Runs the gtools unit tests (1-3h) from the specified github branch (default is master). + +- `branch(str)` Github branch to use (default is master). diff --git a/src/ado/gcollapse.ado b/src/ado/gcollapse.ado index 7a382044..bdae4160 100644 --- a/src/ado/gcollapse.ado +++ b/src/ado/gcollapse.ado @@ -1,4 +1,4 @@ -*! version 1.0.0 21Jul2018 Mauricio Caceres Bravo, mauricio.caceres.bravo@gmail.com +*! version 1.0.1 23Jul2018 Mauricio Caceres Bravo, mauricio.caceres.bravo@gmail.com *! -collapse- implementation using C for faster processing capture program drop gcollapse @@ -627,6 +627,11 @@ program gcollapse, rclass collapse `anything' `if' `in', `by' `cw' `fast' exit 0 } + else if ( _rc == 17001 ) { + local rc = _rc + CleanExit + error 2000 + } else if ( _rc ) { local rc = _rc CleanExit diff --git a/src/ado/gegen.ado b/src/ado/gegen.ado index c7fbff21..b566d384 100644 --- a/src/ado/gegen.ado +++ b/src/ado/gegen.ado @@ -287,6 +287,7 @@ program define gegen, byable(onecall) rclass tempvar dummy local rename rename `dummy' `name' local addvar qui mata: st_addvar("`type'", "`dummy'") + local noobs "" local retype = `retype' & 1 } else { @@ -313,13 +314,14 @@ program define gegen, byable(onecall) rclass local dummy `name' local rename "" local addvar "" - * local addvar qui replace `dummy' = . + local noobs qui replace `dummy' = . local retype = `retype' & 0 } else { tempvar dummy local rename rename `dummy' `name' local addvar qui mata: st_addvar("`type'", "`dummy'") + local noobs "" local retype = `retype' & 1 } } @@ -604,6 +606,7 @@ program define gegen, byable(onecall) rclass } else if ( `rc' == 17001 ) { if ( "${GTOOLS_DUPS}" == "" ) { + `noobs' `rename' exit 0 } diff --git a/src/ado/gtools.ado b/src/ado/gtools.ado index d27557ad..fc7d0447 100644 --- a/src/ado/gtools.ado +++ b/src/ado/gtools.ado @@ -13,23 +13,25 @@ program gtools exit 198 } - syntax, [ /// - LICENSEs /// - Verbose /// - Dependencies /// - Install_latest /// - Upgrade /// - replace /// - dll /// - hashlib(str) /// - showcase /// - examples /// - test /// - TESTbranch(str) /// + syntax, [ /// + LICENSEs /// + Verbose /// + Dependencies /// + Install_latest /// + Upgrade /// + replace /// + dll /// + hashlib(str) /// + showcase /// + examples /// + test /// + branch(str) /// ] + if ( "`branch'" == "" ) local branch master + local cwd `c(pwd)' - local github https://raw.githubusercontent.com/mcaceresb/stata-gtools/master + local github https://raw.githubusercontent.com/mcaceresb/stata-gtools/`branch' if ( "`licenses'" == "licenses" ) { disp `"gtools is {browse "https://github.com/mcaceresb/stata-gtools/blob/master/LICENSE":MIT-licensed }"' @@ -44,7 +46,7 @@ program gtools gtools_licenses } - if ( `"`dependencies'`hashlib'`install_latest'`upgrade'`dll'`showcase'`examples'`test'`testbranch'"' == `""' ) { + if ( `"`dependencies'`hashlib'`install_latest'`upgrade'`dll'`showcase'`examples'`test'"' == `""' ) { exit 0 } } @@ -86,15 +88,16 @@ program gtools di as txt "Success!" cd `"`cwd'"' - if ( `"`hashlib'`install_latest'`upgrade'`dll'`showcase'`examples'`test'`testbranch'"' == `""' ) { + if ( `"`hashlib'`install_latest'`upgrade'`dll'`showcase'`examples'`test'"' == `""' ) { exit 0 } } if ( ("`install_latest'" == "install_latest") | ("`upgrade'" == "upgrade") ) { + cap net uninstall gtools net install gtools, from(`github'/build) replace gtools, dependencies replace - if ( `"`hashlib'`dll'`showcase'`examples'`test'`testbranch'"' == `""' ) { + if ( `"`hashlib'`dll'`showcase'`examples'`test'"' == `""' ) { exit 0 } } @@ -112,8 +115,7 @@ program gtools if ( _rc | `hashusr' ) { cap confirm file `"`hashlib'"' if ( _rc ) { - local url https://raw.githubusercontent.com/mcaceresb/stata-gtools - local url `url'/master/spookyhash.dll + local url `github'/build/spookyhash.dll di as err `"'`hashlib'' not found."' di as err "Download {browse "`url'":here} or run {opt gtools, dependencies}"' exit _rc @@ -158,36 +160,35 @@ program gtools } } else local hashlib spookyhash.dll - if ( `"`showcase'`examples'`test'`testbranch'"' == `""' ) { + if ( `"`showcase'`examples'`test'"' == `""' ) { exit 0 } } else if ( `hashusr' | ("`dll'" == "dll") ) { di as txt "-gtools, hashlib()- and -gtools, dll- only on Windows." - if ( `"`showcase'`examples'`test'`testbranch'"' == `""' ) { + if ( `"`showcase'`examples'`test'"' == `""' ) { exit 0 } } if ( "`showcase'`examples'" != "" ) { gtools_showcase - if ( "`test'`testbranch'" != "" ) { + if ( "`test'" == "" ) { exit 0 } } - if ( "`test'`testbranch'" != "" ) { - if ( "`testbranch'" == "" ) local testbranch master - disp as txt "{bf:WARNING:} Unit tests from branch `testbranch' take 1-3 hours!" - disp as txt "Hit the break button if you don't have time (tests will start in 5 seconds)." - sleep 8000 - - local github https://raw.githubusercontent.com/mcaceresb/stata-gtools/`testbranch' - cap noi do `github'/build/gtools_tests.do - exit _rc + if ( "`test'" != "" ) { + disp as txt "{bf:WARNING:} Unit tests from branch `branch' take 1-3 hours!" + disp as txt "Are you sure you want to run them? (yes/no)", _request(yesno) + if inlist("`yesno'", "y", "yes") { + cap noi do `github'/build/gtools_tests.do + exit _rc + } + else exit 0 } - display "Nothing to do. See {stata help gtools} for usage. Version info:" + display "Nothing to do. See {stata help gtools} or {stata gtools, examples} for usage. Version info:" which gtools end diff --git a/src/test/test_gegen.do b/src/test/test_gegen.do index 71d74c77..867e3c7b 100644 --- a/src/test/test_gegen.do +++ b/src/test/test_gegen.do @@ -115,6 +115,12 @@ program checks_gegen assert z == 3 | inlist(_n, 1, 10) gegen z = sum(x* z*) in 2 / 9, replace assert z == `=4 * (2 + 9) + 8 * 3' | inlist(_n, 1, 10) + gegen z = sum(x* z*) if 0, replace + assert z == . + gegen z = sum(x* z*) if 1, replace + assert z != . + cap gegen z = sum(x* z*) if 1 + assert _rc == 110 clear set obs 10 From 2a6f1834c92656cdab00bf0fd9ae01c08ac79aea Mon Sep 17 00:00:00 2001 From: Mauricio Caceres Date: Fri, 27 Jul 2018 10:02:18 -0400 Subject: [PATCH 5/6] Fixed typos in gtools.ado and help file --- build/_gtools_internal.ado | 1 + build/gtools.ado | 17 +- build/gtoplevelsof.ado | 4 +- changelog.md | 2 +- docs/usage/gtools.md | 2 +- src/ado/_gtools_internal.ado | 1 + src/ado/gtools.ado | 17 +- src/ado/gtoplevelsof.ado | 4 +- src/test/gtools_tests_unix.log | 3768 ++++++++++++++++---------------- 9 files changed, 1885 insertions(+), 1931 deletions(-) diff --git a/build/_gtools_internal.ado b/build/_gtools_internal.ado index 9135bbf2..f5799517 100644 --- a/build/_gtools_internal.ado +++ b/build/_gtools_internal.ado @@ -2729,6 +2729,7 @@ program parse_by_types, rclass exit 17005 } cap scalar drop __gtools_k_strL + * disp as txt "(note: performance with strL variables is not optimized)" } else if ( ("`varstrL'" != "") & ("`forcestrl'" == "") ) { disp as err _n(1) "gtools failed to parse strL variables." diff --git a/build/gtools.ado b/build/gtools.ado index fc7d0447..60e280ae 100644 --- a/build/gtools.ado +++ b/build/gtools.ado @@ -8,11 +8,6 @@ program gtools if ( inlist("`c(os)'", "MacOSX") | strpos("`c(machine_type)'", "Mac") ) local c_os_ macosx else local c_os_: di lower("`c(os)'") - if inlist("`c_os_'", "macosx") { - di as err "Not available for MacOSX." - exit 198 - } - syntax, [ /// LICENSEs /// Verbose /// @@ -96,7 +91,7 @@ program gtools if ( ("`install_latest'" == "install_latest") | ("`upgrade'" == "upgrade") ) { cap net uninstall gtools net install gtools, from(`github'/build) replace - gtools, dependencies replace + * gtools, dependencies replace if ( `"`hashlib'`dll'`showcase'`examples'`test'"' == `""' ) { exit 0 } @@ -180,12 +175,16 @@ program gtools if ( "`test'" != "" ) { disp as txt "{bf:WARNING:} Unit tests from branch `branch' take 1-3 hours!" - disp as txt "Are you sure you want to run them? (yes/no)", _request(yesno) - if inlist("`yesno'", "y", "yes") { + disp as txt "Are you sure you want to run them? (yes/no)", _request(GTOOLS_TESTS) + if inlist(`"${GTOOLS_TESTS}"', "y", "yes") { + global GTOOLS_TESTS cap noi do `github'/build/gtools_tests.do exit _rc } - else exit 0 + else exit { + global GTOOLS_TESTS + 0 + } } display "Nothing to do. See {stata help gtools} or {stata gtools, examples} for usage. Version info:" diff --git a/build/gtoplevelsof.ado b/build/gtoplevelsof.ado index f94ca990..8652bf98 100644 --- a/build/gtoplevelsof.ado +++ b/build/gtoplevelsof.ado @@ -219,8 +219,8 @@ program gtoplevelsof, rclass if ( "`local'" != "" ) c_local `local' `"`r(levels)'"' if ( "`matrix'" != "" ) matrix `matrix' = `gmat' - if ( `c(MP)' & (`r(J)' < 50) & ("`warning'" != "nowarning") ) { - disp as txt "(Note: {cmd:tab} is often faster than {cmd:gtop} with few groups.)" + if ( `c(MP)' & (`r(J)' < 20) & ("`warning'" != "nowarning") & (`:list sizeof varlist' == 1) ) { + disp as txt "(Note: {cmd:tab} can be faster than {cmd:gtop} with few groups.)" } return local levels `"`r(levels)'"' diff --git a/changelog.md b/changelog.md index 7eb9090d..fec70afb 100644 --- a/changelog.md +++ b/changelog.md @@ -25,7 +25,7 @@ passed. Final TODOs: [X] Windows with Stata 13 [X] Windows with Stata 15 [X] Linux with Stata 15 - [ ] OSX with Stata 14 + [X] OSX with Stata 14 [X] Read the documentation (Stata) [X] Read the documentation (online) diff --git a/docs/usage/gtools.md b/docs/usage/gtools.md index 8d96e89f..3de530ec 100644 --- a/docs/usage/gtools.md +++ b/docs/usage/gtools.md @@ -26,7 +26,7 @@ Syntax gtools [, options] ``` -See `gtools, examples` for examples of hwo to use available gtools functions. +See `gtools, examples` for examples of how to use available gtools functions. Options ------- diff --git a/src/ado/_gtools_internal.ado b/src/ado/_gtools_internal.ado index 9135bbf2..f5799517 100644 --- a/src/ado/_gtools_internal.ado +++ b/src/ado/_gtools_internal.ado @@ -2729,6 +2729,7 @@ program parse_by_types, rclass exit 17005 } cap scalar drop __gtools_k_strL + * disp as txt "(note: performance with strL variables is not optimized)" } else if ( ("`varstrL'" != "") & ("`forcestrl'" == "") ) { disp as err _n(1) "gtools failed to parse strL variables." diff --git a/src/ado/gtools.ado b/src/ado/gtools.ado index fc7d0447..60e280ae 100644 --- a/src/ado/gtools.ado +++ b/src/ado/gtools.ado @@ -8,11 +8,6 @@ program gtools if ( inlist("`c(os)'", "MacOSX") | strpos("`c(machine_type)'", "Mac") ) local c_os_ macosx else local c_os_: di lower("`c(os)'") - if inlist("`c_os_'", "macosx") { - di as err "Not available for MacOSX." - exit 198 - } - syntax, [ /// LICENSEs /// Verbose /// @@ -96,7 +91,7 @@ program gtools if ( ("`install_latest'" == "install_latest") | ("`upgrade'" == "upgrade") ) { cap net uninstall gtools net install gtools, from(`github'/build) replace - gtools, dependencies replace + * gtools, dependencies replace if ( `"`hashlib'`dll'`showcase'`examples'`test'"' == `""' ) { exit 0 } @@ -180,12 +175,16 @@ program gtools if ( "`test'" != "" ) { disp as txt "{bf:WARNING:} Unit tests from branch `branch' take 1-3 hours!" - disp as txt "Are you sure you want to run them? (yes/no)", _request(yesno) - if inlist("`yesno'", "y", "yes") { + disp as txt "Are you sure you want to run them? (yes/no)", _request(GTOOLS_TESTS) + if inlist(`"${GTOOLS_TESTS}"', "y", "yes") { + global GTOOLS_TESTS cap noi do `github'/build/gtools_tests.do exit _rc } - else exit 0 + else exit { + global GTOOLS_TESTS + 0 + } } display "Nothing to do. See {stata help gtools} or {stata gtools, examples} for usage. Version info:" diff --git a/src/ado/gtoplevelsof.ado b/src/ado/gtoplevelsof.ado index f94ca990..8652bf98 100644 --- a/src/ado/gtoplevelsof.ado +++ b/src/ado/gtoplevelsof.ado @@ -219,8 +219,8 @@ program gtoplevelsof, rclass if ( "`local'" != "" ) c_local `local' `"`r(levels)'"' if ( "`matrix'" != "" ) matrix `matrix' = `gmat' - if ( `c(MP)' & (`r(J)' < 50) & ("`warning'" != "nowarning") ) { - disp as txt "(Note: {cmd:tab} is often faster than {cmd:gtop} with few groups.)" + if ( `c(MP)' & (`r(J)' < 20) & ("`warning'" != "nowarning") & (`:list sizeof varlist' == 1) ) { + disp as txt "(Note: {cmd:tab} can be faster than {cmd:gtop} with few groups.)" } return local levels `"`r(levels)'"' diff --git a/src/test/gtools_tests_unix.log b/src/test/gtools_tests_unix.log index 0313fd74..36a6b2d6 100644 --- a/src/test/gtools_tests_unix.log +++ b/src/test/gtools_tests_unix.log @@ -1,11 +1,11 @@ --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- name: gtools_tests - log: /home/mauricio/Documents/projects/dev/code/archive/2017/stata-gtools/build/gtools_tests_unix.log + log: /home/mauricio/gtools_tests_unix.log log type: text - opened on: 22 Jul 2018, 14:56:11 + opened on: 23 Jul 2018, 15:31:52 -Start: 14:56:11 22 Jul 2018 +Start: 15:31:52 23 Jul 2018 Options: dependencies basic_checks comparisons switches bench_test OS: Unix Machine Type: PC (64-bit x86-64) @@ -13,7 +13,7 @@ Machine Type: PC (64-bit x86-64) (library saved in ~/ado/plus/l/lftools.mlib) ------------------------------------- -Basic unit-tests 14:56:18 22 Jul 2018 +Basic unit-tests 15:32:15 23 Jul 2018 ------------------------------------- test(passed): checks_gcontract, oncollision(error) test(passed): checks_isid, oncollision(error) @@ -45,7 +45,7 @@ Basic unit-tests 14:56:18 22 Jul 2018 test(passed): checks_corners, oncollision(error) ----------------------------------------------------------- -Consistency checks (v native commands) 15:06:05 22 Jul 2018 +Consistency checks (v native commands) 15:42:09 23 Jul 2018 ----------------------------------------------------------- @@ -253,7 +253,7 @@ compare_isid, N = 100,000, oncollision(error) Checking duplicates; varlist = str_12 ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- +------------------------------------------------------------------------------------------------------------------------------------------------------------- compare_gduplicates (passed): report yielded identical results compare_gduplicates (passed): tag yielded identical results compare_gduplicates (passed): drop yielded identical results @@ -269,7 +269,7 @@ Checking duplicates; varlist = str_12 Checking duplicates; varlist = str_12 str_32 ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- +------------------------------------------------------------------------------------------------------------------------------------------------------------- compare_gduplicates (passed): report yielded identical results compare_gduplicates (passed): tag yielded identical results compare_gduplicates (passed): drop yielded identical results @@ -285,7 +285,7 @@ Checking duplicates; varlist = str_12 str_32 Checking duplicates; varlist = str_12 str_32 str_4 ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- +------------------------------------------------------------------------------------------------------------------------------------------------------------- compare_gduplicates (passed): report yielded identical results compare_gduplicates (passed): tag yielded identical results compare_gduplicates (passed): drop yielded identical results @@ -301,7 +301,7 @@ Checking duplicates; varlist = str_12 str_32 str_4 Checking duplicates; varlist = double1 ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- +------------------------------------------------------------------------------------------------------------------------------------------------------------- compare_gduplicates (passed): report yielded identical results compare_gduplicates (passed): tag yielded identical results compare_gduplicates (passed): drop yielded identical results @@ -317,7 +317,7 @@ Checking duplicates; varlist = double1 Checking duplicates; varlist = double1 double2 ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- +------------------------------------------------------------------------------------------------------------------------------------------------------------- compare_gduplicates (passed): report yielded identical results compare_gduplicates (passed): tag yielded identical results compare_gduplicates (passed): drop yielded identical results @@ -333,7 +333,7 @@ Checking duplicates; varlist = double1 double2 Checking duplicates; varlist = double1 double2 double3 ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- +------------------------------------------------------------------------------------------------------------------------------------------------------------- compare_gduplicates (passed): report yielded identical results compare_gduplicates (passed): tag yielded identical results compare_gduplicates (passed): drop yielded identical results @@ -349,7 +349,7 @@ Checking duplicates; varlist = double1 double2 double3 Checking duplicates; varlist = int1 ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- +------------------------------------------------------------------------------------------------------------------------------------------------------------- compare_gduplicates (passed): report yielded identical results compare_gduplicates (passed): tag yielded identical results compare_gduplicates (passed): drop yielded identical results @@ -365,7 +365,7 @@ Checking duplicates; varlist = int1 Checking duplicates; varlist = int1 int2 ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- +------------------------------------------------------------------------------------------------------------------------------------------------------------- compare_gduplicates (passed): report yielded identical results compare_gduplicates (passed): tag yielded identical results compare_gduplicates (passed): drop yielded identical results @@ -381,7 +381,7 @@ Checking duplicates; varlist = int1 int2 Checking duplicates; varlist = int1 int2 int3 ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- +------------------------------------------------------------------------------------------------------------------------------------------------------------- compare_gduplicates (passed): report yielded identical results compare_gduplicates (passed): tag yielded identical results compare_gduplicates (passed): drop yielded identical results @@ -397,7 +397,7 @@ Checking duplicates; varlist = int1 int2 int3 Checking duplicates; varlist = int1 str_32 double1 ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- +------------------------------------------------------------------------------------------------------------------------------------------------------------- compare_gduplicates (passed): report yielded identical results compare_gduplicates (passed): tag yielded identical results compare_gduplicates (passed): drop yielded identical results @@ -413,7 +413,7 @@ Checking duplicates; varlist = int1 str_32 double1 Checking duplicates; varlist = int1 str_32 double1 int2 str_12 double2 ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- +------------------------------------------------------------------------------------------------------------------------------------------------------------- compare_gduplicates (passed): report yielded identical results compare_gduplicates (passed): tag yielded identical results compare_gduplicates (passed): drop yielded identical results @@ -429,7 +429,7 @@ Checking duplicates; varlist = int1 str_32 double1 int2 str_12 double2 Checking duplicates; varlist = int1 str_32 double1 int2 str_12 double2 int3 str_4 double3 ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- +------------------------------------------------------------------------------------------------------------------------------------------------------------- compare_gduplicates (passed): report yielded identical results compare_gduplicates (passed): tag yielded identical results compare_gduplicates (passed): drop yielded identical results @@ -626,10 +626,14 @@ compare_levelsof_gen, N = 100,000, oncollision(error) compare_levelsof (passed): glevelsof int1 str_32 double1 int2 str_12 double2 [if] [in], gen(, replace) returned the same levels as duplicates drop - compare_levelsof (passed): glevelsof int1 str_32 double1 int2 str_12 double2 int3 str_4 double3, gen(, replace) returned the same levels as duplicates drop - compare_levelsof (passed): glevelsof int1 str_32 double1 int2 str_12 double2 int3 str_4 double3 [if], gen(, replace) returned the same levels as duplicates drop - compare_levelsof (passed): glevelsof int1 str_32 double1 int2 str_12 double2 int3 str_4 double3 [in], gen(, replace) returned the same levels as duplicates drop - compare_levelsof (passed): glevelsof int1 str_32 double1 int2 str_12 double2 int3 str_4 double3 [if] [in], gen(, replace) returned the same levels as duplicates drop + compare_levelsof (passed): glevelsof int1 str_32 double1 int2 str_12 double2 int3 str_4 double3, gen(, replace) returned the same levels as duplicates d +> rop + compare_levelsof (passed): glevelsof int1 str_32 double1 int2 str_12 double2 int3 str_4 double3 [if], gen(, replace) returned the same levels as duplica +> tes drop + compare_levelsof (passed): glevelsof int1 str_32 double1 int2 str_12 double2 int3 str_4 double3 [in], gen(, replace) returned the same levels as duplica +> tes drop + compare_levelsof (passed): glevelsof int1 str_32 double1 int2 str_12 double2 int3 str_4 double3 [if] [in], gen(, replace) returned the same levels as du +> plicates drop @@ -775,19 +779,26 @@ compare_distinct, N = 100,000, oncollision(error) compare_distinct (passed): distinct and gdistinct ix int1 str_32 double1 int2 str_12 double2 if _n < 50000 gave the same number of levels compare_distinct (passed): distinct and gdistinct ix int1 str_32 double1 int2 str_12 double2 if _n > 50000 gave the same number of levels compare_distinct (passed): distinct and gdistinct ix int1 str_32 double1 int2 str_12 double2 if _n < 25000 in 100 / 50000 gave the same number of levels - compare_distinct (passed): distinct and gdistinct ix int1 str_32 double1 int2 str_12 double2 if _n > 25000 in 66667 / 100000 gave the same number of levels + compare_distinct (passed): distinct and gdistinct ix int1 str_32 double1 int2 str_12 double2 if _n > 25000 in 66667 / 100000 gave the same number of leve +> ls compare_distinct (passed): distinct and gdistinct int1 str_32 double1 int2 str_12 double2 int3 str_4 double3 gave the same number of levels compare_distinct (passed): distinct and gdistinct ix int1 str_32 double1 int2 str_12 double2 int3 str_4 double3 gave the same number of levels compare_distinct (passed): distinct and gdistinct rsort int1 str_32 double1 int2 str_12 double2 int3 str_4 double3 gave the same number of levels compare_distinct (passed): distinct and gdistinct ix gave the same number of levels - compare_distinct (passed): distinct and gdistinct ix int1 str_32 double1 int2 str_12 double2 int3 str_4 double3 in 100 / 50000 gave the same number of levels - compare_distinct (passed): distinct and gdistinct ix int1 str_32 double1 int2 str_12 double2 int3 str_4 double3 in 50000 / 100000 gave the same number of levels - compare_distinct (passed): distinct and gdistinct ix int1 str_32 double1 int2 str_12 double2 int3 str_4 double3 if _n < 50000 gave the same number of levels - compare_distinct (passed): distinct and gdistinct ix int1 str_32 double1 int2 str_12 double2 int3 str_4 double3 if _n > 50000 gave the same number of levels - compare_distinct (passed): distinct and gdistinct ix int1 str_32 double1 int2 str_12 double2 int3 str_4 double3 if _n < 25000 in 100 / 50000 gave the same number of levels - compare_distinct (passed): distinct and gdistinct ix int1 str_32 double1 int2 str_12 double2 int3 str_4 double3 if _n > 25000 in 66667 / 100000 gave the same number of levels + compare_distinct (passed): distinct and gdistinct ix int1 str_32 double1 int2 str_12 double2 int3 str_4 double3 in 100 / 50000 gave the same number of le +> vels + compare_distinct (passed): distinct and gdistinct ix int1 str_32 double1 int2 str_12 double2 int3 str_4 double3 in 50000 / 100000 gave the same number of +> levels + compare_distinct (passed): distinct and gdistinct ix int1 str_32 double1 int2 str_12 double2 int3 str_4 double3 if _n < 50000 gave the same number of lev +> els + compare_distinct (passed): distinct and gdistinct ix int1 str_32 double1 int2 str_12 double2 int3 str_4 double3 if _n > 50000 gave the same number of lev +> els + compare_distinct (passed): distinct and gdistinct ix int1 str_32 double1 int2 str_12 double2 int3 str_4 double3 if _n < 25000 in 100 / 50000 gave the sam +> e number of levels + compare_distinct (passed): distinct and gdistinct ix int1 str_32 double1 int2 str_12 double2 int3 str_4 double3 if _n > 25000 in 66667 / 100000 gave the +> same number of levels @@ -795,35 +806,35 @@ compare_distinct, N = 100,000, oncollision(error) Comparison vs gsort, obs = 10,000, J = 1,000 (in seconds; datasets are compared via cf) gsort | hashsort | ratio (g/h) | varlist ----- | -------- | ----------- | ------- - .035 | .006 | 5.83 | -str_12 - .034 | .013 | 2.62 | str_12 -str_32 - .041 | .008 | 5.13 | str_12 -str_32 str_4 - .028 | .005 | 5.6 | -double1 - .046 | .011 | 4.18 | double1 -double2 - .056 | .007 | 8 | double1 -double2 double3 - .029 | .004 | 7.25 | -int1 - .033 | .007 | 4.71 | int1 -int2 - .033 | .008 | 4.13 | int1 -int2 int3 - .054 | .007 | 7.71 | -int1 -str_32 -double1 - .055 | .009 | 6.11 | int1 -str_32 double1 -int2 str_12 -double2 - .075 | .012 | 6.25 | int1 -str_32 double1 -int2 str_12 -double2 int3 -str_4 double3 + .079 | .012 | 6.58 | -str_12 + .034 | .008 | 4.25 | str_12 -str_32 + .044 | .008 | 5.5 | str_12 -str_32 str_4 + .04 | .005 | 8 | -double1 + .034 | .006 | 5.67 | double1 -double2 + .051 | .017 | 3 | double1 -double2 double3 + .07 | .014 | 5 | -int1 + .092 | .014 | 6.57 | int1 -int2 + .101 | .016 | 6.31 | int1 -int2 int3 + .187 | .029 | 6.45 | -int1 -str_32 -double1 + .2 | .026 | 7.69 | int1 -str_32 double1 -int2 str_12 -double2 + .251 | .024 | 10.5 | int1 -str_32 double1 -int2 str_12 -double2 int3 -str_4 double3 Comparison vs sort (stable), obs = 100,000, J = 1,000 (in seconds; datasets are compared via cf) sort | fsort | hashsort | ratio (s/h) | ratio (f/h) | varlist ---- | ----- | -------- | ----------- | ----------- | ------- - .175 | .169 | .054 | 3.24 | 3.13 | str_12 - .234 | .237 | .076 | 3.08 | 3.12 | str_12 str_32 - .229 | .244 | .109 | 2.1 | 2.24 | str_12 str_32 str_4 - .214 | .134 | .094 | 2.28 | 1.43 | double1 - .159 | .131 | .077 | 2.06 | 1.7 | double1 double2 - .192 | .22 | .097 | 1.98 | 2.27 | double1 double2 double3 - .25 | .095 | .074 | 3.38 | 1.28 | int1 - .169 | .091 | .053 | 3.19 | 1.72 | int1 int2 - .173 | .17 | .085 | 2.04 | 2 | int1 int2 int3 - .274 | . | .081 | 3.38 | . | int1 str_32 double1 - .194 | . | .098 | 1.98 | . | int1 str_32 double1 int2 str_12 double2 - .394 | . | .107 | 3.68 | . | int1 str_32 double1 int2 str_12 double2 int3 str_4 double3 + .413 | .277 | .135 | 3.06 | 2.05 | str_12 + .189 | .32 | .076 | 2.49 | 4.21 | str_12 str_32 + .247 | .839 | .087 | 2.84 | 9.64 | str_12 str_32 str_4 + .442 | .265 | .19 | 2.33 | 1.39 | double1 + .31 | .296 | .156 | 1.99 | 1.9 | double1 double2 + .367 | .433 | .134 | 2.74 | 3.23 | double1 double2 double3 + .229 | .248 | .05 | 4.58 | 4.96 | int1 + .198 | .275 | .092 | 2.15 | 2.99 | int1 int2 + .205 | .298 | .068 | 3.01 | 4.38 | int1 int2 int3 + .231 | . | .109 | 2.12 | . | int1 str_32 double1 + .18 | . | .095 | 1.89 | . | int1 str_32 double1 int2 str_12 double2 + .207 | . | .103 | 2.01 | . | int1 str_32 double1 int2 str_12 double2 int3 str_4 double3 -------------------------------------------------------------------------------- compare_hashsort, oncollision(error) @@ -849,103 +860,103 @@ Checking egen. N = 10,000; varlist = ------------------------------------- Checking full egen range: - compare_egen (passed): gegen total results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 3.0e-03, ratio .6) - compare_egen (passed): gegen sum results similar to egen (tol = 1.00000000000e-06; 4.0e-03 vs 4.0e-03, ratio 1) - compare_egen (passed): gegen mean results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 3.0e-03, ratio .6) - compare_egen (passed): gegen sd results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.1e-02, ratio 2.2) - compare_egen (passed): gegen max results similar to egen (tol = 1.00000000000e-06; 1.1e-02 vs 3.6e-02, ratio 3.3) - compare_egen (passed): gegen min results similar to egen (tol = 1.00000000000e-06; 1.3e-02 vs 3.4e-02, ratio 2.6) - compare_egen (passed): gegen count results similar to egen (tol = 1.00000000000e-06; 1.0e-02 vs 8.0e-03, ratio .8) - compare_egen (passed): gegen median results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.6e-02, ratio 2.7) - compare_egen (passed): gegen iqr results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.5e-02, ratio 3) - compare_egen (passed): gegen skew results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 9.0e-03, ratio 1.8) - compare_egen (passed): gegen kurt results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 9.0e-03, ratio 1.8) - compare_egen (passed): gegen percentile 1 results similar to egen (tol = 1.00000000000e-06; 4.0e-03 vs 7.0e-03, ratio 1.8) - compare_egen (passed): gegen percentile 10 results similar to egen (tol = 1.00000000000e-06; 4.0e-03 vs 6.0e-03, ratio 1.5) + compare_egen (passed): gegen total results similar to egen (tol = 1.00000000000e-06; 4.0e-03 vs 3.0e-03, ratio .75) + compare_egen (passed): gegen sum results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 9.0e-03, ratio 1.8) + compare_egen (passed): gegen mean results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 4.0e-03, ratio .57) + compare_egen (passed): gegen sd results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 5.0e-03, ratio .83) + compare_egen (passed): gegen max results similar to egen (tol = 1.00000000000e-06; 4.0e-03 vs 1.1e-02, ratio 2.8) + compare_egen (passed): gegen min results similar to egen (tol = 1.00000000000e-06; 4.0e-03 vs 9.0e-03, ratio 2.3) + compare_egen (passed): gegen count results similar to egen (tol = 1.00000000000e-06; 3.0e-03 vs 4.0e-03, ratio 1.3) + compare_egen (passed): gegen median results similar to egen (tol = 1.00000000000e-06; 3.0e-03 vs 1.3e-02, ratio 4.3) + compare_egen (passed): gegen iqr results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.9e-02, ratio 3.8) + compare_egen (passed): gegen skew results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.1e-02, ratio 1.8) + compare_egen (passed): gegen kurt results similar to egen (tol = 1.00000000000e-06; 4.0e-03 vs 8.0e-03, ratio 2) + compare_egen (passed): gegen percentile 1 results similar to egen (tol = 1.00000000000e-06; 3.0e-03 vs 6.0e-03, ratio 2) + compare_egen (passed): gegen percentile 10 results similar to egen (tol = 1.00000000000e-06; 4.0e-03 vs 5.0e-03, ratio 1.3) compare_egen (passed): gegen percentile 30 results similar to egen (tol = 1.00000000000e-06; 4.0e-03 vs 6.0e-03, ratio 1.5) - compare_egen (passed): gegen percentile 50 results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 7.0e-03, ratio 1.4) - compare_egen (passed): gegen percentile 70 results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 6.0e-03, ratio 1.2) - compare_egen (passed): gegen percentile 90 results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 6.0e-03, ratio 1.2) - compare_egen (passed): gegen percentile 99 results similar to egen (tol = 1.00000000000e-06; 4.0e-03 vs 6.0e-03, ratio 1.5) - compare_egen (passed): gegen tag results similar to egen (tol = 1.00000000000e-06; 2.0e-03 vs 3.0e-03, ratio 1.5) + compare_egen (passed): gegen percentile 50 results similar to egen (tol = 1.00000000000e-06; 3.0e-03 vs 5.0e-03, ratio 1.7) + compare_egen (passed): gegen percentile 70 results similar to egen (tol = 1.00000000000e-06; 4.0e-03 vs 6.0e-03, ratio 1.5) + compare_egen (passed): gegen percentile 90 results similar to egen (tol = 1.00000000000e-06; 4.0e-03 vs 1.2e-02, ratio 3) + compare_egen (passed): gegen percentile 99 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 9.0e-03, ratio 1.5) + compare_egen (passed): gegen tag results similar to egen (tol = 1.00000000000e-06; 3.0e-03 vs 2.0e-03, ratio .67) compare_egen (passed): gegen tag, missing results similar to egen (tol = 1.00000000000e-06; 3.0e-03 vs 2.0e-03, ratio .67) compare_egen (passed): gegen group results similar to egen (tol = 1.00000000000e-06; 3.0e-03 vs 3.0e-03, ratio 1) - compare_egen (passed): gegen group, missing results similar to egen (tol = 1.00000000000e-06; 3.0e-03 vs 3.0e-03, ratio 1) + compare_egen (passed): gegen group, missing results similar to egen (tol = 1.00000000000e-06; 4.0e-03 vs 2.0e-03, ratio .5) compare_egen (passed): gegen counts results similar to gegen count (tol = 1.00000000000e-06) Checking [ in 1505/9157] egen range: - compare_egen (passed): gegen total results similar to egen (tol = 1.00000000000e-06; 4.0e-03 vs 7.0e-03, ratio 1.8) - compare_egen (passed): gegen sum results similar to egen (tol = 1.00000000000e-06; 4.0e-03 vs 7.0e-03, ratio 1.8) - compare_egen (passed): gegen mean results similar to egen (tol = 1.00000000000e-06; 4.0e-03 vs 7.0e-03, ratio 1.8) - compare_egen (passed): gegen sd results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 8.0e-03, ratio 1.6) - compare_egen (passed): gegen max results similar to egen (tol = 1.00000000000e-06; 4.0e-03 vs 1.4e-02, ratio 3.5) - compare_egen (passed): gegen min results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 2.1e-02, ratio 4.2) - compare_egen (passed): gegen count results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.4e-02, ratio 3) - compare_egen (passed): gegen median results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 1.8e-02, ratio 2) - compare_egen (passed): gegen iqr results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 3.2e-02, ratio 6.4) - compare_egen (passed): gegen skew results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.1e-02, ratio 2.2) - compare_egen (passed): gegen kurt results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.1e-02, ratio 2.2) - compare_egen (passed): gegen percentile 1 results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 5.0e-03, ratio 1) - compare_egen (passed): gegen percentile 10 results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 5.0e-03, ratio 1) - compare_egen (passed): gegen percentile 30 results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 5.0e-03, ratio 1) + compare_egen (passed): gegen total results similar to egen (tol = 1.00000000000e-06; 4.0e-03 vs 8.0e-03, ratio 2) + compare_egen (passed): gegen sum results similar to egen (tol = 1.00000000000e-06; 4.0e-03 vs 5.0e-03, ratio 1.3) + compare_egen (passed): gegen mean results similar to egen (tol = 1.00000000000e-06; 4.0e-03 vs 6.0e-03, ratio 1.5) + compare_egen (passed): gegen sd results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 1.7e-02, ratio 2.4) + compare_egen (passed): gegen max results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.3e-02, ratio 3.8) + compare_egen (passed): gegen min results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.0e-02, ratio 2) + compare_egen (passed): gegen count results similar to egen (tol = 1.00000000000e-06; 4.0e-03 vs 5.0e-03, ratio 1.3) + compare_egen (passed): gegen median results similar to egen (tol = 1.00000000000e-06; 4.0e-03 vs 1.0e-02, ratio 2.5) + compare_egen (passed): gegen iqr results similar to egen (tol = 1.00000000000e-06; 4.0e-03 vs 2.3e-02, ratio 5.8) + compare_egen (passed): gegen skew results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.0e-02, ratio 2) + compare_egen (passed): gegen kurt results similar to egen (tol = 1.00000000000e-06; 3.0e-03 vs 9.0e-03, ratio 3) + compare_egen (passed): gegen percentile 1 results similar to egen (tol = 1.00000000000e-06; 4.0e-03 vs 4.0e-03, ratio 1) + compare_egen (passed): gegen percentile 10 results similar to egen (tol = 1.00000000000e-06; 3.0e-03 vs 4.0e-03, ratio 1.3) + compare_egen (passed): gegen percentile 30 results similar to egen (tol = 1.00000000000e-06; 3.0e-03 vs 5.0e-03, ratio 1.7) compare_egen (passed): gegen percentile 50 results similar to egen (tol = 1.00000000000e-06; 4.0e-03 vs 5.0e-03, ratio 1.3) - compare_egen (passed): gegen percentile 70 results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 5.0e-03, ratio 1) - compare_egen (passed): gegen percentile 90 results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 5.0e-03, ratio 1) - compare_egen (passed): gegen percentile 99 results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.7e-02, ratio 3.4) - compare_egen (passed): gegen tag results similar to egen (tol = 1.00000000000e-06; 4.0e-03 vs 2.8e-02, ratio 7) - compare_egen (passed): gegen tag, missing results similar to egen (tol = 1.00000000000e-06; 4.0e-03 vs 1.3e-02, ratio 3.3) - compare_egen (passed): gegen group results similar to egen (tol = 1.00000000000e-06; 4.0e-03 vs 8.0e-03, ratio 2) - compare_egen (passed): gegen group, missing results similar to egen (tol = 1.00000000000e-06; 4.0e-03 vs 6.0e-03, ratio 1.5) + compare_egen (passed): gegen percentile 70 results similar to egen (tol = 1.00000000000e-06; 4.0e-03 vs 6.0e-03, ratio 1.5) + compare_egen (passed): gegen percentile 90 results similar to egen (tol = 1.00000000000e-06; 3.0e-03 vs 1.1e-02, ratio 3.7) + compare_egen (passed): gegen percentile 99 results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 8.0e-03, ratio 1.6) + compare_egen (passed): gegen tag results similar to egen (tol = 1.00000000000e-06; 4.0e-03 vs 9.0e-03, ratio 2.3) + compare_egen (passed): gegen tag, missing results similar to egen (tol = 1.00000000000e-06; 3.0e-03 vs 9.0e-03, ratio 3) + compare_egen (passed): gegen group results similar to egen (tol = 1.00000000000e-06; 3.0e-03 vs 5.0e-03, ratio 1.7) + compare_egen (passed): gegen group, missing results similar to egen (tol = 1.00000000000e-06; 3.0e-03 vs 6.0e-03, ratio 2) compare_egen (passed): gegen counts results similar to gegen count (tol = 1.00000000000e-06) Checking [if random2 > 0 ] egen range: - compare_egen (passed): gegen total results similar to egen (tol = 1.00000000000e-06; 1.0e-02 vs 3.3e-02, ratio 3.3) - compare_egen (passed): gegen sum results similar to egen (tol = 1.00000000000e-06; 1.3e-02 vs 2.3e-02, ratio 1.8) - compare_egen (passed): gegen mean results similar to egen (tol = 1.00000000000e-06; 1.0e-02 vs 1.7e-02, ratio 1.7) - compare_egen (passed): gegen sd results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.1e-02, ratio 1.8) - compare_egen (passed): gegen max results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.4e-02, ratio 2.3) - compare_egen (passed): gegen min results similar to egen (tol = 1.00000000000e-06; 4.0e-03 vs 1.6e-02, ratio 4) - compare_egen (passed): gegen count results similar to egen (tol = 1.00000000000e-06; 1.0e-02 vs 2.3e-02, ratio 2.3) - compare_egen (passed): gegen median results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 2.3e-02, ratio 2.6) - compare_egen (passed): gegen iqr results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 1.7e-02, ratio 2.1) - compare_egen (passed): gegen skew results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 1.8e-02, ratio 2) - compare_egen (passed): gegen kurt results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 1.2e-02, ratio 1.7) - compare_egen (passed): gegen percentile 1 results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 5.0e-03, ratio 1) - compare_egen (passed): gegen percentile 10 results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 5.0e-03, ratio 1) - compare_egen (passed): gegen percentile 30 results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 7.0e-03, ratio .88) - compare_egen (passed): gegen percentile 50 results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 5.0e-03, ratio 1) - compare_egen (passed): gegen percentile 70 results similar to egen (tol = 1.00000000000e-06; 1.0e-02 vs 8.0e-03, ratio .8) - compare_egen (passed): gegen percentile 90 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 7.0e-03, ratio 1.2) - compare_egen (passed): gegen percentile 99 results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 5.0e-03, ratio 1) - compare_egen (passed): gegen tag results similar to egen (tol = 1.00000000000e-06; 4.0e-03 vs 1.2e-02, ratio 3) - compare_egen (passed): gegen tag, missing results similar to egen (tol = 1.00000000000e-06; 4.0e-03 vs 2.8e-02, ratio 7) - compare_egen (passed): gegen group results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 3.1e-02, ratio 3.9) - compare_egen (passed): gegen group, missing results similar to egen (tol = 1.00000000000e-06; 1.0e-02 vs 1.6e-02, ratio 1.6) + compare_egen (passed): gegen total results similar to egen (tol = 1.00000000000e-06; 4.0e-03 vs 6.0e-03, ratio 1.5) + compare_egen (passed): gegen sum results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.1e-02, ratio 3.5) + compare_egen (passed): gegen mean results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 1.0e-02, ratio 1.4) + compare_egen (passed): gegen sd results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.3e-02, ratio 2.6) + compare_egen (passed): gegen max results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.6e-02, ratio 2.7) + compare_egen (passed): gegen min results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.1e-02, ratio 3.5) + compare_egen (passed): gegen count results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 1.4e-02, ratio 1.6) + compare_egen (passed): gegen median results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.0e-02, ratio 3.3) + compare_egen (passed): gegen iqr results similar to egen (tol = 1.00000000000e-06; 1.4e-02 vs 2.8e-02, ratio 2) + compare_egen (passed): gegen skew results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.1e-02, ratio 3) + compare_egen (passed): gegen kurt results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.8e-02, ratio 3) + compare_egen (passed): gegen percentile 1 results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 9.0e-03, ratio 1.1) + compare_egen (passed): gegen percentile 10 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 5.0e-03, ratio .71) + compare_egen (passed): gegen percentile 30 results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.2e-02, ratio 2.4) + compare_egen (passed): gegen percentile 50 results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 8.0e-03, ratio 1) + compare_egen (passed): gegen percentile 70 results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 9.0e-03, ratio 1) + compare_egen (passed): gegen percentile 90 results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 6.0e-03, ratio 1.2) + compare_egen (passed): gegen percentile 99 results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 4.0e-03, ratio .8) + compare_egen (passed): gegen tag results similar to egen (tol = 1.00000000000e-06; 4.0e-03 vs 9.0e-03, ratio 2.3) + compare_egen (passed): gegen tag, missing results similar to egen (tol = 1.00000000000e-06; 4.0e-03 vs 1.0e-02, ratio 2.5) + compare_egen (passed): gegen group results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.7e-02, ratio 3.4) + compare_egen (passed): gegen group, missing results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 9.0e-03, ratio 1.8) compare_egen (passed): gegen counts results similar to gegen count (tol = 1.00000000000e-06) Checking [if random2 < 0 in 1777/7989] egen range: - compare_egen (passed): gegen total results similar to egen (tol = 1.00000000000e-06; 4.0e-03 vs 9.0e-03, ratio 2.3) - compare_egen (passed): gegen sum results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.0e-02, ratio 2) - compare_egen (passed): gegen mean results similar to egen (tol = 1.00000000000e-06; 4.0e-03 vs 1.0e-02, ratio 2.5) - compare_egen (passed): gegen sd results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 2.6e-02, ratio 5.2) - compare_egen (passed): gegen max results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 4.3e-02, ratio 6.1) - compare_egen (passed): gegen min results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 3.5e-02, ratio 3.9) - compare_egen (passed): gegen count results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 1.4e-02, ratio 1.6) - compare_egen (passed): gegen median results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 2.5e-02, ratio 5) - compare_egen (passed): gegen iqr results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 1.3e-02, ratio 1.4) - compare_egen (passed): gegen skew results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 8.0e-03, ratio 1.6) - compare_egen (passed): gegen kurt results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.0e-02, ratio 2) - compare_egen (passed): gegen percentile 1 results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 4.0e-03, ratio .8) - compare_egen (passed): gegen percentile 10 results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 4.0e-03, ratio .8) - compare_egen (passed): gegen percentile 30 results similar to egen (tol = 1.00000000000e-06; 1.0e-02 vs 7.0e-03, ratio .7) - compare_egen (passed): gegen percentile 50 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 5.0e-03, ratio .71) - compare_egen (passed): gegen percentile 70 results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 4.0e-03, ratio .8) - compare_egen (passed): gegen percentile 90 results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 8.0e-03, ratio 1.6) - compare_egen (passed): gegen percentile 99 results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 7.0e-03, ratio .88) - compare_egen (passed): gegen tag results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.0e-02, ratio 2) - compare_egen (passed): gegen tag, missing results similar to egen (tol = 1.00000000000e-06; 3.0e-03 vs 1.0e-02, ratio 3.3) - compare_egen (passed): gegen group results similar to egen (tol = 1.00000000000e-06; 3.0e-03 vs 8.0e-03, ratio 2.7) - compare_egen (passed): gegen group, missing results similar to egen (tol = 1.00000000000e-06; 4.0e-03 vs 7.0e-03, ratio 1.8) + compare_egen (passed): gegen total results similar to egen (tol = 1.00000000000e-06; 4.0e-03 vs 8.0e-03, ratio 2) + compare_egen (passed): gegen sum results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 1.8e-02, ratio 2.6) + compare_egen (passed): gegen mean results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 2.1e-02, ratio 4.2) + compare_egen (passed): gegen sd results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.1e-02, ratio 2.6) + compare_egen (passed): gegen max results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 1.3e-02, ratio 1.9) + compare_egen (passed): gegen min results similar to egen (tol = 1.00000000000e-06; 3.0e-03 vs 1.0e-02, ratio 3.3) + compare_egen (passed): gegen count results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 5.0e-03, ratio 1) + compare_egen (passed): gegen median results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 1.8e-02, ratio 2.6) + compare_egen (passed): gegen iqr results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 7.0e-03, ratio 1.4) + compare_egen (passed): gegen skew results similar to egen (tol = 1.00000000000e-06; 4.0e-03 vs 7.0e-03, ratio 1.8) + compare_egen (passed): gegen kurt results similar to egen (tol = 1.00000000000e-06; 4.0e-03 vs 6.0e-03, ratio 1.5) + compare_egen (passed): gegen percentile 1 results similar to egen (tol = 1.00000000000e-06; 4.0e-03 vs 3.0e-03, ratio .75) + compare_egen (passed): gegen percentile 10 results similar to egen (tol = 1.00000000000e-06; 3.0e-03 vs 3.0e-03, ratio 1) + compare_egen (passed): gegen percentile 30 results similar to egen (tol = 1.00000000000e-06; 3.0e-03 vs 3.0e-03, ratio 1) + compare_egen (passed): gegen percentile 50 results similar to egen (tol = 1.00000000000e-06; 3.0e-03 vs 3.0e-03, ratio 1) + compare_egen (passed): gegen percentile 70 results similar to egen (tol = 1.00000000000e-06; 4.0e-03 vs 2.0e-03, ratio .5) + compare_egen (passed): gegen percentile 90 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 7.0e-03, ratio 1) + compare_egen (passed): gegen percentile 99 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 4.0e-03, ratio .67) + compare_egen (passed): gegen tag results similar to egen (tol = 1.00000000000e-06; 4.0e-03 vs 9.0e-03, ratio 2.3) + compare_egen (passed): gegen tag, missing results similar to egen (tol = 1.00000000000e-06; 3.0e-03 vs 1.6e-02, ratio 5.3) + compare_egen (passed): gegen group results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.1e-02, ratio 1.8) + compare_egen (passed): gegen group, missing results similar to egen (tol = 1.00000000000e-06; 3.0e-03 vs 5.0e-03, ratio 1.7) compare_egen (passed): gegen counts results similar to gegen count (tol = 1.00000000000e-06) @@ -953,103 +964,103 @@ Checking egen. N = 10,000; varlist = str_12 ------------------------------------------- Checking full egen range: str_12 - compare_egen (passed): gegen total results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.4e-02, ratio 3.4) - compare_egen (passed): gegen sum results similar to egen (tol = 1.00000000000e-06; 1.1e-02 vs 1.9e-02, ratio 1.7) - compare_egen (passed): gegen mean results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 1.9e-02, ratio 2.7) - compare_egen (passed): gegen sd results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.0e-02, ratio 3.3) - compare_egen (passed): gegen max results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 1.8e-02, ratio 2.6) - compare_egen (passed): gegen min results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 2.3e-02, ratio 2.6) - compare_egen (passed): gegen count results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.6e-02, ratio 3.3) - compare_egen (passed): gegen median results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 1.9e-02, ratio 2.1) - compare_egen (passed): gegen iqr results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 4.0e-02, ratio 6.7) - compare_egen (passed): gegen skew results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs .82, ratio 1.2e+02) - compare_egen (passed): gegen kurt results similar to egen (tol = 1.00000000000e-06; 1.3e-02 vs .94, ratio 72) - compare_egen (passed): gegen percentile 1 results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 4.1e-02, ratio 5.1) - compare_egen (passed): gegen percentile 10 results similar to egen (tol = 1.00000000000e-06; 1.2e-02 vs 2.6e-02, ratio 2.2) - compare_egen (passed): gegen percentile 30 results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 1.9e-02, ratio 2.4) - compare_egen (passed): gegen percentile 50 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 1.8e-02, ratio 2.6) - compare_egen (passed): gegen percentile 70 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 1.9e-02, ratio 2.7) - compare_egen (passed): gegen percentile 90 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.9e-02, ratio 3.2) - compare_egen (passed): gegen percentile 99 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 1.7e-02, ratio 2.4) - compare_egen (passed): gegen tag results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.6e-02, ratio 3.2) - compare_egen (passed): gegen tag, missing results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.5e-02, ratio 3) - compare_egen (passed): gegen group results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.4e-02, ratio 2.3) - compare_egen (passed): gegen group, missing results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.5e-02, ratio 3) + compare_egen (passed): gegen total results similar to egen (tol = 1.00000000000e-06; 1.0e-02 vs 1.9e-02, ratio 1.9) + compare_egen (passed): gegen sum results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.4e-02, ratio 2.3) + compare_egen (passed): gegen mean results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.3e-02, ratio 2.2) + compare_egen (passed): gegen sd results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 2.2e-02, ratio 4.4) + compare_egen (passed): gegen max results similar to egen (tol = 1.00000000000e-06; 1.0e-02 vs 2.3e-02, ratio 2.3) + compare_egen (passed): gegen min results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 1.6e-02, ratio 1.8) + compare_egen (passed): gegen count results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.3e-02, ratio 2.2) + compare_egen (passed): gegen median results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.6e-02, ratio 4.3) + compare_egen (passed): gegen iqr results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 8.3e-02, ratio 10) + compare_egen (passed): gegen skew results similar to egen (tol = 1.00000000000e-06; 1.0e-02 vs .96, ratio 96) + compare_egen (passed): gegen kurt results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs .96, ratio 1.6e+02) + compare_egen (passed): gegen percentile 1 results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.6e-02, ratio 3.2) + compare_egen (passed): gegen percentile 10 results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.5e-02, ratio 3) + compare_egen (passed): gegen percentile 30 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.6e-02, ratio 4.3) + compare_egen (passed): gegen percentile 50 results similar to egen (tol = 1.00000000000e-06; 1.0e-02 vs 1.9e-02, ratio 1.9) + compare_egen (passed): gegen percentile 70 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.6e-02, ratio 2.7) + compare_egen (passed): gegen percentile 90 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.6e-02, ratio 2.7) + compare_egen (passed): gegen percentile 99 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.2e-02, ratio 3.7) + compare_egen (passed): gegen tag results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 1.7e-02, ratio 2.4) + compare_egen (passed): gegen tag, missing results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.4e-02, ratio 2.8) + compare_egen (passed): gegen group results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.3e-02, ratio 2.6) + compare_egen (passed): gegen group, missing results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.2e-02, ratio 2.4) compare_egen (passed): gegen counts results similar to gegen count (tol = 1.00000000000e-06) Checking [ in 130/9396] egen range: str_12 - compare_egen (passed): gegen total results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.8e-02, ratio 3) - compare_egen (passed): gegen sum results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.1e-02, ratio 3.5) - compare_egen (passed): gegen mean results similar to egen (tol = 1.00000000000e-06; 1.0e-02 vs 2.3e-02, ratio 2.3) - compare_egen (passed): gegen sd results similar to egen (tol = 1.00000000000e-06; 1.0e-02 vs 3.4e-02, ratio 3.4) - compare_egen (passed): gegen max results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 3.6e-02, ratio 6) - compare_egen (passed): gegen min results similar to egen (tol = 1.00000000000e-06; 1.4e-02 vs 4.2e-02, ratio 3) - compare_egen (passed): gegen count results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 3.4e-02, ratio 4.3) - compare_egen (passed): gegen median results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.0e-02, ratio 2.5) - compare_egen (passed): gegen iqr results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 3.9e-02, ratio 5.6) - compare_egen (passed): gegen skew results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 1, ratio 1.5e+02) - compare_egen (passed): gegen kurt results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 1.3, ratio 1.8e+02) - compare_egen (passed): gegen percentile 1 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 1.7e-02, ratio 2.4) - compare_egen (passed): gegen percentile 10 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.3e-02, ratio 3.8) - compare_egen (passed): gegen percentile 30 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.6e-02, ratio 3.7) - compare_egen (passed): gegen percentile 50 results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 2.1e-02, ratio 2.3) - compare_egen (passed): gegen percentile 70 results similar to egen (tol = 1.00000000000e-06; 1.2e-02 vs 3.9e-02, ratio 3.3) - compare_egen (passed): gegen percentile 90 results similar to egen (tol = 1.00000000000e-06; 1.2e-02 vs 4.0e-02, ratio 3.3) - compare_egen (passed): gegen percentile 99 results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.1e-02, ratio 2.6) - compare_egen (passed): gegen tag results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.6e-02, ratio 3.2) - compare_egen (passed): gegen tag, missing results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.6e-02, ratio 3.2) - compare_egen (passed): gegen group results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 3.6e-02, ratio 4) - compare_egen (passed): gegen group, missing results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 3.6e-02, ratio 4) + compare_egen (passed): gegen total results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 1.4e-02, ratio 2) + compare_egen (passed): gegen sum results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.4e-02, ratio 2.3) + compare_egen (passed): gegen mean results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.0e-02, ratio 3.3) + compare_egen (passed): gegen sd results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.3e-02, ratio 2.9) + compare_egen (passed): gegen max results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 1.6e-02, ratio 2.3) + compare_egen (passed): gegen min results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 2.4e-02, ratio 2.7) + compare_egen (passed): gegen count results similar to egen (tol = 1.00000000000e-06; 1.1e-02 vs 2.3e-02, ratio 2.1) + compare_egen (passed): gegen median results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.6e-02, ratio 2.7) + compare_egen (passed): gegen iqr results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 3.5e-02, ratio 5.8) + compare_egen (passed): gegen skew results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs .77, ratio 1.1e+02) + compare_egen (passed): gegen kurt results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.3, ratio 2.2e+02) + compare_egen (passed): gegen percentile 1 results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 4.0e-02, ratio 4.4) + compare_egen (passed): gegen percentile 10 results similar to egen (tol = 1.00000000000e-06; 1.0e-02 vs 3.7e-02, ratio 3.7) + compare_egen (passed): gegen percentile 30 results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 2.9e-02, ratio 3.2) + compare_egen (passed): gegen percentile 50 results similar to egen (tol = 1.00000000000e-06; 1.1e-02 vs 3.0e-02, ratio 2.7) + compare_egen (passed): gegen percentile 70 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.7e-02, ratio 2.8) + compare_egen (passed): gegen percentile 90 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.2e-02, ratio 3.1) + compare_egen (passed): gegen percentile 99 results similar to egen (tol = 1.00000000000e-06; 1.1e-02 vs 3.4e-02, ratio 3.1) + compare_egen (passed): gegen tag results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.0e-02, ratio 2.5) + compare_egen (passed): gegen tag, missing results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.4e-02, ratio 2.8) + compare_egen (passed): gegen group results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.6e-02, ratio 4.3) + compare_egen (passed): gegen group, missing results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 1.5e-02, ratio 1.9) compare_egen (passed): gegen counts results similar to gegen count (tol = 1.00000000000e-06) Checking [if random2 > 0 ] egen range: str_12 - compare_egen (passed): gegen total results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 4.1e-02, ratio 5.1) - compare_egen (passed): gegen sum results similar to egen (tol = 1.00000000000e-06; 1.2e-02 vs 2.1e-02, ratio 1.8) - compare_egen (passed): gegen mean results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.7e-02, ratio 2.8) - compare_egen (passed): gegen sd results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 3.1e-02, ratio 4.4) - compare_egen (passed): gegen max results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 1.8e-02, ratio 2.3) - compare_egen (passed): gegen min results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.5e-02, ratio 2.5) - compare_egen (passed): gegen count results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.9e-02, ratio 3.2) - compare_egen (passed): gegen median results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.7e-02, ratio 2.8) - compare_egen (passed): gegen iqr results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 3.4e-02, ratio 5.7) - compare_egen (passed): gegen skew results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs .41, ratio 69) - compare_egen (passed): gegen kurt results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs .41, ratio 58) - compare_egen (passed): gegen percentile 1 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 1.7e-02, ratio 2.4) - compare_egen (passed): gegen percentile 10 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.8e-02, ratio 3) - compare_egen (passed): gegen percentile 30 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.9e-02, ratio 3.2) - compare_egen (passed): gegen percentile 50 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.8e-02, ratio 3) - compare_egen (passed): gegen percentile 70 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.9e-02, ratio 4.8) - compare_egen (passed): gegen percentile 90 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 1.8e-02, ratio 2.6) - compare_egen (passed): gegen percentile 99 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.8e-02, ratio 3) - compare_egen (passed): gegen tag results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.5e-02, ratio 3) - compare_egen (passed): gegen tag, missing results similar to egen (tol = 1.00000000000e-06; 4.0e-03 vs 1.5e-02, ratio 3.8) - compare_egen (passed): gegen group results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.4e-02, ratio 2.8) - compare_egen (passed): gegen group, missing results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.2e-02, ratio 3.7) + compare_egen (passed): gegen total results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 2.5e-02, ratio 2.8) + compare_egen (passed): gegen sum results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 1.9e-02, ratio 2.1) + compare_egen (passed): gegen mean results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.5e-02, ratio 3) + compare_egen (passed): gegen sd results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.6e-02, ratio 4.3) + compare_egen (passed): gegen max results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 1.7e-02, ratio 2.1) + compare_egen (passed): gegen min results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.4e-02, ratio 3.4) + compare_egen (passed): gegen count results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.4e-02, ratio 3.4) + compare_egen (passed): gegen median results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 2.6e-02, ratio 2.9) + compare_egen (passed): gegen iqr results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 3.5e-02, ratio 5) + compare_egen (passed): gegen skew results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs .88, ratio 1.8e+02) + compare_egen (passed): gegen kurt results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs .81, ratio 1.6e+02) + compare_egen (passed): gegen percentile 1 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.5e-02, ratio 4.2) + compare_egen (passed): gegen percentile 10 results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 2.2e-02, ratio 2.4) + compare_egen (passed): gegen percentile 30 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.6e-02, ratio 2.7) + compare_egen (passed): gegen percentile 50 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.6e-02, ratio 2.7) + compare_egen (passed): gegen percentile 70 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 3.6e-02, ratio 6) + compare_egen (passed): gegen percentile 90 results similar to egen (tol = 1.00000000000e-06; 1.6e-02 vs 5.1e-02, ratio 3.2) + compare_egen (passed): gegen percentile 99 results similar to egen (tol = 1.00000000000e-06; 1.7e-02 vs 5.7e-02, ratio 3.4) + compare_egen (passed): gegen tag results similar to egen (tol = 1.00000000000e-06; 1.5e-02 vs 4.5e-02, ratio 3) + compare_egen (passed): gegen tag, missing results similar to egen (tol = 1.00000000000e-06; 1.2e-02 vs 4.9e-02, ratio 4.1) + compare_egen (passed): gegen group results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 4.1e-02, ratio 4.6) + compare_egen (passed): gegen group, missing results similar to egen (tol = 1.00000000000e-06; 1.0e-02 vs 2.4e-02, ratio 2.4) compare_egen (passed): gegen counts results similar to gegen count (tol = 1.00000000000e-06) Checking [if random2 < 0 in 1107/9524] egen range: str_12 - compare_egen (passed): gegen total results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 1.9e-02, ratio 2.7) - compare_egen (passed): gegen sum results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 2.0e-02, ratio 4) - compare_egen (passed): gegen mean results similar to egen (tol = 1.00000000000e-06; 1.0e-02 vs 2.6e-02, ratio 2.6) - compare_egen (passed): gegen sd results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 3.0e-02, ratio 5) - compare_egen (passed): gegen max results similar to egen (tol = 1.00000000000e-06; 1.0e-02 vs 3.6e-02, ratio 3.6) - compare_egen (passed): gegen min results similar to egen (tol = 1.00000000000e-06; 1.6e-02 vs 4.8e-02, ratio 3) - compare_egen (passed): gegen count results similar to egen (tol = 1.00000000000e-06; 1.2e-02 vs 3.4e-02, ratio 2.8) - compare_egen (passed): gegen median results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.2e-02, ratio 3.7) - compare_egen (passed): gegen iqr results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 5.8e-02, ratio 9.7) - compare_egen (passed): gegen skew results similar to egen (tol = 1.00000000000e-06; 1.0e-02 vs .79, ratio 79) - compare_egen (passed): gegen kurt results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs .36, ratio 60) - compare_egen (passed): gegen percentile 1 results similar to egen (tol = 1.00000000000e-06; 1.0e-02 vs 5.1e-02, ratio 5.1) - compare_egen (passed): gegen percentile 10 results similar to egen (tol = 1.00000000000e-06; 1.7e-02 vs 4.8e-02, ratio 2.8) - compare_egen (passed): gegen percentile 30 results similar to egen (tol = 1.00000000000e-06; 1.1e-02 vs 3.8e-02, ratio 3.5) - compare_egen (passed): gegen percentile 50 results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 1.9e-02, ratio 2.4) - compare_egen (passed): gegen percentile 70 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.9e-02, ratio 3.2) - compare_egen (passed): gegen percentile 90 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.8e-02, ratio 3) - compare_egen (passed): gegen percentile 99 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.7e-02, ratio 2.8) - compare_egen (passed): gegen tag results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.5e-02, ratio 3) - compare_egen (passed): gegen tag, missing results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.5e-02, ratio 3) - compare_egen (passed): gegen group results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.5e-02, ratio 3) - compare_egen (passed): gegen group, missing results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.5e-02, ratio 3) + compare_egen (passed): gegen total results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.9e-02, ratio 3.2) + compare_egen (passed): gegen sum results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 2.7e-02, ratio 5.4) + compare_egen (passed): gegen mean results similar to egen (tol = 1.00000000000e-06; 1.2e-02 vs 3.3e-02, ratio 2.8) + compare_egen (passed): gegen sd results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.8e-02, ratio 3.5) + compare_egen (passed): gegen max results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 2.3e-02, ratio 4.6) + compare_egen (passed): gegen min results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.3e-02, ratio 2.9) + compare_egen (passed): gegen count results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.0e-02, ratio 3.3) + compare_egen (passed): gegen median results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.8e-02, ratio 3.6) + compare_egen (passed): gegen iqr results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 5.5e-02, ratio 7.9) + compare_egen (passed): gegen skew results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs .42, ratio 71) + compare_egen (passed): gegen kurt results similar to egen (tol = 1.00000000000e-06; 4.0e-03 vs .52, ratio 1.3e+02) + compare_egen (passed): gegen percentile 1 results similar to egen (tol = 1.00000000000e-06; 1.2e-02 vs 3.0e-02, ratio 2.5) + compare_egen (passed): gegen percentile 10 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.1e-02, ratio 3.5) + compare_egen (passed): gegen percentile 30 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.1e-02, ratio 3.5) + compare_egen (passed): gegen percentile 50 results similar to egen (tol = 1.00000000000e-06; 1.2e-02 vs 3.0e-02, ratio 2.5) + compare_egen (passed): gegen percentile 70 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.8e-02, ratio 4) + compare_egen (passed): gegen percentile 90 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.6e-02, ratio 4.3) + compare_egen (passed): gegen percentile 99 results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.1e-02, ratio 2.6) + compare_egen (passed): gegen tag results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 2.0e-02, ratio 4) + compare_egen (passed): gegen tag, missing results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 4.3e-02, ratio 5.4) + compare_egen (passed): gegen group results similar to egen (tol = 1.00000000000e-06; 1.2e-02 vs 5.3e-02, ratio 4.4) + compare_egen (passed): gegen group, missing results similar to egen (tol = 1.00000000000e-06; 1.2e-02 vs 3.9e-02, ratio 3.3) compare_egen (passed): gegen counts results similar to gegen count (tol = 1.00000000000e-06) @@ -1057,103 +1068,103 @@ Checking egen. N = 10,000; varlist = str_12 str_32 -------------------------------------------------- Checking full egen range: str_12 str_32 - compare_egen (passed): gegen total results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.0e-02, ratio 1.7) - compare_egen (passed): gegen sum results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.0e-02, ratio 1.7) - compare_egen (passed): gegen mean results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.0e-02, ratio 1.7) - compare_egen (passed): gegen sd results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.4e-02, ratio 2.3) - compare_egen (passed): gegen max results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.1e-02, ratio 3.5) - compare_egen (passed): gegen min results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.3e-02, ratio 3.8) - compare_egen (passed): gegen count results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 9.0e-03, ratio 1) - compare_egen (passed): gegen median results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.0e-02, ratio 3.3) - compare_egen (passed): gegen iqr results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 4.2e-02, ratio 7) - compare_egen (passed): gegen skew results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs .76, ratio 1.3e+02) - compare_egen (passed): gegen kurt results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs .81, ratio 1.3e+02) - compare_egen (passed): gegen percentile 1 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.8e-02, ratio 4.7) - compare_egen (passed): gegen percentile 10 results similar to egen (tol = 1.00000000000e-06; 1.0e-02 vs 2.6e-02, ratio 2.6) - compare_egen (passed): gegen percentile 30 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.1e-02, ratio 3.5) - compare_egen (passed): gegen percentile 50 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.0e-02, ratio 3.3) - compare_egen (passed): gegen percentile 70 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.8e-02, ratio 4) - compare_egen (passed): gegen percentile 90 results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 5.2e-02, ratio 5.8) - compare_egen (passed): gegen percentile 99 results similar to egen (tol = 1.00000000000e-06; 1.1e-02 vs 4.7e-02, ratio 4.3) - compare_egen (passed): gegen tag results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 2.4e-02, ratio 2.7) - compare_egen (passed): gegen tag, missing results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 7.0e-03, ratio 1.2) - compare_egen (passed): gegen group results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.7e-02, ratio 3.4) - compare_egen (passed): gegen group, missing results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 9.0e-03, ratio 1.1) + compare_egen (passed): gegen total results similar to egen (tol = 1.00000000000e-06; 1.6e-02 vs 1.8e-02, ratio 1.1) + compare_egen (passed): gegen sum results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 1.3e-02, ratio 1.9) + compare_egen (passed): gegen mean results similar to egen (tol = 1.00000000000e-06; 1.2e-02 vs 1.4e-02, ratio 1.2) + compare_egen (passed): gegen sd results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.1e-02, ratio 1.8) + compare_egen (passed): gegen max results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.8e-02, ratio 3.6) + compare_egen (passed): gegen min results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.4e-02, ratio 2.3) + compare_egen (passed): gegen count results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 7.0e-03, ratio 1.4) + compare_egen (passed): gegen median results similar to egen (tol = 1.00000000000e-06; 1.0e-02 vs 2.4e-02, ratio 2.4) + compare_egen (passed): gegen iqr results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 4.0e-02, ratio 8) + compare_egen (passed): gegen skew results similar to egen (tol = 1.00000000000e-06; 1.1e-02 vs 1.6, ratio 1.4e+02) + compare_egen (passed): gegen kurt results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.1, ratio 1.9e+02) + compare_egen (passed): gegen percentile 1 results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 2.0e-02, ratio 4) + compare_egen (passed): gegen percentile 10 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.5e-02, ratio 3.6) + compare_egen (passed): gegen percentile 30 results similar to egen (tol = 1.00000000000e-06; 1.0e-02 vs 3.7e-02, ratio 3.7) + compare_egen (passed): gegen percentile 50 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.8e-02, ratio 3) + compare_egen (passed): gegen percentile 70 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.1e-02, ratio 3.5) + compare_egen (passed): gegen percentile 90 results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 2.2e-02, ratio 2.4) + compare_egen (passed): gegen percentile 99 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.7e-02, ratio 2.8) + compare_egen (passed): gegen tag results similar to egen (tol = 1.00000000000e-06; 4.0e-03 vs 1.6e-02, ratio 4) + compare_egen (passed): gegen tag, missing results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 5.0e-03, ratio 1) + compare_egen (passed): gegen group results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 2.7e-02, ratio 5.4) + compare_egen (passed): gegen group, missing results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 5.0e-03, ratio 1) compare_egen (passed): gegen counts results similar to gegen count (tol = 1.00000000000e-06) Checking [ in 1093/9849] egen range: str_12 str_32 - compare_egen (passed): gegen total results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.9e-02, ratio 3.8) - compare_egen (passed): gegen sum results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 3.4e-02, ratio 5.7) - compare_egen (passed): gegen mean results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.9e-02, ratio 3.2) - compare_egen (passed): gegen sd results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.3e-02, ratio 3.8) - compare_egen (passed): gegen max results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.9e-02, ratio 3.2) - compare_egen (passed): gegen min results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.6e-02, ratio 3.2) - compare_egen (passed): gegen count results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 2.8e-02, ratio 5.6) - compare_egen (passed): gegen median results similar to egen (tol = 1.00000000000e-06; 1.0e-02 vs 2.5e-02, ratio 2.5) - compare_egen (passed): gegen iqr results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 4.4e-02, ratio 7.3) - compare_egen (passed): gegen skew results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs .86, ratio 1.4e+02) - compare_egen (passed): gegen kurt results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs .71, ratio 1.2e+02) - compare_egen (passed): gegen percentile 1 results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 2.0e-02, ratio 4) - compare_egen (passed): gegen percentile 10 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.1e-02, ratio 3.5) - compare_egen (passed): gegen percentile 30 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.0e-02, ratio 3.3) - compare_egen (passed): gegen percentile 50 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.0e-02, ratio 3.3) - compare_egen (passed): gegen percentile 70 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.0e-02, ratio 3.3) - compare_egen (passed): gegen percentile 90 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.9e-02, ratio 3.2) - compare_egen (passed): gegen percentile 99 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.2e-02, ratio 3.7) - compare_egen (passed): gegen tag results similar to egen (tol = 1.00000000000e-06; 4.0e-03 vs 1.8e-02, ratio 4.5) - compare_egen (passed): gegen tag, missing results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.7e-02, ratio 3.4) - compare_egen (passed): gegen group results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.6e-02, ratio 3.2) - compare_egen (passed): gegen group, missing results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.6e-02, ratio 3.2) + compare_egen (passed): gegen total results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.7e-02, ratio 4.5) + compare_egen (passed): gegen sum results similar to egen (tol = 1.00000000000e-06; 1.2e-02 vs 4.2e-02, ratio 3.5) + compare_egen (passed): gegen mean results similar to egen (tol = 1.00000000000e-06; 1.4e-02 vs 5.0e-02, ratio 3.6) + compare_egen (passed): gegen sd results similar to egen (tol = 1.00000000000e-06; 1.9e-02 vs 4.7e-02, ratio 2.5) + compare_egen (passed): gegen max results similar to egen (tol = 1.00000000000e-06; 1.3e-02 vs 5.7e-02, ratio 4.4) + compare_egen (passed): gegen min results similar to egen (tol = 1.00000000000e-06; 1.3e-02 vs 4.2e-02, ratio 3.2) + compare_egen (passed): gegen count results similar to egen (tol = 1.00000000000e-06; 1.4e-02 vs 4.9e-02, ratio 3.5) + compare_egen (passed): gegen median results similar to egen (tol = 1.00000000000e-06; 1.1e-02 vs 4.9e-02, ratio 4.5) + compare_egen (passed): gegen iqr results similar to egen (tol = 1.00000000000e-06; 2.0e-02 vs .16, ratio 7.8) + compare_egen (passed): gegen skew results similar to egen (tol = 1.00000000000e-06; 1.4e-02 vs .93, ratio 67) + compare_egen (passed): gegen kurt results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs .93, ratio 1.6e+02) + compare_egen (passed): gegen percentile 1 results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 2.2e-02, ratio 4.4) + compare_egen (passed): gegen percentile 10 results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.1e-02, ratio 2.6) + compare_egen (passed): gegen percentile 30 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.8e-02, ratio 3) + compare_egen (passed): gegen percentile 50 results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.6e-02, ratio 3.2) + compare_egen (passed): gegen percentile 70 results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 2.1e-02, ratio 4.2) + compare_egen (passed): gegen percentile 90 results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.1e-02, ratio 2.6) + compare_egen (passed): gegen percentile 99 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.0e-02, ratio 2.9) + compare_egen (passed): gegen tag results similar to egen (tol = 1.00000000000e-06; 1.0e-02 vs 3.3e-02, ratio 3.3) + compare_egen (passed): gegen tag, missing results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 2.7e-02, ratio 3) + compare_egen (passed): gegen group results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.4e-02, ratio 2.8) + compare_egen (passed): gegen group, missing results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.4e-02, ratio 2.8) compare_egen (passed): gegen counts results similar to gegen count (tol = 1.00000000000e-06) Checking [if random2 > 0 ] egen range: str_12 str_32 - compare_egen (passed): gegen total results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.8e-02, ratio 3) - compare_egen (passed): gegen sum results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.9e-02, ratio 3.2) - compare_egen (passed): gegen mean results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 3.3e-02, ratio 5.5) - compare_egen (passed): gegen sd results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.3e-02, ratio 3.8) - compare_egen (passed): gegen max results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.9e-02, ratio 3.2) - compare_egen (passed): gegen min results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.6e-02, ratio 3.2) - compare_egen (passed): gegen count results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.8e-02, ratio 4.7) - compare_egen (passed): gegen median results similar to egen (tol = 1.00000000000e-06; 1.1e-02 vs 3.8e-02, ratio 3.5) - compare_egen (passed): gegen iqr results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 4.1e-02, ratio 6.8) - compare_egen (passed): gegen skew results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs .36, ratio 60) - compare_egen (passed): gegen kurt results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs .38, ratio 54) - compare_egen (passed): gegen percentile 1 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.9e-02, ratio 3.2) - compare_egen (passed): gegen percentile 10 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.8e-02, ratio 3) - compare_egen (passed): gegen percentile 30 results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.9e-02, ratio 3.8) - compare_egen (passed): gegen percentile 50 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.9e-02, ratio 3.2) - compare_egen (passed): gegen percentile 70 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.3e-02, ratio 3.8) - compare_egen (passed): gegen percentile 90 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 3.6e-02, ratio 5.1) - compare_egen (passed): gegen percentile 99 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.2e-02, ratio 3.1) - compare_egen (passed): gegen tag results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 2.0e-02, ratio 4) - compare_egen (passed): gegen tag, missing results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 2.4e-02, ratio 4.8) - compare_egen (passed): gegen group results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.3e-02, ratio 2.9) - compare_egen (passed): gegen group, missing results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.8e-02, ratio 3.6) + compare_egen (passed): gegen total results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.6e-02, ratio 2.7) + compare_egen (passed): gegen sum results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.7e-02, ratio 3.4) + compare_egen (passed): gegen mean results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.5e-02, ratio 3) + compare_egen (passed): gegen sd results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 2.9e-02, ratio 5.8) + compare_egen (passed): gegen max results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.7e-02, ratio 3.9) + compare_egen (passed): gegen min results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 1.8e-02, ratio 2) + compare_egen (passed): gegen count results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.3e-02, ratio 3.8) + compare_egen (passed): gegen median results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 1.8e-02, ratio 2.6) + compare_egen (passed): gegen iqr results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 3.6e-02, ratio 7.2) + compare_egen (passed): gegen skew results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1, ratio 1.7e+02) + compare_egen (passed): gegen kurt results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 1.3, ratio 1.9e+02) + compare_egen (passed): gegen percentile 1 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 3.7e-02, ratio 6.2) + compare_egen (passed): gegen percentile 10 results similar to egen (tol = 1.00000000000e-06; 1.0e-02 vs 4.1e-02, ratio 4.1) + compare_egen (passed): gegen percentile 30 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.9e-02, ratio 3.2) + compare_egen (passed): gegen percentile 50 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.1e-02, ratio 3.5) + compare_egen (passed): gegen percentile 70 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 3.2e-02, ratio 5.3) + compare_egen (passed): gegen percentile 90 results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 2.3e-02, ratio 2.6) + compare_egen (passed): gegen percentile 99 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 3.1e-02, ratio 5.2) + compare_egen (passed): gegen tag results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 3.2e-02, ratio 6.4) + compare_egen (passed): gegen tag, missing results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.7e-02, ratio 3.4) + compare_egen (passed): gegen group results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.6e-02, ratio 3.2) + compare_egen (passed): gegen group, missing results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.6e-02, ratio 3.2) compare_egen (passed): gegen counts results similar to gegen count (tol = 1.00000000000e-06) Checking [if random2 < 0 in 388/8448] egen range: str_12 str_32 - compare_egen (passed): gegen total results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 2.1e-02, ratio 4.2) - compare_egen (passed): gegen sum results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 2.0e-02, ratio 4) - compare_egen (passed): gegen mean results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.8e-02, ratio 3.6) - compare_egen (passed): gegen sd results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.2e-02, ratio 3.7) - compare_egen (passed): gegen max results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.9e-02, ratio 3.8) - compare_egen (passed): gegen min results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.6e-02, ratio 2.7) - compare_egen (passed): gegen count results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.9e-02, ratio 3.2) - compare_egen (passed): gegen median results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.9e-02, ratio 3.8) - compare_egen (passed): gegen iqr results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 3.9e-02, ratio 6.5) - compare_egen (passed): gegen skew results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs .33, ratio 54) - compare_egen (passed): gegen kurt results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs .34, ratio 69) - compare_egen (passed): gegen percentile 1 results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.8e-02, ratio 3.6) - compare_egen (passed): gegen percentile 10 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.8e-02, ratio 3) - compare_egen (passed): gegen percentile 30 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.8e-02, ratio 3) - compare_egen (passed): gegen percentile 50 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.8e-02, ratio 3) - compare_egen (passed): gegen percentile 70 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.8e-02, ratio 3) - compare_egen (passed): gegen percentile 90 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.8e-02, ratio 3) - compare_egen (passed): gegen percentile 99 results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.8e-02, ratio 3.6) - compare_egen (passed): gegen tag results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 5.2e-02, ratio 7.4) - compare_egen (passed): gegen tag, missing results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 4.2e-02, ratio 5.3) - compare_egen (passed): gegen group results similar to egen (tol = 1.00000000000e-06; 1.4e-02 vs 2.6e-02, ratio 1.9) - compare_egen (passed): gegen group, missing results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 3.8e-02, ratio 7.6) + compare_egen (passed): gegen total results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.8e-02, ratio 3) + compare_egen (passed): gegen sum results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.8e-02, ratio 3) + compare_egen (passed): gegen mean results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 3.0e-02, ratio 6) + compare_egen (passed): gegen sd results similar to egen (tol = 1.00000000000e-06; 1.3e-02 vs 6.8e-02, ratio 5.2) + compare_egen (passed): gegen max results similar to egen (tol = 1.00000000000e-06; 1.6e-02 vs 6.7e-02, ratio 4.2) + compare_egen (passed): gegen min results similar to egen (tol = 1.00000000000e-06; 2.0e-02 vs 4.4e-02, ratio 2.2) + compare_egen (passed): gegen count results similar to egen (tol = 1.00000000000e-06; 1.6e-02 vs 4.8e-02, ratio 3) + compare_egen (passed): gegen median results similar to egen (tol = 1.00000000000e-06; 1.4e-02 vs 4.6e-02, ratio 3.3) + compare_egen (passed): gegen iqr results similar to egen (tol = 1.00000000000e-06; 1.6e-02 vs .13, ratio 7.9) + compare_egen (passed): gegen skew results similar to egen (tol = 1.00000000000e-06; 1.8e-02 vs 1.3, ratio 74) + compare_egen (passed): gegen kurt results similar to egen (tol = 1.00000000000e-06; 2.6e-02 vs .61, ratio 24) + compare_egen (passed): gegen percentile 1 results similar to egen (tol = 1.00000000000e-06; 1.1e-02 vs 3.3e-02, ratio 3) + compare_egen (passed): gegen percentile 10 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.0e-02, ratio 3.3) + compare_egen (passed): gegen percentile 30 results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 3.4e-02, ratio 4.3) + compare_egen (passed): gegen percentile 50 results similar to egen (tol = 1.00000000000e-06; 1.0e-02 vs 3.0e-02, ratio 3) + compare_egen (passed): gegen percentile 70 results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 3.3e-02, ratio 4.1) + compare_egen (passed): gegen percentile 90 results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 6.0e-02, ratio 7.5) + compare_egen (passed): gegen percentile 99 results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 5.4e-02, ratio 6) + compare_egen (passed): gegen tag results similar to egen (tol = 1.00000000000e-06; 1.0e-02 vs 8.1e-02, ratio 8.1) + compare_egen (passed): gegen tag, missing results similar to egen (tol = 1.00000000000e-06; 1.7e-02 vs 8.8e-02, ratio 5.2) + compare_egen (passed): gegen group results similar to egen (tol = 1.00000000000e-06; 1.9e-02 vs 8.4e-02, ratio 4.4) + compare_egen (passed): gegen group, missing results similar to egen (tol = 1.00000000000e-06; 2.8e-02 vs 8.4e-02, ratio 3) compare_egen (passed): gegen counts results similar to gegen count (tol = 1.00000000000e-06) @@ -1161,103 +1172,103 @@ Checking egen. N = 10,000; varlist = str_12 str_32 str_4 -------------------------------------------------------- Checking full egen range: str_12 str_32 str_4 - compare_egen (passed): gegen total results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 1.9e-02, ratio 2.4) - compare_egen (passed): gegen sum results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.4e-02, ratio 3) - compare_egen (passed): gegen mean results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 3.2e-02, ratio 4) - compare_egen (passed): gegen sd results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 2.4e-02, ratio 2.7) - compare_egen (passed): gegen max results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 2.1e-02, ratio 2.3) - compare_egen (passed): gegen min results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 1.6e-02, ratio 2) - compare_egen (passed): gegen count results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.0e-02, ratio 2.5) - compare_egen (passed): gegen median results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 1.8e-02, ratio 2.3) - compare_egen (passed): gegen iqr results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 4.5e-02, ratio 5) - compare_egen (passed): gegen skew results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs .95, ratio 1.2e+02) - compare_egen (passed): gegen kurt results similar to egen (tol = 1.00000000000e-06; 1.4e-02 vs 1, ratio 74) - compare_egen (passed): gegen percentile 1 results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 1.8e-02, ratio 2.3) - compare_egen (passed): gegen percentile 10 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 1.9e-02, ratio 2.7) - compare_egen (passed): gegen percentile 30 results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.0e-02, ratio 2.5) - compare_egen (passed): gegen percentile 50 results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 4.3e-02, ratio 4.8) - compare_egen (passed): gegen percentile 70 results similar to egen (tol = 1.00000000000e-06; 1.6e-02 vs 2.5e-02, ratio 1.6) - compare_egen (passed): gegen percentile 90 results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 4.1e-02, ratio 4.6) - compare_egen (passed): gegen percentile 99 results similar to egen (tol = 1.00000000000e-06; 2.1e-02 vs 4.8e-02, ratio 2.3) - compare_egen (passed): gegen tag results similar to egen (tol = 1.00000000000e-06; 1.3e-02 vs 2.5e-02, ratio 1.9) - compare_egen (passed): gegen tag, missing results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 1.9e-02, ratio 2.7) - compare_egen (passed): gegen group results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 1.9e-02, ratio 2.7) - compare_egen (passed): gegen group, missing results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 1.7e-02, ratio 2.4) + compare_egen (passed): gegen total results similar to egen (tol = 1.00000000000e-06; 2.7e-02 vs 5.3e-02, ratio 2) + compare_egen (passed): gegen sum results similar to egen (tol = 1.00000000000e-06; 2.8e-02 vs 5.9e-02, ratio 2.1) + compare_egen (passed): gegen mean results similar to egen (tol = 1.00000000000e-06; 2.7e-02 vs 6.1e-02, ratio 2.3) + compare_egen (passed): gegen sd results similar to egen (tol = 1.00000000000e-06; 2.4e-02 vs 6.4e-02, ratio 2.7) + compare_egen (passed): gegen max results similar to egen (tol = 1.00000000000e-06; 2.0e-02 vs 5.5e-02, ratio 2.8) + compare_egen (passed): gegen min results similar to egen (tol = 1.00000000000e-06; 2.5e-02 vs 5.1e-02, ratio 2) + compare_egen (passed): gegen count results similar to egen (tol = 1.00000000000e-06; 2.6e-02 vs 4.6e-02, ratio 1.8) + compare_egen (passed): gegen median results similar to egen (tol = 1.00000000000e-06; 2.3e-02 vs 8.9e-02, ratio 3.9) + compare_egen (passed): gegen iqr results similar to egen (tol = 1.00000000000e-06; 2.7e-02 vs .18, ratio 6.6) + compare_egen (passed): gegen skew results similar to egen (tol = 1.00000000000e-06; 2.3e-02 vs 2.1, ratio 93) + compare_egen (passed): gegen kurt results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs .79, ratio 1.1e+02) + compare_egen (passed): gegen percentile 1 results similar to egen (tol = 1.00000000000e-06; 1.1e-02 vs 3.6e-02, ratio 3.3) + compare_egen (passed): gegen percentile 10 results similar to egen (tol = 1.00000000000e-06; 1.3e-02 vs 3.9e-02, ratio 3) + compare_egen (passed): gegen percentile 30 results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 2.1e-02, ratio 2.3) + compare_egen (passed): gegen percentile 50 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 1.9e-02, ratio 2.7) + compare_egen (passed): gegen percentile 70 results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 2.9e-02, ratio 3.2) + compare_egen (passed): gegen percentile 90 results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 1.9e-02, ratio 2.4) + compare_egen (passed): gegen percentile 99 results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.1e-02, ratio 2.6) + compare_egen (passed): gegen tag results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 3.0e-02, ratio 4.3) + compare_egen (passed): gegen tag, missing results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 4.1e-02, ratio 5.9) + compare_egen (passed): gegen group results similar to egen (tol = 1.00000000000e-06; 1.3e-02 vs 3.5e-02, ratio 2.7) + compare_egen (passed): gegen group, missing results similar to egen (tol = 1.00000000000e-06; 1.7e-02 vs 4.6e-02, ratio 2.7) compare_egen (passed): gegen counts results similar to gegen count (tol = 1.00000000000e-06) Checking [ in 2167/8646] egen range: str_12 str_32 str_4 - compare_egen (passed): gegen total results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.1e-02, ratio 3) - compare_egen (passed): gegen sum results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.0e-02, ratio 2.9) - compare_egen (passed): gegen mean results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.1e-02, ratio 3) - compare_egen (passed): gegen sd results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.6e-02, ratio 3.7) - compare_egen (passed): gegen max results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.4e-02, ratio 3.4) - compare_egen (passed): gegen min results similar to egen (tol = 1.00000000000e-06; 1.4e-02 vs 2.6e-02, ratio 1.9) - compare_egen (passed): gegen count results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.3e-02, ratio 3.3) - compare_egen (passed): gegen median results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.2e-02, ratio 3.1) - compare_egen (passed): gegen iqr results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 4.6e-02, ratio 6.6) - compare_egen (passed): gegen skew results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs .81, ratio 1.2e+02) - compare_egen (passed): gegen kurt results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs .87, ratio 1.2e+02) - compare_egen (passed): gegen percentile 1 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.1e-02, ratio 3) - compare_egen (passed): gegen percentile 10 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.1e-02, ratio 3) - compare_egen (passed): gegen percentile 30 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.3e-02, ratio 3.8) - compare_egen (passed): gegen percentile 50 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 4.1e-02, ratio 5.9) - compare_egen (passed): gegen percentile 70 results similar to egen (tol = 1.00000000000e-06; 1.4e-02 vs 2.8e-02, ratio 2) - compare_egen (passed): gegen percentile 90 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.3e-02, ratio 3.3) - compare_egen (passed): gegen percentile 99 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.2e-02, ratio 3.7) - compare_egen (passed): gegen tag results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 3.0e-02, ratio 6) - compare_egen (passed): gegen tag, missing results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 1.9e-02, ratio 2.4) - compare_egen (passed): gegen group results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 1.8e-02, ratio 2.6) - compare_egen (passed): gegen group, missing results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.8e-02, ratio 3) + compare_egen (passed): gegen total results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.7e-02, ratio 3.4) + compare_egen (passed): gegen sum results similar to egen (tol = 1.00000000000e-06; 1.3e-02 vs 3.2e-02, ratio 2.5) + compare_egen (passed): gegen mean results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.5e-02, ratio 3.6) + compare_egen (passed): gegen sd results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 3.7e-02, ratio 4.6) + compare_egen (passed): gegen max results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.7e-02, ratio 3.4) + compare_egen (passed): gegen min results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.1e-02, ratio 3) + compare_egen (passed): gegen count results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 3.1e-02, ratio 4.4) + compare_egen (passed): gegen median results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.6e-02, ratio 3.7) + compare_egen (passed): gegen iqr results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 6.0e-02, ratio 8.6) + compare_egen (passed): gegen skew results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 1.8, ratio 2.3e+02) + compare_egen (passed): gegen kurt results similar to egen (tol = 1.00000000000e-06; 1.5e-02 vs 1.8, ratio 1.2e+02) + compare_egen (passed): gegen percentile 1 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.4e-02, ratio 3.4) + compare_egen (passed): gegen percentile 10 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.6e-02, ratio 3.7) + compare_egen (passed): gegen percentile 30 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.4e-02, ratio 3.4) + compare_egen (passed): gegen percentile 50 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.6e-02, ratio 3.7) + compare_egen (passed): gegen percentile 70 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.5e-02, ratio 3.6) + compare_egen (passed): gegen percentile 90 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.4e-02, ratio 3.4) + compare_egen (passed): gegen percentile 99 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.6e-02, ratio 3.7) + compare_egen (passed): gegen tag results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.3e-02, ratio 3.8) + compare_egen (passed): gegen tag, missing results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.0e-02, ratio 3.3) + compare_egen (passed): gegen group results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.2e-02, ratio 3.7) + compare_egen (passed): gegen group, missing results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.0e-02, ratio 3.3) compare_egen (passed): gegen counts results similar to gegen count (tol = 1.00000000000e-06) Checking [if random2 > 0 ] egen range: str_12 str_32 str_4 - compare_egen (passed): gegen total results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.2e-02, ratio 3.1) - compare_egen (passed): gegen sum results similar to egen (tol = 1.00000000000e-06; 1.3e-02 vs 2.9e-02, ratio 2.2) - compare_egen (passed): gegen mean results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.1e-02, ratio 3) - compare_egen (passed): gegen sd results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.3e-02, ratio 3.3) - compare_egen (passed): gegen max results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.1e-02, ratio 3) - compare_egen (passed): gegen min results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 1.7e-02, ratio 2.4) - compare_egen (passed): gegen count results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.8e-02, ratio 4) - compare_egen (passed): gegen median results similar to egen (tol = 1.00000000000e-06; 1.3e-02 vs 3.4e-02, ratio 2.6) - compare_egen (passed): gegen iqr results similar to egen (tol = 1.00000000000e-06; 1.3e-02 vs 6.8e-02, ratio 5.2) - compare_egen (passed): gegen skew results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs .52, ratio 74) - compare_egen (passed): gegen kurt results similar to egen (tol = 1.00000000000e-06; 1.1e-02 vs .45, ratio 41) - compare_egen (passed): gegen percentile 1 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.0e-02, ratio 2.9) - compare_egen (passed): gegen percentile 10 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.0e-02, ratio 2.9) - compare_egen (passed): gegen percentile 30 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.2e-02, ratio 3.1) - compare_egen (passed): gegen percentile 50 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.1e-02, ratio 3) - compare_egen (passed): gegen percentile 70 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.1e-02, ratio 3) - compare_egen (passed): gegen percentile 90 results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.2e-02, ratio 2.8) - compare_egen (passed): gegen percentile 99 results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 3.2e-02, ratio 3.6) - compare_egen (passed): gegen tag results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 2.3e-02, ratio 2.6) - compare_egen (passed): gegen tag, missing results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 1.9e-02, ratio 2.7) - compare_egen (passed): gegen group results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 1.9e-02, ratio 2.7) - compare_egen (passed): gegen group, missing results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.0e-02, ratio 3.3) + compare_egen (passed): gegen total results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 3.4e-02, ratio 3.8) + compare_egen (passed): gegen sum results similar to egen (tol = 1.00000000000e-06; 1.1e-02 vs 2.7e-02, ratio 2.5) + compare_egen (passed): gegen mean results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.2e-02, ratio 3.1) + compare_egen (passed): gegen sd results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.7e-02, ratio 3.9) + compare_egen (passed): gegen max results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.3e-02, ratio 3.3) + compare_egen (passed): gegen min results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.0e-02, ratio 2.9) + compare_egen (passed): gegen count results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.3e-02, ratio 3.3) + compare_egen (passed): gegen median results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.2e-02, ratio 3.1) + compare_egen (passed): gegen iqr results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 4.8e-02, ratio 6.9) + compare_egen (passed): gegen skew results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs .49, ratio 70) + compare_egen (passed): gegen kurt results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs .44, ratio 73) + compare_egen (passed): gegen percentile 1 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.3e-02, ratio 3.3) + compare_egen (passed): gegen percentile 10 results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.3e-02, ratio 2.9) + compare_egen (passed): gegen percentile 30 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.3e-02, ratio 3.3) + compare_egen (passed): gegen percentile 50 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.3e-02, ratio 3.3) + compare_egen (passed): gegen percentile 70 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.4e-02, ratio 3.4) + compare_egen (passed): gegen percentile 90 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.6e-02, ratio 3.7) + compare_egen (passed): gegen percentile 99 results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 3.5e-02, ratio 4.4) + compare_egen (passed): gegen tag results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 3.9e-02, ratio 4.9) + compare_egen (passed): gegen tag, missing results similar to egen (tol = 1.00000000000e-06; 1.0e-02 vs 2.3e-02, ratio 2.3) + compare_egen (passed): gegen group results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.0e-02, ratio 2.9) + compare_egen (passed): gegen group, missing results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.0e-02, ratio 2.9) compare_egen (passed): gegen counts results similar to gegen count (tol = 1.00000000000e-06) Checking [if random2 < 0 in 220/8014] egen range: str_12 str_32 str_4 - compare_egen (passed): gegen total results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 2.5e-02, ratio 2.8) - compare_egen (passed): gegen sum results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.2e-02, ratio 3.1) - compare_egen (passed): gegen mean results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.2e-02, ratio 3.1) - compare_egen (passed): gegen sd results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.6e-02, ratio 4.3) - compare_egen (passed): gegen max results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.9e-02, ratio 4.8) - compare_egen (passed): gegen min results similar to egen (tol = 1.00000000000e-06; 1.1e-02 vs 2.0e-02, ratio 1.8) - compare_egen (passed): gegen count results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.3e-02, ratio 3.3) - compare_egen (passed): gegen median results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 3.0e-02, ratio 5) - compare_egen (passed): gegen iqr results similar to egen (tol = 1.00000000000e-06; 1.1e-02 vs 4.8e-02, ratio 4.4) - compare_egen (passed): gegen skew results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs .46, ratio 66) - compare_egen (passed): gegen kurt results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs .37, ratio 53) - compare_egen (passed): gegen percentile 1 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.9e-02, ratio 3.2) - compare_egen (passed): gegen percentile 10 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.0e-02, ratio 2.9) - compare_egen (passed): gegen percentile 30 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.2e-02, ratio 3.1) - compare_egen (passed): gegen percentile 50 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.0e-02, ratio 3.3) - compare_egen (passed): gegen percentile 70 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.1e-02, ratio 3) - compare_egen (passed): gegen percentile 90 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.1e-02, ratio 3) - compare_egen (passed): gegen percentile 99 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.2e-02, ratio 3.7) - compare_egen (passed): gegen tag results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.0e-02, ratio 3.3) - compare_egen (passed): gegen tag, missing results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.9e-02, ratio 3.8) - compare_egen (passed): gegen group results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.8e-02, ratio 3) - compare_egen (passed): gegen group, missing results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 3.2e-02, ratio 5.3) + compare_egen (passed): gegen total results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.3e-02, ratio 3.3) + compare_egen (passed): gegen sum results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.5e-02, ratio 3.6) + compare_egen (passed): gegen mean results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.4e-02, ratio 4) + compare_egen (passed): gegen sd results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.7e-02, ratio 4.5) + compare_egen (passed): gegen max results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.3e-02, ratio 3.3) + compare_egen (passed): gegen min results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.0e-02, ratio 2.9) + compare_egen (passed): gegen count results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.4e-02, ratio 4) + compare_egen (passed): gegen median results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.3e-02, ratio 3.3) + compare_egen (passed): gegen iqr results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 5.3e-02, ratio 7.6) + compare_egen (passed): gegen skew results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs .91, ratio 1.3e+02) + compare_egen (passed): gegen kurt results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs .71, ratio 1.0e+02) + compare_egen (passed): gegen percentile 1 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.3e-02, ratio 3.8) + compare_egen (passed): gegen percentile 10 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.4e-02, ratio 4) + compare_egen (passed): gegen percentile 30 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.4e-02, ratio 3.4) + compare_egen (passed): gegen percentile 50 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.4e-02, ratio 4) + compare_egen (passed): gegen percentile 70 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.4e-02, ratio 3.4) + compare_egen (passed): gegen percentile 90 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.6e-02, ratio 3.7) + compare_egen (passed): gegen percentile 99 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.4e-02, ratio 3.4) + compare_egen (passed): gegen tag results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.2e-02, ratio 3.7) + compare_egen (passed): gegen tag, missing results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.0e-02, ratio 3.3) + compare_egen (passed): gegen group results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.2e-02, ratio 3.7) + compare_egen (passed): gegen group, missing results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 5.3e-02, ratio 6.6) compare_egen (passed): gegen counts results similar to gegen count (tol = 1.00000000000e-06) @@ -1265,103 +1276,103 @@ Checking egen. N = 10,000; varlist = double1 -------------------------------------------- Checking full egen range: double1 - compare_egen (passed): gegen total results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.6e-02, ratio 2.7) - compare_egen (passed): gegen sum results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.5e-02, ratio 3) - compare_egen (passed): gegen mean results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.4e-02, ratio 2.3) - compare_egen (passed): gegen sd results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.8e-02, ratio 3) - compare_egen (passed): gegen max results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.6e-02, ratio 2.7) - compare_egen (passed): gegen min results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.3e-02, ratio 2.2) - compare_egen (passed): gegen count results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.5e-02, ratio 2.5) - compare_egen (passed): gegen median results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 1.4e-02, ratio 2) - compare_egen (passed): gegen iqr results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 3.6e-02, ratio 6) - compare_egen (passed): gegen skew results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs .81, ratio 1.4e+02) - compare_egen (passed): gegen kurt results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs .75, ratio 1.2e+02) - compare_egen (passed): gegen percentile 1 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.5e-02, ratio 2.5) - compare_egen (passed): gegen percentile 10 results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.6e-02, ratio 3.2) - compare_egen (passed): gegen percentile 30 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.6e-02, ratio 2.7) - compare_egen (passed): gegen percentile 50 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.7e-02, ratio 2.8) - compare_egen (passed): gegen percentile 70 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.9e-02, ratio 3.2) - compare_egen (passed): gegen percentile 90 results similar to egen (tol = 1.00000000000e-06; 1.2e-02 vs 3.5e-02, ratio 2.9) - compare_egen (passed): gegen percentile 99 results similar to egen (tol = 1.00000000000e-06; 1.1e-02 vs 1.9e-02, ratio 1.7) - compare_egen (passed): gegen tag results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.4e-02, ratio 2.8) - compare_egen (passed): gegen tag, missing results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.3e-02, ratio 2.6) - compare_egen (passed): gegen group results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.3e-02, ratio 2.6) - compare_egen (passed): gegen group, missing results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.3e-02, ratio 2.6) - compare_egen (passed): gegen counts results similar to gegen count (tol = 1.00000000000e-06) - -Checking [ in 864/8278] egen range: double1 - compare_egen (passed): gegen total results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.8e-02, ratio 3.6) + compare_egen (passed): gegen total results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.7e-02, ratio 2.8) compare_egen (passed): gegen sum results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.8e-02, ratio 3.6) - compare_egen (passed): gegen mean results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.7e-02, ratio 2.8) - compare_egen (passed): gegen sd results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 2.2e-02, ratio 4.4) - compare_egen (passed): gegen max results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.9e-02, ratio 3.8) - compare_egen (passed): gegen min results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.4e-02, ratio 2.8) - compare_egen (passed): gegen count results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.7e-02, ratio 2.8) - compare_egen (passed): gegen median results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.7e-02, ratio 3.4) - compare_egen (passed): gegen iqr results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 3.6e-02, ratio 7.2) - compare_egen (passed): gegen skew results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs .81, ratio 1.4e+02) - compare_egen (passed): gegen kurt results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs .77, ratio 1.3e+02) - compare_egen (passed): gegen percentile 1 results similar to egen (tol = 1.00000000000e-06; 1.1e-02 vs 2.9e-02, ratio 2.6) + compare_egen (passed): gegen mean results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.7e-02, ratio 3.4) + compare_egen (passed): gegen sd results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 2.1e-02, ratio 4.2) + compare_egen (passed): gegen max results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.8e-02, ratio 3.6) + compare_egen (passed): gegen min results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.5e-02, ratio 2.5) + compare_egen (passed): gegen count results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.8e-02, ratio 3) + compare_egen (passed): gegen median results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.7e-02, ratio 2.8) + compare_egen (passed): gegen iqr results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 3.9e-02, ratio 6.5) + compare_egen (passed): gegen skew results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs .88, ratio 1.8e+02) + compare_egen (passed): gegen kurt results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs .88, ratio 1.8e+02) + compare_egen (passed): gegen percentile 1 results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.8e-02, ratio 3.6) compare_egen (passed): gegen percentile 10 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.9e-02, ratio 3.2) compare_egen (passed): gegen percentile 30 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.9e-02, ratio 3.2) - compare_egen (passed): gegen percentile 50 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.9e-02, ratio 3.2) - compare_egen (passed): gegen percentile 70 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.8e-02, ratio 3) - compare_egen (passed): gegen percentile 90 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.7e-02, ratio 2.8) - compare_egen (passed): gegen percentile 99 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.9e-02, ratio 3.2) - compare_egen (passed): gegen tag results similar to egen (tol = 1.00000000000e-06; 4.0e-03 vs 1.4e-02, ratio 3.5) - compare_egen (passed): gegen tag, missing results similar to egen (tol = 1.00000000000e-06; 4.0e-03 vs 1.4e-02, ratio 3.5) - compare_egen (passed): gegen group results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.4e-02, ratio 2.8) - compare_egen (passed): gegen group, missing results similar to egen (tol = 1.00000000000e-06; 4.0e-03 vs 1.4e-02, ratio 3.5) + compare_egen (passed): gegen percentile 50 results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 2.0e-02, ratio 4) + compare_egen (passed): gegen percentile 70 results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.9e-02, ratio 3.8) + compare_egen (passed): gegen percentile 90 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.8e-02, ratio 3) + compare_egen (passed): gegen percentile 99 results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 2.0e-02, ratio 4) + compare_egen (passed): gegen tag results similar to egen (tol = 1.00000000000e-06; 4.0e-03 vs 1.6e-02, ratio 4) + compare_egen (passed): gegen tag, missing results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.5e-02, ratio 3) + compare_egen (passed): gegen group results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.5e-02, ratio 3) + compare_egen (passed): gegen group, missing results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.5e-02, ratio 3) compare_egen (passed): gegen counts results similar to gegen count (tol = 1.00000000000e-06) -Checking [if random2 > 0 ] egen range: double1 - compare_egen (passed): gegen total results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.6e-02, ratio 2.7) - compare_egen (passed): gegen sum results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.6e-02, ratio 2.7) - compare_egen (passed): gegen mean results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.5e-02, ratio 2.5) - compare_egen (passed): gegen sd results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.8e-02, ratio 3) - compare_egen (passed): gegen max results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.6e-02, ratio 2.7) - compare_egen (passed): gegen min results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.5e-02, ratio 3) - compare_egen (passed): gegen count results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.6e-02, ratio 2.7) - compare_egen (passed): gegen median results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.7e-02, ratio 2.8) - compare_egen (passed): gegen iqr results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 3.4e-02, ratio 6.8) - compare_egen (passed): gegen skew results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs .42, ratio 70) - compare_egen (passed): gegen kurt results similar to egen (tol = 1.00000000000e-06; 1.2e-02 vs .81, ratio 67) - compare_egen (passed): gegen percentile 1 results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.7e-02, ratio 3.4) - compare_egen (passed): gegen percentile 10 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.6e-02, ratio 2.7) +Checking [ in 864/8278] egen range: double1 + compare_egen (passed): gegen total results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 2.0e-02, ratio 4) + compare_egen (passed): gegen sum results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 2.0e-02, ratio 4) + compare_egen (passed): gegen mean results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 2.2e-02, ratio 4.4) + compare_egen (passed): gegen sd results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 3.0e-02, ratio 6) + compare_egen (passed): gegen max results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.6e-02, ratio 3.3) + compare_egen (passed): gegen min results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.8e-02, ratio 3) + compare_egen (passed): gegen count results similar to egen (tol = 1.00000000000e-06; 1.2e-02 vs 3.8e-02, ratio 3.2) + compare_egen (passed): gegen median results similar to egen (tol = 1.00000000000e-06; 1.0e-02 vs 2.7e-02, ratio 2.7) + compare_egen (passed): gegen iqr results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 6.6e-02, ratio 11) + compare_egen (passed): gegen skew results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.8, ratio 3.0e+02) + compare_egen (passed): gegen kurt results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs .93, ratio 1.3e+02) + compare_egen (passed): gegen percentile 1 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 3.7e-02, ratio 5.3) + compare_egen (passed): gegen percentile 10 results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 3.1e-02, ratio 3.4) compare_egen (passed): gegen percentile 30 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.1e-02, ratio 3.5) - compare_egen (passed): gegen percentile 50 results similar to egen (tol = 1.00000000000e-06; 1.3e-02 vs 2.7e-02, ratio 2.1) - compare_egen (passed): gegen percentile 70 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 1.9e-02, ratio 2.7) - compare_egen (passed): gegen percentile 90 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 1.6e-02, ratio 2.3) - compare_egen (passed): gegen percentile 99 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.5e-02, ratio 2.5) - compare_egen (passed): gegen tag results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 2.0e-02, ratio 4) - compare_egen (passed): gegen tag, missing results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 3.2e-02, ratio 4) - compare_egen (passed): gegen group results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 1.7e-02, ratio 1.9) - compare_egen (passed): gegen group, missing results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.4e-02, ratio 2.3) + compare_egen (passed): gegen percentile 50 results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 2.0e-02, ratio 4) + compare_egen (passed): gegen percentile 70 results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 2.1e-02, ratio 4.2) + compare_egen (passed): gegen percentile 90 results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.9e-02, ratio 3.8) + compare_egen (passed): gegen percentile 99 results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 2.3e-02, ratio 4.6) + compare_egen (passed): gegen tag results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.5e-02, ratio 3) + compare_egen (passed): gegen tag, missing results similar to egen (tol = 1.00000000000e-06; 4.0e-03 vs 1.6e-02, ratio 4) + compare_egen (passed): gegen group results similar to egen (tol = 1.00000000000e-06; 4.0e-03 vs 1.7e-02, ratio 4.3) + compare_egen (passed): gegen group, missing results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.6e-02, ratio 3.2) compare_egen (passed): gegen counts results similar to gegen count (tol = 1.00000000000e-06) -Checking [if random2 < 0 in 1117/9902] egen range: double1 - compare_egen (passed): gegen total results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.7e-02, ratio 3.4) - compare_egen (passed): gegen sum results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.7e-02, ratio 3.4) +Checking [if random2 > 0 ] egen range: double1 + compare_egen (passed): gegen total results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.8e-02, ratio 3.6) + compare_egen (passed): gegen sum results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.8e-02, ratio 3.6) compare_egen (passed): gegen mean results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.7e-02, ratio 2.8) - compare_egen (passed): gegen sd results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.0e-02, ratio 3.3) - compare_egen (passed): gegen max results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.7e-02, ratio 2.8) - compare_egen (passed): gegen min results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.4e-02, ratio 2.3) - compare_egen (passed): gegen count results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.7e-02, ratio 2.8) - compare_egen (passed): gegen median results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.8e-02, ratio 3) - compare_egen (passed): gegen iqr results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 3.4e-02, ratio 6.8) - compare_egen (passed): gegen skew results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs .51, ratio 85) - compare_egen (passed): gegen kurt results similar to egen (tol = 1.00000000000e-06; 1.0e-02 vs .55, ratio 55) - compare_egen (passed): gegen percentile 1 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.5e-02, ratio 2.5) - compare_egen (passed): gegen percentile 10 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.9e-02, ratio 3.2) - compare_egen (passed): gegen percentile 30 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 3.4e-02, ratio 4.9) - compare_egen (passed): gegen percentile 50 results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.0e-02, ratio 2.5) - compare_egen (passed): gegen percentile 70 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.9e-02, ratio 3.2) - compare_egen (passed): gegen percentile 90 results similar to egen (tol = 1.00000000000e-06; 1.2e-02 vs 2.8e-02, ratio 2.3) - compare_egen (passed): gegen percentile 99 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.7e-02, ratio 2.8) - compare_egen (passed): gegen tag results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 2.8e-02, ratio 5.6) - compare_egen (passed): gegen tag, missing results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 1.6e-02, ratio 2.3) - compare_egen (passed): gegen group results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.5e-02, ratio 3) - compare_egen (passed): gegen group, missing results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.5e-02, ratio 2.5) + compare_egen (passed): gegen sd results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.2e-02, ratio 3.7) + compare_egen (passed): gegen max results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.0e-02, ratio 3.3) + compare_egen (passed): gegen min results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.5e-02, ratio 4.2) + compare_egen (passed): gegen count results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 3.7e-02, ratio 4.1) + compare_egen (passed): gegen median results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 2.0e-02, ratio 2.2) + compare_egen (passed): gegen iqr results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 3.9e-02, ratio 6.5) + compare_egen (passed): gegen skew results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs .52, ratio 86) + compare_egen (passed): gegen kurt results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs .44, ratio 73) + compare_egen (passed): gegen percentile 1 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.3e-02, ratio 3.8) + compare_egen (passed): gegen percentile 10 results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 3.6e-02, ratio 4) + compare_egen (passed): gegen percentile 30 results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 3.0e-02, ratio 3.3) + compare_egen (passed): gegen percentile 50 results similar to egen (tol = 1.00000000000e-06; 1.1e-02 vs 4.4e-02, ratio 4) + compare_egen (passed): gegen percentile 70 results similar to egen (tol = 1.00000000000e-06; 1.3e-02 vs 4.9e-02, ratio 3.8) + compare_egen (passed): gegen percentile 90 results similar to egen (tol = 1.00000000000e-06; 1.6e-02 vs 7.7e-02, ratio 4.8) + compare_egen (passed): gegen percentile 99 results similar to egen (tol = 1.00000000000e-06; 1.3e-02 vs 6.3e-02, ratio 4.8) + compare_egen (passed): gegen tag results similar to egen (tol = 1.00000000000e-06; 1.2e-02 vs 3.9e-02, ratio 3.3) + compare_egen (passed): gegen tag, missing results similar to egen (tol = 1.00000000000e-06; 1.3e-02 vs 4.6e-02, ratio 3.5) + compare_egen (passed): gegen group results similar to egen (tol = 1.00000000000e-06; 1.3e-02 vs 4.3e-02, ratio 3.3) + compare_egen (passed): gegen group, missing results similar to egen (tol = 1.00000000000e-06; 1.1e-02 vs 4.5e-02, ratio 4.1) + compare_egen (passed): gegen counts results similar to gegen count (tol = 1.00000000000e-06) + +Checking [if random2 < 0 in 1117/9902] egen range: double1 + compare_egen (passed): gegen total results similar to egen (tol = 1.00000000000e-06; 1.1e-02 vs 4.1e-02, ratio 3.7) + compare_egen (passed): gegen sum results similar to egen (tol = 1.00000000000e-06; 1.0e-02 vs 2.6e-02, ratio 2.6) + compare_egen (passed): gegen mean results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 3.4e-02, ratio 5.7) + compare_egen (passed): gegen sd results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.5e-02, ratio 4.2) + compare_egen (passed): gegen max results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 2.8e-02, ratio 5.6) + compare_egen (passed): gegen min results similar to egen (tol = 1.00000000000e-06; 1.1e-02 vs 4.6e-02, ratio 4.2) + compare_egen (passed): gegen count results similar to egen (tol = 1.00000000000e-06; 1.7e-02 vs 5.9e-02, ratio 3.5) + compare_egen (passed): gegen median results similar to egen (tol = 1.00000000000e-06; 1.5e-02 vs 7.2e-02, ratio 4.8) + compare_egen (passed): gegen iqr results similar to egen (tol = 1.00000000000e-06; 1.1e-02 vs .13, ratio 12) + compare_egen (passed): gegen skew results similar to egen (tol = 1.00000000000e-06; 1.6e-02 vs .73, ratio 46) + compare_egen (passed): gegen kurt results similar to egen (tol = 1.00000000000e-06; 1.2e-02 vs 2, ratio 1.7e+02) + compare_egen (passed): gegen percentile 1 results similar to egen (tol = 1.00000000000e-06; 1.8e-02 vs 9.1e-02, ratio 5.1) + compare_egen (passed): gegen percentile 10 results similar to egen (tol = 1.00000000000e-06; 2.1e-02 vs 8.2e-02, ratio 3.9) + compare_egen (passed): gegen percentile 30 results similar to egen (tol = 1.00000000000e-06; 2.0e-02 vs 6.0e-02, ratio 3) + compare_egen (passed): gegen percentile 50 results similar to egen (tol = 1.00000000000e-06; 1.3e-02 vs 7.0e-02, ratio 5.4) + compare_egen (passed): gegen percentile 70 results similar to egen (tol = 1.00000000000e-06; 2.0e-02 vs 9.4e-02, ratio 4.7) + compare_egen (passed): gegen percentile 90 results similar to egen (tol = 1.00000000000e-06; 1.7e-02 vs .1, ratio 5.9) + compare_egen (passed): gegen percentile 99 results similar to egen (tol = 1.00000000000e-06; 1.5e-02 vs 7.8e-02, ratio 5.2) + compare_egen (passed): gegen tag results similar to egen (tol = 1.00000000000e-06; 1.6e-02 vs 7.2e-02, ratio 4.5) + compare_egen (passed): gegen tag, missing results similar to egen (tol = 1.00000000000e-06; 1.6e-02 vs 9.2e-02, ratio 5.8) + compare_egen (passed): gegen group results similar to egen (tol = 1.00000000000e-06; 2.2e-02 vs 7.4e-02, ratio 3.4) + compare_egen (passed): gegen group, missing results similar to egen (tol = 1.00000000000e-06; 1.2e-02 vs 8.6e-02, ratio 7.2) compare_egen (passed): gegen counts results similar to gegen count (tol = 1.00000000000e-06) @@ -1369,103 +1380,103 @@ Checking egen. N = 10,000; varlist = double1 double2 ---------------------------------------------------- Checking full egen range: double1 double2 - compare_egen (passed): gegen total results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 1.8e-02, ratio 2.6) - compare_egen (passed): gegen sum results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.6e-02, ratio 2.7) - compare_egen (passed): gegen mean results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.5e-02, ratio 2.5) - compare_egen (passed): gegen sd results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.9e-02, ratio 3.2) - compare_egen (passed): gegen max results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.6e-02, ratio 2.7) - compare_egen (passed): gegen min results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.4e-02, ratio 2.3) - compare_egen (passed): gegen count results similar to egen (tol = 1.00000000000e-06; 1.2e-02 vs 2.9e-02, ratio 2.4) - compare_egen (passed): gegen median results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 4.4e-02, ratio 5.5) - compare_egen (passed): gegen iqr results similar to egen (tol = 1.00000000000e-06; 1.5e-02 vs 4.7e-02, ratio 3.1) - compare_egen (passed): gegen skew results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs .82, ratio 1.2e+02) - compare_egen (passed): gegen kurt results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs .94, ratio 1.6e+02) - compare_egen (passed): gegen percentile 1 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 1.5e-02, ratio 2.1) - compare_egen (passed): gegen percentile 10 results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.5e-02, ratio 3) - compare_egen (passed): gegen percentile 30 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.2e-02, ratio 3.7) - compare_egen (passed): gegen percentile 50 results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 2.8e-02, ratio 3.1) - compare_egen (passed): gegen percentile 70 results similar to egen (tol = 1.00000000000e-06; 1.7e-02 vs 2.5e-02, ratio 1.5) - compare_egen (passed): gegen percentile 90 results similar to egen (tol = 1.00000000000e-06; 1.4e-02 vs 3.1e-02, ratio 2.2) - compare_egen (passed): gegen percentile 99 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 1.8e-02, ratio 2.6) - compare_egen (passed): gegen tag results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.3e-02, ratio 2.6) - compare_egen (passed): gegen tag, missing results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.4e-02, ratio 2.8) - compare_egen (passed): gegen group results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 2.8e-02, ratio 5.6) - compare_egen (passed): gegen group, missing results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.5e-02, ratio 2.5) + compare_egen (passed): gegen total results similar to egen (tol = 1.00000000000e-06; 1.3e-02 vs 4.2e-02, ratio 3.2) + compare_egen (passed): gegen sum results similar to egen (tol = 1.00000000000e-06; 2.5e-02 vs 8.1e-02, ratio 3.2) + compare_egen (passed): gegen mean results similar to egen (tol = 1.00000000000e-06; 1.7e-02 vs 7.7e-02, ratio 4.5) + compare_egen (passed): gegen sd results similar to egen (tol = 1.00000000000e-06; 2.5e-02 vs 9.4e-02, ratio 3.8) + compare_egen (passed): gegen max results similar to egen (tol = 1.00000000000e-06; 2.8e-02 vs 9.6e-02, ratio 3.4) + compare_egen (passed): gegen min results similar to egen (tol = 1.00000000000e-06; 2.4e-02 vs 8.5e-02, ratio 3.5) + compare_egen (passed): gegen count results similar to egen (tol = 1.00000000000e-06; 2.8e-02 vs 7.5e-02, ratio 2.7) + compare_egen (passed): gegen median results similar to egen (tol = 1.00000000000e-06; 2.3e-02 vs 7.9e-02, ratio 3.4) + compare_egen (passed): gegen iqr results similar to egen (tol = 1.00000000000e-06; 2.1e-02 vs .22, ratio 10) + compare_egen (passed): gegen skew results similar to egen (tol = 1.00000000000e-06; 2.3e-02 vs 6.4, ratio 2.8e+02) + compare_egen (passed): gegen kurt results similar to egen (tol = 1.00000000000e-06; 2.0e-02 vs 5.9, ratio 3.0e+02) + compare_egen (passed): gegen percentile 1 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 3.4e-02, ratio 4.9) + compare_egen (passed): gegen percentile 10 results similar to egen (tol = 1.00000000000e-06; 1.4e-02 vs 8.0e-02, ratio 5.7) + compare_egen (passed): gegen percentile 30 results similar to egen (tol = 1.00000000000e-06; 2.0e-02 vs 4.4e-02, ratio 2.2) + compare_egen (passed): gegen percentile 50 results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 4.1e-02, ratio 4.6) + compare_egen (passed): gegen percentile 70 results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.8e-02, ratio 3.5) + compare_egen (passed): gegen percentile 90 results similar to egen (tol = 1.00000000000e-06; 1.1e-02 vs 7.8e-02, ratio 7.1) + compare_egen (passed): gegen percentile 99 results similar to egen (tol = 1.00000000000e-06; 1.8e-02 vs 5.5e-02, ratio 3.1) + compare_egen (passed): gegen tag results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.5e-02, ratio 4.2) + compare_egen (passed): gegen tag, missing results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.6e-02, ratio 4.3) + compare_egen (passed): gegen group results similar to egen (tol = 1.00000000000e-06; 1.3e-02 vs 2.7e-02, ratio 2.1) + compare_egen (passed): gegen group, missing results similar to egen (tol = 1.00000000000e-06; 1.4e-02 vs 2.2e-02, ratio 1.6) compare_egen (passed): gegen counts results similar to gegen count (tol = 1.00000000000e-06) Checking [ in 127/8708] egen range: double1 double2 - compare_egen (passed): gegen total results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 2.2e-02, ratio 2.4) - compare_egen (passed): gegen sum results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.8e-02, ratio 3) - compare_egen (passed): gegen mean results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.7e-02, ratio 2.8) - compare_egen (passed): gegen sd results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.1e-02, ratio 3.5) - compare_egen (passed): gegen max results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.7e-02, ratio 2.8) - compare_egen (passed): gegen min results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.3e-02, ratio 2.6) - compare_egen (passed): gegen count results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.6e-02, ratio 2.7) - compare_egen (passed): gegen median results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.8e-02, ratio 3.6) - compare_egen (passed): gegen iqr results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 3.6e-02, ratio 6) - compare_egen (passed): gegen skew results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs .89, ratio 1.3e+02) - compare_egen (passed): gegen kurt results similar to egen (tol = 1.00000000000e-06; 1.1e-02 vs 1, ratio 91) - compare_egen (passed): gegen percentile 1 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 3.7e-02, ratio 5.3) - compare_egen (passed): gegen percentile 10 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.2e-02, ratio 3.1) - compare_egen (passed): gegen percentile 30 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.9e-02, ratio 3.2) - compare_egen (passed): gegen percentile 50 results similar to egen (tol = 1.00000000000e-06; 1.3e-02 vs 3.8e-02, ratio 2.9) - compare_egen (passed): gegen percentile 70 results similar to egen (tol = 1.00000000000e-06; 1.0e-02 vs 1.9e-02, ratio 1.9) - compare_egen (passed): gegen percentile 90 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 1.9e-02, ratio 2.7) - compare_egen (passed): gegen percentile 99 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.7e-02, ratio 2.8) - compare_egen (passed): gegen tag results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.4e-02, ratio 2.8) - compare_egen (passed): gegen tag, missing results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.3e-02, ratio 2.6) - compare_egen (passed): gegen group results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.4e-02, ratio 2.8) - compare_egen (passed): gegen group, missing results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.3e-02, ratio 2.6) + compare_egen (passed): gegen total results similar to egen (tol = 1.00000000000e-06; 2.6e-02 vs .11, ratio 4.3) + compare_egen (passed): gegen sum results similar to egen (tol = 1.00000000000e-06; 2.8e-02 vs .11, ratio 3.9) + compare_egen (passed): gegen mean results similar to egen (tol = 1.00000000000e-06; 1.3e-02 vs 2.9e-02, ratio 2.2) + compare_egen (passed): gegen sd results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 8.0e-02, ratio 13) + compare_egen (passed): gegen max results similar to egen (tol = 1.00000000000e-06; 2.3e-02 vs .11, ratio 4.7) + compare_egen (passed): gegen min results similar to egen (tol = 1.00000000000e-06; 2.5e-02 vs 6.6e-02, ratio 2.6) + compare_egen (passed): gegen count results similar to egen (tol = 1.00000000000e-06; 2.3e-02 vs 8.7e-02, ratio 3.8) + compare_egen (passed): gegen median results similar to egen (tol = 1.00000000000e-06; 2.8e-02 vs 8.7e-02, ratio 3.1) + compare_egen (passed): gegen iqr results similar to egen (tol = 1.00000000000e-06; 2.2e-02 vs .18, ratio 8) + compare_egen (passed): gegen skew results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 3.2, ratio 4.0e+02) + compare_egen (passed): gegen kurt results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.4, ratio 2.3e+02) + compare_egen (passed): gegen percentile 1 results similar to egen (tol = 1.00000000000e-06; 1.0e-02 vs 5.6e-02, ratio 5.6) + compare_egen (passed): gegen percentile 10 results similar to egen (tol = 1.00000000000e-06; 1.2e-02 vs 5.0e-02, ratio 4.2) + compare_egen (passed): gegen percentile 30 results similar to egen (tol = 1.00000000000e-06; 1.2e-02 vs 4.8e-02, ratio 4) + compare_egen (passed): gegen percentile 50 results similar to egen (tol = 1.00000000000e-06; 1.1e-02 vs 9.5e-02, ratio 8.6) + compare_egen (passed): gegen percentile 70 results similar to egen (tol = 1.00000000000e-06; 1.8e-02 vs 7.4e-02, ratio 4.1) + compare_egen (passed): gegen percentile 90 results similar to egen (tol = 1.00000000000e-06; 2.3e-02 vs 5.4e-02, ratio 2.3) + compare_egen (passed): gegen percentile 99 results similar to egen (tol = 1.00000000000e-06; 1.3e-02 vs 5.2e-02, ratio 4) + compare_egen (passed): gegen tag results similar to egen (tol = 1.00000000000e-06; 1.3e-02 vs 3.8e-02, ratio 2.9) + compare_egen (passed): gegen tag, missing results similar to egen (tol = 1.00000000000e-06; 1.0e-02 vs 5.0e-02, ratio 5) + compare_egen (passed): gegen group results similar to egen (tol = 1.00000000000e-06; 1.2e-02 vs 2.2e-02, ratio 1.8) + compare_egen (passed): gegen group, missing results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 3.5e-02, ratio 5.8) compare_egen (passed): gegen counts results similar to gegen count (tol = 1.00000000000e-06) Checking [if random2 > 0 ] egen range: double1 double2 - compare_egen (passed): gegen total results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.5e-02, ratio 2.5) - compare_egen (passed): gegen sum results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.5e-02, ratio 2.5) - compare_egen (passed): gegen mean results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.4e-02, ratio 2.8) - compare_egen (passed): gegen sd results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.7e-02, ratio 2.8) - compare_egen (passed): gegen max results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.7e-02, ratio 3.4) - compare_egen (passed): gegen min results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.3e-02, ratio 2.6) - compare_egen (passed): gegen count results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.5e-02, ratio 2.5) - compare_egen (passed): gegen median results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.8e-02, ratio 3) - compare_egen (passed): gegen iqr results similar to egen (tol = 1.00000000000e-06; 1.2e-02 vs 5.8e-02, ratio 4.8) - compare_egen (passed): gegen skew results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs .53, ratio 76) - compare_egen (passed): gegen kurt results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs .45, ratio 56) - compare_egen (passed): gegen percentile 1 results similar to egen (tol = 1.00000000000e-06; 1.1e-02 vs 4.3e-02, ratio 3.9) - compare_egen (passed): gegen percentile 10 results similar to egen (tol = 1.00000000000e-06; 1.2e-02 vs 2.2e-02, ratio 1.8) - compare_egen (passed): gegen percentile 30 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.2e-02, ratio 3.1) - compare_egen (passed): gegen percentile 50 results similar to egen (tol = 1.00000000000e-06; 1.1e-02 vs 2.3e-02, ratio 2.1) - compare_egen (passed): gegen percentile 70 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.7e-02, ratio 2.8) - compare_egen (passed): gegen percentile 90 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 1.5e-02, ratio 2.1) - compare_egen (passed): gegen percentile 99 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 1.5e-02, ratio 2.1) - compare_egen (passed): gegen tag results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.4e-02, ratio 2.8) - compare_egen (passed): gegen tag, missing results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.3e-02, ratio 2.6) - compare_egen (passed): gegen group results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.2e-02, ratio 2.4) - compare_egen (passed): gegen group, missing results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.4e-02, ratio 2.8) + compare_egen (passed): gegen total results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.0e-02, ratio 2.9) + compare_egen (passed): gegen sum results similar to egen (tol = 1.00000000000e-06; 1.1e-02 vs 6.0e-02, ratio 5.5) + compare_egen (passed): gegen mean results similar to egen (tol = 1.00000000000e-06; 1.5e-02 vs 3.8e-02, ratio 2.5) + compare_egen (passed): gegen sd results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.7e-02, ratio 3.4) + compare_egen (passed): gegen max results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.0e-02, ratio 2.9) + compare_egen (passed): gegen min results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.9e-02, ratio 4.8) + compare_egen (passed): gegen count results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.1e-02, ratio 3) + compare_egen (passed): gegen median results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.0e-02, ratio 3.3) + compare_egen (passed): gegen iqr results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 5.4e-02, ratio 9) + compare_egen (passed): gegen skew results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs .83, ratio 1.2e+02) + compare_egen (passed): gegen kurt results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs .96, ratio 1.6e+02) + compare_egen (passed): gegen percentile 1 results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.6e-02, ratio 3.3) + compare_egen (passed): gegen percentile 10 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.0e-02, ratio 2.9) + compare_egen (passed): gegen percentile 30 results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 2.7e-02, ratio 3) + compare_egen (passed): gegen percentile 50 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.0e-02, ratio 3.3) + compare_egen (passed): gegen percentile 70 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.9e-02, ratio 3.2) + compare_egen (passed): gegen percentile 90 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 3.4e-02, ratio 5.7) + compare_egen (passed): gegen percentile 99 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.3e-02, ratio 3.3) + compare_egen (passed): gegen tag results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 5.5e-02, ratio 9.2) + compare_egen (passed): gegen tag, missing results similar to egen (tol = 1.00000000000e-06; 1.5e-02 vs 2.8e-02, ratio 1.9) + compare_egen (passed): gegen group results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.6e-02, ratio 3.7) + compare_egen (passed): gegen group, missing results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 2.4e-02, ratio 2.7) compare_egen (passed): gegen counts results similar to gegen count (tol = 1.00000000000e-06) Checking [if random2 < 0 in 1800/8698] egen range: double1 double2 - compare_egen (passed): gegen total results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.8e-02, ratio 3.6) - compare_egen (passed): gegen sum results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.6e-02, ratio 3.2) - compare_egen (passed): gegen mean results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.5e-02, ratio 3) - compare_egen (passed): gegen sd results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.9e-02, ratio 3.8) - compare_egen (passed): gegen max results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.6e-02, ratio 2.7) - compare_egen (passed): gegen min results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.4e-02, ratio 2.8) - compare_egen (passed): gegen count results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.7e-02, ratio 2.8) - compare_egen (passed): gegen median results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.7e-02, ratio 2.8) - compare_egen (passed): gegen iqr results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 3.5e-02, ratio 5.8) - compare_egen (passed): gegen skew results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs .36, ratio 72) - compare_egen (passed): gegen kurt results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs .41, ratio 81) - compare_egen (passed): gegen percentile 1 results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.6e-02, ratio 3.2) - compare_egen (passed): gegen percentile 10 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.5e-02, ratio 2.5) - compare_egen (passed): gegen percentile 30 results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.6e-02, ratio 3.2) - compare_egen (passed): gegen percentile 50 results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.7e-02, ratio 3.4) - compare_egen (passed): gegen percentile 70 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.5e-02, ratio 2.5) - compare_egen (passed): gegen percentile 90 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 1.5e-02, ratio 2.1) - compare_egen (passed): gegen percentile 99 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.7e-02, ratio 2.8) - compare_egen (passed): gegen tag results similar to egen (tol = 1.00000000000e-06; 4.0e-03 vs 1.7e-02, ratio 4.3) - compare_egen (passed): gegen tag, missing results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 3.0e-02, ratio 6) - compare_egen (passed): gegen group results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.3e-02, ratio 3.8) - compare_egen (passed): gegen group, missing results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 3.2e-02, ratio 4) + compare_egen (passed): gegen total results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.8e-02, ratio 4.7) + compare_egen (passed): gegen sum results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.5e-02, ratio 3.1) + compare_egen (passed): gegen mean results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.1e-02, ratio 3.5) + compare_egen (passed): gegen sd results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 3.1e-02, ratio 6.2) + compare_egen (passed): gegen max results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.4e-02, ratio 3) + compare_egen (passed): gegen min results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.4e-02, ratio 4) + compare_egen (passed): gegen count results similar to egen (tol = 1.00000000000e-06; 1.1e-02 vs 4.4e-02, ratio 4) + compare_egen (passed): gegen median results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 3.9e-02, ratio 5.6) + compare_egen (passed): gegen iqr results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 6.9e-02, ratio 8.6) + compare_egen (passed): gegen skew results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs .67, ratio 95) + compare_egen (passed): gegen kurt results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs .75, ratio 1.3e+02) + compare_egen (passed): gegen percentile 1 results similar to egen (tol = 1.00000000000e-06; 1.3e-02 vs 5.0e-02, ratio 3.8) + compare_egen (passed): gegen percentile 10 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.2e-02, ratio 3.1) + compare_egen (passed): gegen percentile 30 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 5.4e-02, ratio 7.7) + compare_egen (passed): gegen percentile 50 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 3.6e-02, ratio 5.1) + compare_egen (passed): gegen percentile 70 results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 3.4e-02, ratio 3.8) + compare_egen (passed): gegen percentile 90 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.1e-02, ratio 3.5) + compare_egen (passed): gegen percentile 99 results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 2.0e-02, ratio 4) + compare_egen (passed): gegen tag results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.9e-02, ratio 4.1) + compare_egen (passed): gegen tag, missing results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.8e-02, ratio 3) + compare_egen (passed): gegen group results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.7e-02, ratio 3.4) + compare_egen (passed): gegen group, missing results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 2.3e-02, ratio 4.6) compare_egen (passed): gegen counts results similar to gegen count (tol = 1.00000000000e-06) @@ -1473,103 +1484,103 @@ Checking egen. N = 10,000; varlist = double1 double2 double3 ------------------------------------------------------------ Checking full egen range: double1 double2 double3 - compare_egen (passed): gegen total results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 8.0e-03, ratio 1.3) - compare_egen (passed): gegen sum results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 8.0e-03, ratio 1.3) - compare_egen (passed): gegen mean results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 7.0e-03, ratio 1.2) - compare_egen (passed): gegen sd results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.2e-02, ratio 2) - compare_egen (passed): gegen max results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 8.0e-03, ratio 1.3) - compare_egen (passed): gegen min results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 5.0e-03, ratio .83) - compare_egen (passed): gegen count results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 7.0e-03, ratio 1.2) - compare_egen (passed): gegen median results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 8.0e-03, ratio 1.3) - compare_egen (passed): gegen iqr results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.1e-02, ratio 3.5) - compare_egen (passed): gegen skew results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs .79, ratio 1.3e+02) - compare_egen (passed): gegen kurt results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs .78, ratio 1.6e+02) - compare_egen (passed): gegen percentile 1 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 9.0e-03, ratio 1.5) - compare_egen (passed): gegen percentile 10 results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.0e-02, ratio 2) - compare_egen (passed): gegen percentile 30 results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.0e-02, ratio 2) - compare_egen (passed): gegen percentile 50 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.1e-02, ratio 1.8) - compare_egen (passed): gegen percentile 70 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.0e-02, ratio 1.7) - compare_egen (passed): gegen percentile 90 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.3e-02, ratio 2.2) - compare_egen (passed): gegen percentile 99 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.0e-02, ratio 1.7) - compare_egen (passed): gegen tag results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.6e-02, ratio 3.2) - compare_egen (passed): gegen tag, missing results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 6.0e-03, ratio 1.2) - compare_egen (passed): gegen group results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.4e-02, ratio 2.8) - compare_egen (passed): gegen group, missing results similar to egen (tol = 1.00000000000e-06; 4.0e-03 vs 6.0e-03, ratio 1.5) + compare_egen (passed): gegen total results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 1.0e-02, ratio 1.4) + compare_egen (passed): gegen sum results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 9.0e-03, ratio 1.5) + compare_egen (passed): gegen mean results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 1.7e-02, ratio 2.4) + compare_egen (passed): gegen sd results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 1.4e-02, ratio 2) + compare_egen (passed): gegen max results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.0e-02, ratio 1.7) + compare_egen (passed): gegen min results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 7.0e-03, ratio 1.2) + compare_egen (passed): gegen count results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 9.0e-03, ratio 1.8) + compare_egen (passed): gegen median results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 1.7e-02, ratio 2.4) + compare_egen (passed): gegen iqr results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.9e-02, ratio 3.6) + compare_egen (passed): gegen skew results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.5, ratio 2.5e+02) + compare_egen (passed): gegen kurt results similar to egen (tol = 1.00000000000e-06; 1.4e-02 vs 1.4, ratio 1.0e+02) + compare_egen (passed): gegen percentile 1 results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.2e-02, ratio 2.4) + compare_egen (passed): gegen percentile 10 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.2e-02, ratio 2) + compare_egen (passed): gegen percentile 30 results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.2e-02, ratio 2.4) + compare_egen (passed): gegen percentile 50 results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.2e-02, ratio 2.4) + compare_egen (passed): gegen percentile 70 results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.2e-02, ratio 2.4) + compare_egen (passed): gegen percentile 90 results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.2e-02, ratio 2.4) + compare_egen (passed): gegen percentile 99 results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.3e-02, ratio 2.6) + compare_egen (passed): gegen tag results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.7e-02, ratio 3.4) + compare_egen (passed): gegen tag, missing results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 7.0e-03, ratio 1.4) + compare_egen (passed): gegen group results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.6e-02, ratio 2.7) + compare_egen (passed): gegen group, missing results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 8.0e-03, ratio 1.6) compare_egen (passed): gegen counts results similar to gegen count (tol = 1.00000000000e-06) Checking [ in 2078/9827] egen range: double1 double2 double3 - compare_egen (passed): gegen total results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.6e-02, ratio 3.2) - compare_egen (passed): gegen sum results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.6e-02, ratio 3.2) - compare_egen (passed): gegen mean results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.5e-02, ratio 2.5) - compare_egen (passed): gegen sd results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.8e-02, ratio 3) - compare_egen (passed): gegen max results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.7e-02, ratio 3.4) - compare_egen (passed): gegen min results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.5e-02, ratio 3) - compare_egen (passed): gegen count results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.5e-02, ratio 3) - compare_egen (passed): gegen median results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.8e-02, ratio 3) - compare_egen (passed): gegen iqr results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 3.6e-02, ratio 7.2) - compare_egen (passed): gegen skew results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.4, ratio 2.3e+02) - compare_egen (passed): gegen kurt results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs .95, ratio 1.6e+02) - compare_egen (passed): gegen percentile 1 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.7e-02, ratio 2.8) - compare_egen (passed): gegen percentile 10 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.7e-02, ratio 2.8) - compare_egen (passed): gegen percentile 30 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.8e-02, ratio 3) - compare_egen (passed): gegen percentile 50 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 3.7e-02, ratio 6.2) - compare_egen (passed): gegen percentile 70 results similar to egen (tol = 1.00000000000e-06; 1.2e-02 vs 4.4e-02, ratio 3.7) - compare_egen (passed): gegen percentile 90 results similar to egen (tol = 1.00000000000e-06; 1.5e-02 vs 3.4e-02, ratio 2.3) - compare_egen (passed): gegen percentile 99 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 1.9e-02, ratio 2.7) - compare_egen (passed): gegen tag results similar to egen (tol = 1.00000000000e-06; 4.0e-03 vs 1.7e-02, ratio 4.3) - compare_egen (passed): gegen tag, missing results similar to egen (tol = 1.00000000000e-06; 4.0e-03 vs 1.4e-02, ratio 3.5) - compare_egen (passed): gegen group results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.5e-02, ratio 3) - compare_egen (passed): gegen group, missing results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.4e-02, ratio 2.8) + compare_egen (passed): gegen total results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.4e-02, ratio 4) + compare_egen (passed): gegen sum results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.7e-02, ratio 3.4) + compare_egen (passed): gegen mean results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.0e-02, ratio 3.3) + compare_egen (passed): gegen sd results similar to egen (tol = 1.00000000000e-06; 1.1e-02 vs 4.4e-02, ratio 4) + compare_egen (passed): gegen max results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 4.6e-02, ratio 5.1) + compare_egen (passed): gegen min results similar to egen (tol = 1.00000000000e-06; 1.0e-02 vs 3.9e-02, ratio 3.9) + compare_egen (passed): gegen count results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.3e-02, ratio 2.9) + compare_egen (passed): gegen median results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.1e-02, ratio 3.5) + compare_egen (passed): gegen iqr results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 4.4e-02, ratio 8.8) + compare_egen (passed): gegen skew results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs .62, ratio 1.0e+02) + compare_egen (passed): gegen kurt results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs .72, ratio 1.4e+02) + compare_egen (passed): gegen percentile 1 results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 2.0e-02, ratio 4) + compare_egen (passed): gegen percentile 10 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.1e-02, ratio 3.5) + compare_egen (passed): gegen percentile 30 results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 2.1e-02, ratio 4.2) + compare_egen (passed): gegen percentile 50 results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 2.1e-02, ratio 4.2) + compare_egen (passed): gegen percentile 70 results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 2.1e-02, ratio 4.2) + compare_egen (passed): gegen percentile 90 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.1e-02, ratio 3.5) + compare_egen (passed): gegen percentile 99 results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 2.3e-02, ratio 4.6) + compare_egen (passed): gegen tag results similar to egen (tol = 1.00000000000e-06; 4.0e-03 vs 1.8e-02, ratio 4.5) + compare_egen (passed): gegen tag, missing results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.8e-02, ratio 3.6) + compare_egen (passed): gegen group results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.6e-02, ratio 3.2) + compare_egen (passed): gegen group, missing results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.8e-02, ratio 3.6) compare_egen (passed): gegen counts results similar to gegen count (tol = 1.00000000000e-06) Checking [if random2 > 0 ] egen range: double1 double2 double3 - compare_egen (passed): gegen total results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.8e-02, ratio 3.6) - compare_egen (passed): gegen sum results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.4e-02, ratio 3.4) - compare_egen (passed): gegen mean results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 2.5e-02, ratio 2.8) - compare_egen (passed): gegen sd results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.0e-02, ratio 2.9) - compare_egen (passed): gegen max results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.7e-02, ratio 2.8) - compare_egen (passed): gegen min results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.4e-02, ratio 2.8) - compare_egen (passed): gegen count results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.6e-02, ratio 3.2) - compare_egen (passed): gegen median results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.7e-02, ratio 3.4) - compare_egen (passed): gegen iqr results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 3.3e-02, ratio 6.6) - compare_egen (passed): gegen skew results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs .54, ratio 1.1e+02) - compare_egen (passed): gegen kurt results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs .45, ratio 64) - compare_egen (passed): gegen percentile 1 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.4e-02, ratio 2.3) - compare_egen (passed): gegen percentile 10 results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.5e-02, ratio 3) - compare_egen (passed): gegen percentile 30 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 3.0e-02, ratio 5) - compare_egen (passed): gegen percentile 50 results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 3.3e-02, ratio 4.1) - compare_egen (passed): gegen percentile 70 results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 1.9e-02, ratio 2.4) - compare_egen (passed): gegen percentile 90 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.7e-02, ratio 2.8) - compare_egen (passed): gegen percentile 99 results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 3.5e-02, ratio 4.4) - compare_egen (passed): gegen tag results similar to egen (tol = 1.00000000000e-06; 1.2e-02 vs 3.3e-02, ratio 2.8) - compare_egen (passed): gegen tag, missing results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 3.2e-02, ratio 4) - compare_egen (passed): gegen group results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 5.0e-02, ratio 6.3) - compare_egen (passed): gegen group, missing results similar to egen (tol = 1.00000000000e-06; 1.1e-02 vs 3.0e-02, ratio 2.7) + compare_egen (passed): gegen total results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.9e-02, ratio 3.8) + compare_egen (passed): gegen sum results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.9e-02, ratio 3.2) + compare_egen (passed): gegen mean results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.9e-02, ratio 3.2) + compare_egen (passed): gegen sd results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 3.3e-02, ratio 3.7) + compare_egen (passed): gegen max results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.2e-02, ratio 3.7) + compare_egen (passed): gegen min results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 3.1e-02, ratio 5.2) + compare_egen (passed): gegen count results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.0e-02, ratio 2.5) + compare_egen (passed): gegen median results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 2.1e-02, ratio 4.2) + compare_egen (passed): gegen iqr results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 4.0e-02, ratio 6.7) + compare_egen (passed): gegen skew results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs .57, ratio 95) + compare_egen (passed): gegen kurt results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs .57, ratio 1.1e+02) + compare_egen (passed): gegen percentile 1 results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 3.0e-02, ratio 6) + compare_egen (passed): gegen percentile 10 results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 4.0e-02, ratio 4.4) + compare_egen (passed): gegen percentile 30 results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 4.8e-02, ratio 6) + compare_egen (passed): gegen percentile 50 results similar to egen (tol = 1.00000000000e-06; 1.1e-02 vs 4.4e-02, ratio 4) + compare_egen (passed): gegen percentile 70 results similar to egen (tol = 1.00000000000e-06; 1.1e-02 vs 4.3e-02, ratio 3.9) + compare_egen (passed): gegen percentile 90 results similar to egen (tol = 1.00000000000e-06; 1.2e-02 vs 4.3e-02, ratio 3.6) + compare_egen (passed): gegen percentile 99 results similar to egen (tol = 1.00000000000e-06; 1.0e-02 vs 3.8e-02, ratio 3.8) + compare_egen (passed): gegen tag results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.0e-02, ratio 3.3) + compare_egen (passed): gegen tag, missing results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 2.9e-02, ratio 5.8) + compare_egen (passed): gegen group results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.1e-02, ratio 2.6) + compare_egen (passed): gegen group, missing results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.7e-02, ratio 3.4) compare_egen (passed): gegen counts results similar to gegen count (tol = 1.00000000000e-06) Checking [if random2 < 0 in 129/9785] egen range: double1 double2 double3 - compare_egen (passed): gegen total results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.8e-02, ratio 3.6) - compare_egen (passed): gegen sum results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.6e-02, ratio 2.7) - compare_egen (passed): gegen mean results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.5e-02, ratio 2.5) - compare_egen (passed): gegen sd results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.8e-02, ratio 3) - compare_egen (passed): gegen max results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.7e-02, ratio 3.4) - compare_egen (passed): gegen min results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.4e-02, ratio 2.3) - compare_egen (passed): gegen count results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.7e-02, ratio 3.4) - compare_egen (passed): gegen median results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.6e-02, ratio 3.2) - compare_egen (passed): gegen iqr results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 3.3e-02, ratio 6.6) - compare_egen (passed): gegen skew results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs .37, ratio 62) - compare_egen (passed): gegen kurt results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs .48, ratio 96) - compare_egen (passed): gegen percentile 1 results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.5e-02, ratio 3) - compare_egen (passed): gegen percentile 10 results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.6e-02, ratio 3.2) - compare_egen (passed): gegen percentile 30 results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.5e-02, ratio 3) - compare_egen (passed): gegen percentile 50 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.4e-02, ratio 2.3) - compare_egen (passed): gegen percentile 70 results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.6e-02, ratio 3.2) - compare_egen (passed): gegen percentile 90 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.6e-02, ratio 2.7) - compare_egen (passed): gegen percentile 99 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 3.1e-02, ratio 5.2) - compare_egen (passed): gegen tag results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 1.6e-02, ratio 2.3) - compare_egen (passed): gegen tag, missing results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.5e-02, ratio 3) - compare_egen (passed): gegen group results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.4e-02, ratio 2.8) - compare_egen (passed): gegen group, missing results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.4e-02, ratio 2.8) + compare_egen (passed): gegen total results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.9e-02, ratio 3.2) + compare_egen (passed): gegen sum results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.9e-02, ratio 3.8) + compare_egen (passed): gegen mean results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.0e-02, ratio 3.3) + compare_egen (passed): gegen sd results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 4.4e-02, ratio 7.3) + compare_egen (passed): gegen max results similar to egen (tol = 1.00000000000e-06; 1.0e-02 vs 2.8e-02, ratio 2.8) + compare_egen (passed): gegen min results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.9e-02, ratio 3.2) + compare_egen (passed): gegen count results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 2.1e-02, ratio 4.2) + compare_egen (passed): gegen median results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.1e-02, ratio 3.5) + compare_egen (passed): gegen iqr results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 4.0e-02, ratio 6.7) + compare_egen (passed): gegen skew results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.3, ratio 2.6e+02) + compare_egen (passed): gegen kurt results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs .95, ratio 1.6e+02) + compare_egen (passed): gegen percentile 1 results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.3e-02, ratio 2.9) + compare_egen (passed): gegen percentile 10 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.1e-02, ratio 3.5) + compare_egen (passed): gegen percentile 30 results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 2.0e-02, ratio 4) + compare_egen (passed): gegen percentile 50 results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 3.0e-02, ratio 3.8) + compare_egen (passed): gegen percentile 70 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.2e-02, ratio 3.7) + compare_egen (passed): gegen percentile 90 results similar to egen (tol = 1.00000000000e-06; 1.1e-02 vs 3.2e-02, ratio 2.9) + compare_egen (passed): gegen percentile 99 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.2e-02, ratio 3.7) + compare_egen (passed): gegen tag results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 3.0e-02, ratio 5) + compare_egen (passed): gegen tag, missing results similar to egen (tol = 1.00000000000e-06; 1.1e-02 vs 4.0e-02, ratio 3.6) + compare_egen (passed): gegen group results similar to egen (tol = 1.00000000000e-06; 1.0e-02 vs 3.3e-02, ratio 3.3) + compare_egen (passed): gegen group, missing results similar to egen (tol = 1.00000000000e-06; 1.0e-02 vs 3.7e-02, ratio 3.7) compare_egen (passed): gegen counts results similar to gegen count (tol = 1.00000000000e-06) @@ -1577,103 +1588,103 @@ Checking egen. N = 10,000; varlist = int1 ----------------------------------------- Checking full egen range: int1 - compare_egen (passed): gegen total results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 6.0e-03, ratio 1.2) - compare_egen (passed): gegen sum results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 6.0e-03, ratio 1.2) - compare_egen (passed): gegen mean results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 5.0e-03, ratio 1) - compare_egen (passed): gegen sd results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 8.0e-03, ratio 1.3) - compare_egen (passed): gegen max results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.4e-02, ratio 2.8) - compare_egen (passed): gegen min results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.2e-02, ratio 2.4) - compare_egen (passed): gegen count results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.1e-02, ratio 1.8) - compare_egen (passed): gegen median results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 2.5e-02, ratio 5) - compare_egen (passed): gegen iqr results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 8.5e-02, ratio 9.4) - compare_egen (passed): gegen skew results similar to egen (tol = 1.00000000000e-06; 1.9e-02 vs 1.2, ratio 65) - compare_egen (passed): gegen kurt results similar to egen (tol = 1.00000000000e-06; 1.6e-02 vs .82, ratio 51) - compare_egen (passed): gegen percentile 1 results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.4e-02, ratio 2.8) - compare_egen (passed): gegen percentile 10 results similar to egen (tol = 1.00000000000e-06; 4.0e-03 vs 1.8e-02, ratio 4.5) - compare_egen (passed): gegen percentile 30 results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 2.5e-02, ratio 5) - compare_egen (passed): gegen percentile 50 results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 1.6e-02, ratio 2) - compare_egen (passed): gegen percentile 70 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.5e-02, ratio 2.5) - compare_egen (passed): gegen percentile 90 results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.5e-02, ratio 3) - compare_egen (passed): gegen percentile 99 results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.5e-02, ratio 3) - compare_egen (passed): gegen tag results similar to egen (tol = 1.00000000000e-06; 4.0e-03 vs 5.0e-03, ratio 1.3) - compare_egen (passed): gegen tag, missing results similar to egen (tol = 1.00000000000e-06; 3.0e-03 vs 5.0e-03, ratio 1.7) - compare_egen (passed): gegen group results similar to egen (tol = 1.00000000000e-06; 4.0e-03 vs 5.0e-03, ratio 1.3) - compare_egen (passed): gegen group, missing results similar to egen (tol = 1.00000000000e-06; 4.0e-03 vs 5.0e-03, ratio 1.3) + compare_egen (passed): gegen total results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 1.1e-02, ratio 1.4) + compare_egen (passed): gegen sum results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 9.0e-03, ratio 1.5) + compare_egen (passed): gegen mean results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 9.0e-03, ratio 1.5) + compare_egen (passed): gegen sd results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.1e-02, ratio 1.8) + compare_egen (passed): gegen max results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 3.9e-02, ratio 4.3) + compare_egen (passed): gegen min results similar to egen (tol = 1.00000000000e-06; 1.0e-02 vs 2.2e-02, ratio 2.2) + compare_egen (passed): gegen count results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 8.0e-03, ratio 1.3) + compare_egen (passed): gegen median results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 4.4e-02, ratio 6.3) + compare_egen (passed): gegen iqr results similar to egen (tol = 1.00000000000e-06; 1.0e-02 vs 5.0e-02, ratio 5) + compare_egen (passed): gegen skew results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs .59, ratio 1.2e+02) + compare_egen (passed): gegen kurt results similar to egen (tol = 1.00000000000e-06; 4.0e-03 vs .65, ratio 1.6e+02) + compare_egen (passed): gegen percentile 1 results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 3.1e-02, ratio 6.2) + compare_egen (passed): gegen percentile 10 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.8e-02, ratio 4) + compare_egen (passed): gegen percentile 30 results similar to egen (tol = 1.00000000000e-06; 1.0e-02 vs 4.1e-02, ratio 4.1) + compare_egen (passed): gegen percentile 50 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.2e-02, ratio 3.7) + compare_egen (passed): gegen percentile 70 results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 3.3e-02, ratio 4.1) + compare_egen (passed): gegen percentile 90 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.9e-02, ratio 3.2) + compare_egen (passed): gegen percentile 99 results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.8e-02, ratio 3.6) + compare_egen (passed): gegen tag results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.3e-02, ratio 2.6) + compare_egen (passed): gegen tag, missing results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.0e-02, ratio 1.7) + compare_egen (passed): gegen group results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 7.0e-03, ratio 1.4) + compare_egen (passed): gegen group, missing results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.5e-02, ratio 3) compare_egen (passed): gegen counts results similar to gegen count (tol = 1.00000000000e-06) Checking [ in 1843/8801] egen range: int1 - compare_egen (passed): gegen total results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.3e-02, ratio 2.6) - compare_egen (passed): gegen sum results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.5e-02, ratio 3) - compare_egen (passed): gegen mean results similar to egen (tol = 1.00000000000e-06; 1.2e-02 vs 3.6e-02, ratio 3) - compare_egen (passed): gegen sd results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 4.8e-02, ratio 5.3) - compare_egen (passed): gegen max results similar to egen (tol = 1.00000000000e-06; 1.0e-02 vs 1.9e-02, ratio 1.9) - compare_egen (passed): gegen min results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.4e-02, ratio 4) - compare_egen (passed): gegen count results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 2.2e-02, ratio 2.4) - compare_egen (passed): gegen median results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.9e-02, ratio 3.2) - compare_egen (passed): gegen iqr results similar to egen (tol = 1.00000000000e-06; 1.0e-02 vs .12, ratio 12) - compare_egen (passed): gegen skew results similar to egen (tol = 1.00000000000e-06; 1.9e-02 vs .63, ratio 33) - compare_egen (passed): gegen kurt results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs .34, ratio 69) - compare_egen (passed): gegen percentile 1 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.4e-02, ratio 2.3) - compare_egen (passed): gegen percentile 10 results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.5e-02, ratio 3) - compare_egen (passed): gegen percentile 30 results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.4e-02, ratio 2.8) - compare_egen (passed): gegen percentile 50 results similar to egen (tol = 1.00000000000e-06; 4.0e-03 vs 1.4e-02, ratio 3.5) - compare_egen (passed): gegen percentile 70 results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.5e-02, ratio 3) - compare_egen (passed): gegen percentile 90 results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.5e-02, ratio 3) - compare_egen (passed): gegen percentile 99 results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.4e-02, ratio 2.8) - compare_egen (passed): gegen tag results similar to egen (tol = 1.00000000000e-06; 3.0e-03 vs 1.2e-02, ratio 4) - compare_egen (passed): gegen tag, missing results similar to egen (tol = 1.00000000000e-06; 4.0e-03 vs 1.1e-02, ratio 2.8) - compare_egen (passed): gegen group results similar to egen (tol = 1.00000000000e-06; 4.0e-03 vs 1.1e-02, ratio 2.8) - compare_egen (passed): gegen group, missing results similar to egen (tol = 1.00000000000e-06; 3.0e-03 vs 1.1e-02, ratio 3.7) + compare_egen (passed): gegen total results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 3.6e-02, ratio 7.2) + compare_egen (passed): gegen sum results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.8e-02, ratio 3) + compare_egen (passed): gegen mean results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.8e-02, ratio 3.6) + compare_egen (passed): gegen sd results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 2.0e-02, ratio 4) + compare_egen (passed): gegen max results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.9e-02, ratio 3.8) + compare_egen (passed): gegen min results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 2.2e-02, ratio 4.4) + compare_egen (passed): gegen count results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.7e-02, ratio 3.9) + compare_egen (passed): gegen median results similar to egen (tol = 1.00000000000e-06; 1.0e-02 vs 4.6e-02, ratio 4.6) + compare_egen (passed): gegen iqr results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 9.8e-02, ratio 11) + compare_egen (passed): gegen skew results similar to egen (tol = 1.00000000000e-06; 1.1e-02 vs .77, ratio 70) + compare_egen (passed): gegen kurt results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs .44, ratio 63) + compare_egen (passed): gegen percentile 1 results similar to egen (tol = 1.00000000000e-06; 4.0e-03 vs 2.9e-02, ratio 7.3) + compare_egen (passed): gegen percentile 10 results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.8e-02, ratio 3.5) + compare_egen (passed): gegen percentile 30 results similar to egen (tol = 1.00000000000e-06; 1.0e-02 vs 2.0e-02, ratio 2) + compare_egen (passed): gegen percentile 50 results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 3.7e-02, ratio 7.4) + compare_egen (passed): gegen percentile 70 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.8e-02, ratio 3) + compare_egen (passed): gegen percentile 90 results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.7e-02, ratio 3.4) + compare_egen (passed): gegen percentile 99 results similar to egen (tol = 1.00000000000e-06; 4.0e-03 vs 1.8e-02, ratio 4.5) + compare_egen (passed): gegen tag results similar to egen (tol = 1.00000000000e-06; 4.0e-03 vs 1.5e-02, ratio 3.8) + compare_egen (passed): gegen tag, missing results similar to egen (tol = 1.00000000000e-06; 3.0e-03 vs 1.5e-02, ratio 5) + compare_egen (passed): gegen group results similar to egen (tol = 1.00000000000e-06; 4.0e-03 vs 1.4e-02, ratio 3.5) + compare_egen (passed): gegen group, missing results similar to egen (tol = 1.00000000000e-06; 4.0e-03 vs 1.4e-02, ratio 3.5) compare_egen (passed): gegen counts results similar to gegen count (tol = 1.00000000000e-06) - -Checking [if random2 > 0 ] egen range: int1 - compare_egen (passed): gegen total results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.4e-02, ratio 2.8) - compare_egen (passed): gegen sum results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.4e-02, ratio 2.8) - compare_egen (passed): gegen mean results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.3e-02, ratio 2.6) - compare_egen (passed): gegen sd results similar to egen (tol = 1.00000000000e-06; 4.0e-03 vs 1.6e-02, ratio 4) - compare_egen (passed): gegen max results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.5e-02, ratio 3) - compare_egen (passed): gegen min results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.3e-02, ratio 2.6) - compare_egen (passed): gegen count results similar to egen (tol = 1.00000000000e-06; 4.0e-03 vs 1.4e-02, ratio 3.5) - compare_egen (passed): gegen median results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.4e-02, ratio 2.8) - compare_egen (passed): gegen iqr results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 3.4e-02, ratio 6.8) - compare_egen (passed): gegen skew results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs .32, ratio 36) - compare_egen (passed): gegen kurt results similar to egen (tol = 1.00000000000e-06; 1.1e-02 vs .44, ratio 40) - compare_egen (passed): gegen percentile 1 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.5e-02, ratio 2.5) - compare_egen (passed): gegen percentile 10 results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.5e-02, ratio 3) - compare_egen (passed): gegen percentile 30 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.6e-02, ratio 2.7) - compare_egen (passed): gegen percentile 50 results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.6e-02, ratio 3.2) - compare_egen (passed): gegen percentile 70 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.5e-02, ratio 2.5) - compare_egen (passed): gegen percentile 90 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.5e-02, ratio 2.5) - compare_egen (passed): gegen percentile 99 results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.8e-02, ratio 3.6) - compare_egen (passed): gegen tag results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.7e-02, ratio 3.4) - compare_egen (passed): gegen tag, missing results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.8e-02, ratio 3.6) - compare_egen (passed): gegen group results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.7e-02, ratio 3.4) - compare_egen (passed): gegen group, missing results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.6e-02, ratio 3.2) + +Checking [if random2 > 0 ] egen range: int1 + compare_egen (passed): gegen total results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.7e-02, ratio 3.4) + compare_egen (passed): gegen sum results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.9e-02, ratio 3.2) + compare_egen (passed): gegen mean results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 2.5e-02, ratio 5) + compare_egen (passed): gegen sd results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.7e-02, ratio 3.4) + compare_egen (passed): gegen max results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.9e-02, ratio 3.8) + compare_egen (passed): gegen min results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.6e-02, ratio 3.2) + compare_egen (passed): gegen count results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 2.0e-02, ratio 4) + compare_egen (passed): gegen median results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 2.7e-02, ratio 5.4) + compare_egen (passed): gegen iqr results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 5.3e-02, ratio 6.6) + compare_egen (passed): gegen skew results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs .53, ratio 59) + compare_egen (passed): gegen kurt results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs .88, ratio 1.8e+02) + compare_egen (passed): gegen percentile 1 results similar to egen (tol = 1.00000000000e-06; 1.4e-02 vs 5.8e-02, ratio 4.1) + compare_egen (passed): gegen percentile 10 results similar to egen (tol = 1.00000000000e-06; 2.1e-02 vs 5.6e-02, ratio 2.7) + compare_egen (passed): gegen percentile 30 results similar to egen (tol = 1.00000000000e-06; 1.3e-02 vs 5.2e-02, ratio 4) + compare_egen (passed): gegen percentile 50 results similar to egen (tol = 1.00000000000e-06; 1.3e-02 vs 5.0e-02, ratio 3.8) + compare_egen (passed): gegen percentile 70 results similar to egen (tol = 1.00000000000e-06; 1.2e-02 vs 4.4e-02, ratio 3.7) + compare_egen (passed): gegen percentile 90 results similar to egen (tol = 1.00000000000e-06; 1.3e-02 vs 5.3e-02, ratio 4.1) + compare_egen (passed): gegen percentile 99 results similar to egen (tol = 1.00000000000e-06; 1.5e-02 vs 7.6e-02, ratio 5.1) + compare_egen (passed): gegen tag results similar to egen (tol = 1.00000000000e-06; 1.3e-02 vs 5.6e-02, ratio 4.3) + compare_egen (passed): gegen tag, missing results similar to egen (tol = 1.00000000000e-06; 1.6e-02 vs 5.0e-02, ratio 3.1) + compare_egen (passed): gegen group results similar to egen (tol = 1.00000000000e-06; 1.0e-02 vs 5.5e-02, ratio 5.5) + compare_egen (passed): gegen group, missing results similar to egen (tol = 1.00000000000e-06; 1.0e-02 vs 4.2e-02, ratio 4.2) compare_egen (passed): gegen counts results similar to gegen count (tol = 1.00000000000e-06) Checking [if random2 < 0 in 1562/7748] egen range: int1 - compare_egen (passed): gegen total results similar to egen (tol = 1.00000000000e-06; 4.0e-03 vs 1.8e-02, ratio 4.5) - compare_egen (passed): gegen sum results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.6e-02, ratio 3.2) - compare_egen (passed): gegen mean results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.6e-02, ratio 3.2) - compare_egen (passed): gegen sd results similar to egen (tol = 1.00000000000e-06; 4.0e-03 vs 1.8e-02, ratio 4.5) - compare_egen (passed): gegen max results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.5e-02, ratio 3) - compare_egen (passed): gegen min results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.5e-02, ratio 3) - compare_egen (passed): gegen count results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.5e-02, ratio 3) - compare_egen (passed): gegen median results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.5e-02, ratio 3) - compare_egen (passed): gegen iqr results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 3.6e-02, ratio 7.2) - compare_egen (passed): gegen skew results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs .87, ratio 1.2e+02) - compare_egen (passed): gegen kurt results similar to egen (tol = 1.00000000000e-06; 1.9e-02 vs .78, ratio 41) - compare_egen (passed): gegen percentile 1 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.0e-02, ratio 2.9) - compare_egen (passed): gegen percentile 10 results similar to egen (tol = 1.00000000000e-06; 1.0e-02 vs 2.4e-02, ratio 2.4) - compare_egen (passed): gegen percentile 30 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 1.7e-02, ratio 2.4) - compare_egen (passed): gegen percentile 50 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.7e-02, ratio 2.8) - compare_egen (passed): gegen percentile 70 results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.8e-02, ratio 3.6) - compare_egen (passed): gegen percentile 90 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.7e-02, ratio 2.8) - compare_egen (passed): gegen percentile 99 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.5e-02, ratio 2.5) - compare_egen (passed): gegen tag results similar to egen (tol = 1.00000000000e-06; 4.0e-03 vs 1.5e-02, ratio 3.8) - compare_egen (passed): gegen tag, missing results similar to egen (tol = 1.00000000000e-06; 4.0e-03 vs 1.3e-02, ratio 3.3) - compare_egen (passed): gegen group results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.3e-02, ratio 2.6) - compare_egen (passed): gegen group, missing results similar to egen (tol = 1.00000000000e-06; 4.0e-03 vs 1.2e-02, ratio 3) + compare_egen (passed): gegen total results similar to egen (tol = 1.00000000000e-06; 1.6e-02 vs 5.0e-02, ratio 3.1) + compare_egen (passed): gegen sum results similar to egen (tol = 1.00000000000e-06; 1.2e-02 vs 4.7e-02, ratio 3.9) + compare_egen (passed): gegen mean results similar to egen (tol = 1.00000000000e-06; 1.3e-02 vs 4.2e-02, ratio 3.2) + compare_egen (passed): gegen sd results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.5e-02, ratio 3.6) + compare_egen (passed): gegen max results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 2.7e-02, ratio 5.4) + compare_egen (passed): gegen min results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.4e-02, ratio 3) + compare_egen (passed): gegen count results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 2.8e-02, ratio 5.6) + compare_egen (passed): gegen median results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 5.4e-02, ratio 11) + compare_egen (passed): gegen iqr results similar to egen (tol = 1.00000000000e-06; 1.4e-02 vs .14, ratio 9.6) + compare_egen (passed): gegen skew results similar to egen (tol = 1.00000000000e-06; 1.3e-02 vs .55, ratio 42) + compare_egen (passed): gegen kurt results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs .8, ratio 1.0e+02) + compare_egen (passed): gegen percentile 1 results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.7e-02, ratio 3.4) + compare_egen (passed): gegen percentile 10 results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.9e-02, ratio 3.8) + compare_egen (passed): gegen percentile 30 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.5e-02, ratio 3.6) + compare_egen (passed): gegen percentile 50 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.8e-02, ratio 3) + compare_egen (passed): gegen percentile 70 results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.7e-02, ratio 3.4) + compare_egen (passed): gegen percentile 90 results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 2.9e-02, ratio 5.8) + compare_egen (passed): gegen percentile 99 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.0e-02, ratio 2.9) + compare_egen (passed): gegen tag results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.7e-02, ratio 3.4) + compare_egen (passed): gegen tag, missing results similar to egen (tol = 1.00000000000e-06; 4.0e-03 vs 4.0e-02, ratio 10) + compare_egen (passed): gegen group results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 3.3e-02, ratio 4.7) + compare_egen (passed): gegen group, missing results similar to egen (tol = 1.00000000000e-06; 1.6e-02 vs 6.2e-02, ratio 3.9) compare_egen (passed): gegen counts results similar to gegen count (tol = 1.00000000000e-06) @@ -1681,103 +1692,103 @@ Checking egen. N = 10,000; varlist = int1 int2 ---------------------------------------------- Checking full egen range: int1 int2 - compare_egen (passed): gegen total results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.6e-02, ratio 2.7) - compare_egen (passed): gegen sum results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.6e-02, ratio 2.7) - compare_egen (passed): gegen mean results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.6e-02, ratio 2.7) - compare_egen (passed): gegen sd results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.8e-02, ratio 3) - compare_egen (passed): gegen max results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.6e-02, ratio 2.7) - compare_egen (passed): gegen min results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.4e-02, ratio 2.3) - compare_egen (passed): gegen count results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 1.8e-02, ratio 2.6) - compare_egen (passed): gegen median results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.6e-02, ratio 2.7) - compare_egen (passed): gegen iqr results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 5.0e-02, ratio 8.3) - compare_egen (passed): gegen skew results similar to egen (tol = 1.00000000000e-06; 2.0e-02 vs .74, ratio 37) - compare_egen (passed): gegen kurt results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs .69, ratio 1.2e+02) + compare_egen (passed): gegen total results similar to egen (tol = 1.00000000000e-06; 2.1e-02 vs 5.2e-02, ratio 2.5) + compare_egen (passed): gegen sum results similar to egen (tol = 1.00000000000e-06; 1.3e-02 vs 5.5e-02, ratio 4.2) + compare_egen (passed): gegen mean results similar to egen (tol = 1.00000000000e-06; 1.3e-02 vs 5.4e-02, ratio 4.2) + compare_egen (passed): gegen sd results similar to egen (tol = 1.00000000000e-06; 1.2e-02 vs 5.2e-02, ratio 4.3) + compare_egen (passed): gegen max results similar to egen (tol = 1.00000000000e-06; 1.3e-02 vs 3.3e-02, ratio 2.5) + compare_egen (passed): gegen min results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 3.8e-02, ratio 5.4) + compare_egen (passed): gegen count results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 3.9e-02, ratio 4.3) + compare_egen (passed): gegen median results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 4.2e-02, ratio 4.7) + compare_egen (passed): gegen iqr results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 4.9e-02, ratio 5.4) + compare_egen (passed): gegen skew results similar to egen (tol = 1.00000000000e-06; 1.1e-02 vs 1.8, ratio 1.6e+02) + compare_egen (passed): gegen kurt results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.1, ratio 1.8e+02) compare_egen (passed): gegen percentile 1 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.9e-02, ratio 3.2) - compare_egen (passed): gegen percentile 10 results similar to egen (tol = 1.00000000000e-06; 1.2e-02 vs 2.0e-02, ratio 1.7) + compare_egen (passed): gegen percentile 10 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.9e-02, ratio 3.2) compare_egen (passed): gegen percentile 30 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.9e-02, ratio 3.2) - compare_egen (passed): gegen percentile 50 results similar to egen (tol = 1.00000000000e-06; 1.3e-02 vs 3.7e-02, ratio 2.8) - compare_egen (passed): gegen percentile 70 results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 1.9e-02, ratio 2.4) - compare_egen (passed): gegen percentile 90 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 1.7e-02, ratio 2.4) - compare_egen (passed): gegen percentile 99 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 1.8e-02, ratio 2.6) - compare_egen (passed): gegen tag results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 2.1e-02, ratio 4.2) - compare_egen (passed): gegen tag, missing results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.5e-02, ratio 2.5) - compare_egen (passed): gegen group results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.4e-02, ratio 2.3) + compare_egen (passed): gegen percentile 50 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.0e-02, ratio 3.3) + compare_egen (passed): gegen percentile 70 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.1e-02, ratio 3.5) + compare_egen (passed): gegen percentile 90 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.0e-02, ratio 3.3) + compare_egen (passed): gegen percentile 99 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.0e-02, ratio 3.3) + compare_egen (passed): gegen tag results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.8e-02, ratio 3.6) + compare_egen (passed): gegen tag, missing results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.6e-02, ratio 3.2) + compare_egen (passed): gegen group results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.6e-02, ratio 2.7) compare_egen (passed): gegen group, missing results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.5e-02, ratio 2.5) compare_egen (passed): gegen counts results similar to gegen count (tol = 1.00000000000e-06) Checking [ in 1579/8440] egen range: int1 int2 - compare_egen (passed): gegen total results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.8e-02, ratio 3.6) - compare_egen (passed): gegen sum results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.8e-02, ratio 3) - compare_egen (passed): gegen mean results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.8e-02, ratio 3.6) - compare_egen (passed): gegen sd results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.2e-02, ratio 3.7) + compare_egen (passed): gegen total results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.1e-02, ratio 3.5) + compare_egen (passed): gegen sum results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.0e-02, ratio 3.3) + compare_egen (passed): gegen mean results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 2.0e-02, ratio 4) + compare_egen (passed): gegen sd results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.4e-02, ratio 4) compare_egen (passed): gegen max results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 2.0e-02, ratio 4) - compare_egen (passed): gegen min results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.5e-02, ratio 2.5) - compare_egen (passed): gegen count results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.8e-02, ratio 3) - compare_egen (passed): gegen median results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.7e-02, ratio 2.8) - compare_egen (passed): gegen iqr results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 3.7e-02, ratio 5.3) - compare_egen (passed): gegen skew results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.2, ratio 2.0e+02) - compare_egen (passed): gegen kurt results similar to egen (tol = 1.00000000000e-06; 1.6e-02 vs 3, ratio 1.9e+02) - compare_egen (passed): gegen percentile 1 results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.7e-02, ratio 3.4) - compare_egen (passed): gegen percentile 10 results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.8e-02, ratio 3.6) - compare_egen (passed): gegen percentile 30 results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.7e-02, ratio 3.4) - compare_egen (passed): gegen percentile 50 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.7e-02, ratio 2.8) - compare_egen (passed): gegen percentile 70 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 3.8e-02, ratio 6.3) - compare_egen (passed): gegen percentile 90 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 5.8e-02, ratio 8.3) - compare_egen (passed): gegen percentile 99 results similar to egen (tol = 1.00000000000e-06; 2.1e-02 vs 6.1e-02, ratio 2.9) - compare_egen (passed): gegen tag results similar to egen (tol = 1.00000000000e-06; 1.0e-02 vs 3.6e-02, ratio 3.6) - compare_egen (passed): gegen tag, missing results similar to egen (tol = 1.00000000000e-06; 1.0e-02 vs 5.6e-02, ratio 5.6) - compare_egen (passed): gegen group results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 4.8e-02, ratio 6) - compare_egen (passed): gegen group, missing results similar to egen (tol = 1.00000000000e-06; 1.3e-02 vs 5.6e-02, ratio 4.3) + compare_egen (passed): gegen min results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.7e-02, ratio 2.8) + compare_egen (passed): gegen count results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 3.5e-02, ratio 4.4) + compare_egen (passed): gegen median results similar to egen (tol = 1.00000000000e-06; 1.1e-02 vs 4.5e-02, ratio 4.1) + compare_egen (passed): gegen iqr results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 9.8e-02, ratio 11) + compare_egen (passed): gegen skew results similar to egen (tol = 1.00000000000e-06; 1.1e-02 vs 1.1, ratio 1.0e+02) + compare_egen (passed): gegen kurt results similar to egen (tol = 1.00000000000e-06; 1.3e-02 vs .88, ratio 68) + compare_egen (passed): gegen percentile 1 results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 2.3e-02, ratio 4.6) + compare_egen (passed): gegen percentile 10 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 3.0e-02, ratio 5) + compare_egen (passed): gegen percentile 30 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 3.5e-02, ratio 5) + compare_egen (passed): gegen percentile 50 results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 2.2e-02, ratio 2.4) + compare_egen (passed): gegen percentile 70 results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 2.2e-02, ratio 4.4) + compare_egen (passed): gegen percentile 90 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.2e-02, ratio 3.7) + compare_egen (passed): gegen percentile 99 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.0e-02, ratio 3.3) + compare_egen (passed): gegen tag results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.7e-02, ratio 3.4) + compare_egen (passed): gegen tag, missing results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.6e-02, ratio 3.2) + compare_egen (passed): gegen group results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.7e-02, ratio 2.8) + compare_egen (passed): gegen group, missing results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.6e-02, ratio 3.2) compare_egen (passed): gegen counts results similar to gegen count (tol = 1.00000000000e-06) Checking [if random2 > 0 ] egen range: int1 int2 - compare_egen (passed): gegen total results similar to egen (tol = 1.00000000000e-06; 1.1e-02 vs 4.5e-02, ratio 4.1) - compare_egen (passed): gegen sum results similar to egen (tol = 1.00000000000e-06; 1.5e-02 vs 4.6e-02, ratio 3.1) - compare_egen (passed): gegen mean results similar to egen (tol = 1.00000000000e-06; 1.6e-02 vs 5.4e-02, ratio 3.4) - compare_egen (passed): gegen sd results similar to egen (tol = 1.00000000000e-06; 1.5e-02 vs 5.5e-02, ratio 3.7) - compare_egen (passed): gegen max results similar to egen (tol = 1.00000000000e-06; 1.6e-02 vs 3.5e-02, ratio 2.2) - compare_egen (passed): gegen min results similar to egen (tol = 1.00000000000e-06; 1.6e-02 vs 6.9e-02, ratio 4.3) - compare_egen (passed): gegen count results similar to egen (tol = 1.00000000000e-06; 1.1e-02 vs 4.6e-02, ratio 4.2) - compare_egen (passed): gegen median results similar to egen (tol = 1.00000000000e-06; 1.6e-02 vs 5.4e-02, ratio 3.4) - compare_egen (passed): gegen iqr results similar to egen (tol = 1.00000000000e-06; 2.2e-02 vs .13, ratio 5.8) - compare_egen (passed): gegen skew results similar to egen (tol = 1.00000000000e-06; 2.0e-02 vs 1.3, ratio 65) - compare_egen (passed): gegen kurt results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs .4, ratio 58) - compare_egen (passed): gegen percentile 1 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.5e-02, ratio 2.5) - compare_egen (passed): gegen percentile 10 results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.6e-02, ratio 3.2) - compare_egen (passed): gegen percentile 30 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.7e-02, ratio 2.8) - compare_egen (passed): gegen percentile 50 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.6e-02, ratio 2.7) - compare_egen (passed): gegen percentile 70 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 1.8e-02, ratio 2.6) - compare_egen (passed): gegen percentile 90 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.2e-02, ratio 3.1) - compare_egen (passed): gegen percentile 99 results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 1.7e-02, ratio 1.9) - compare_egen (passed): gegen tag results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 2.4e-02, ratio 4.8) - compare_egen (passed): gegen tag, missing results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.4e-02, ratio 2.8) - compare_egen (passed): gegen group results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.4e-02, ratio 2.8) - compare_egen (passed): gegen group, missing results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.4e-02, ratio 2.8) + compare_egen (passed): gegen total results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.0e-02, ratio 3.3) + compare_egen (passed): gegen sum results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.0e-02, ratio 3.3) + compare_egen (passed): gegen mean results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.8e-02, ratio 3) + compare_egen (passed): gegen sd results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.2e-02, ratio 3.7) + compare_egen (passed): gegen max results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.1e-02, ratio 3.5) + compare_egen (passed): gegen min results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.7e-02, ratio 2.8) + compare_egen (passed): gegen count results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.8e-02, ratio 3) + compare_egen (passed): gegen median results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.9e-02, ratio 3.2) + compare_egen (passed): gegen iqr results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 4.9e-02, ratio 8.2) + compare_egen (passed): gegen skew results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs .54, ratio 68) + compare_egen (passed): gegen kurt results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs .42, ratio 61) + compare_egen (passed): gegen percentile 1 results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.9e-02, ratio 3.6) + compare_egen (passed): gegen percentile 10 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.1e-02, ratio 3.5) + compare_egen (passed): gegen percentile 30 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.9e-02, ratio 4.8) + compare_egen (passed): gegen percentile 50 results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 2.3e-02, ratio 2.6) + compare_egen (passed): gegen percentile 70 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.6e-02, ratio 3.7) + compare_egen (passed): gegen percentile 90 results similar to egen (tol = 1.00000000000e-06; 1.0e-02 vs 4.2e-02, ratio 4.2) + compare_egen (passed): gegen percentile 99 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.1e-02, ratio 3) + compare_egen (passed): gegen tag results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.8e-02, ratio 3.6) + compare_egen (passed): gegen tag, missing results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.6e-02, ratio 3.2) + compare_egen (passed): gegen group results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 3.2e-02, ratio 5.3) + compare_egen (passed): gegen group, missing results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 1.8e-02, ratio 2.6) compare_egen (passed): gegen counts results similar to gegen count (tol = 1.00000000000e-06) Checking [if random2 < 0 in 788/9049] egen range: int1 int2 - compare_egen (passed): gegen total results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.8e-02, ratio 3.6) - compare_egen (passed): gegen sum results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.9e-02, ratio 3.8) - compare_egen (passed): gegen mean results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.6e-02, ratio 2.7) - compare_egen (passed): gegen sd results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.9e-02, ratio 3.2) - compare_egen (passed): gegen max results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.8e-02, ratio 3) - compare_egen (passed): gegen min results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.4e-02, ratio 2.8) - compare_egen (passed): gegen count results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.6e-02, ratio 2.7) - compare_egen (passed): gegen median results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.5e-02, ratio 2.5) - compare_egen (passed): gegen iqr results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 3.3e-02, ratio 5.5) - compare_egen (passed): gegen skew results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs .34, ratio 57) - compare_egen (passed): gegen kurt results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs .35, ratio 71) - compare_egen (passed): gegen percentile 1 results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.5e-02, ratio 3) - compare_egen (passed): gegen percentile 10 results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.5e-02, ratio 3) - compare_egen (passed): gegen percentile 30 results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.6e-02, ratio 3.2) - compare_egen (passed): gegen percentile 50 results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.6e-02, ratio 3.2) - compare_egen (passed): gegen percentile 70 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.7e-02, ratio 2.8) - compare_egen (passed): gegen percentile 90 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.7e-02, ratio 2.8) - compare_egen (passed): gegen percentile 99 results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.6e-02, ratio 3.2) - compare_egen (passed): gegen tag results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.4e-02, ratio 2.8) - compare_egen (passed): gegen tag, missing results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.4e-02, ratio 2.8) - compare_egen (passed): gegen group results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.4e-02, ratio 2.8) - compare_egen (passed): gegen group, missing results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.4e-02, ratio 2.8) + compare_egen (passed): gegen total results similar to egen (tol = 1.00000000000e-06; 1.1e-02 vs 4.5e-02, ratio 4.1) + compare_egen (passed): gegen sum results similar to egen (tol = 1.00000000000e-06; 1.2e-02 vs 4.3e-02, ratio 3.6) + compare_egen (passed): gegen mean results similar to egen (tol = 1.00000000000e-06; 1.0e-02 vs 2.5e-02, ratio 2.5) + compare_egen (passed): gegen sd results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.3e-02, ratio 3.8) + compare_egen (passed): gegen max results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 2.1e-02, ratio 4.2) + compare_egen (passed): gegen min results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 2.7e-02, ratio 3) + compare_egen (passed): gegen count results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 3.4e-02, ratio 5.7) + compare_egen (passed): gegen median results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.0e-02, ratio 2.5) + compare_egen (passed): gegen iqr results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 4.2e-02, ratio 8.4) + compare_egen (passed): gegen skew results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs .66, ratio 1.3e+02) + compare_egen (passed): gegen kurt results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs .52, ratio 57) + compare_egen (passed): gegen percentile 1 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 3.5e-02, ratio 5.8) + compare_egen (passed): gegen percentile 10 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.1e-02, ratio 3.5) + compare_egen (passed): gegen percentile 30 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.9e-02, ratio 3.2) + compare_egen (passed): gegen percentile 50 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.0e-02, ratio 3.3) + compare_egen (passed): gegen percentile 70 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.6e-02, ratio 4.3) + compare_egen (passed): gegen percentile 90 results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 3.0e-02, ratio 3.8) + compare_egen (passed): gegen percentile 99 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 3.5e-02, ratio 5) + compare_egen (passed): gegen tag results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.0e-02, ratio 3.3) + compare_egen (passed): gegen tag, missing results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.8e-02, ratio 3.6) + compare_egen (passed): gegen group results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.7e-02, ratio 4.5) + compare_egen (passed): gegen group, missing results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 3.8e-02, ratio 4.8) compare_egen (passed): gegen counts results similar to gegen count (tol = 1.00000000000e-06) @@ -1785,103 +1796,103 @@ Checking egen. N = 10,000; varlist = int1 int2 int3 --------------------------------------------------- Checking full egen range: int1 int2 int3 - compare_egen (passed): gegen total results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.4e-02, ratio 2.3) - compare_egen (passed): gegen sum results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.5e-02, ratio 2.5) - compare_egen (passed): gegen mean results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.6e-02, ratio 2.7) - compare_egen (passed): gegen sd results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 1.9e-02, ratio 2.7) - compare_egen (passed): gegen max results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.2e-02, ratio 3.7) - compare_egen (passed): gegen min results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 1.4e-02, ratio 1.6) - compare_egen (passed): gegen count results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 1.6e-02, ratio 2) - compare_egen (passed): gegen median results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.6e-02, ratio 2.7) - compare_egen (passed): gegen iqr results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 3.4e-02, ratio 4.9) - compare_egen (passed): gegen skew results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs .74, ratio 1.2e+02) - compare_egen (passed): gegen kurt results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs .79, ratio 1.3e+02) - compare_egen (passed): gegen percentile 1 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 1.5e-02, ratio 2.1) - compare_egen (passed): gegen percentile 10 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 1.7e-02, ratio 2.4) - compare_egen (passed): gegen percentile 30 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.9e-02, ratio 3.2) - compare_egen (passed): gegen percentile 50 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.3e-02, ratio 3.8) - compare_egen (passed): gegen percentile 70 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 6.4e-02, ratio 9.1) - compare_egen (passed): gegen percentile 90 results similar to egen (tol = 1.00000000000e-06; 1.6e-02 vs 3.5e-02, ratio 2.2) - compare_egen (passed): gegen percentile 99 results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 2.0e-02, ratio 2.2) - compare_egen (passed): gegen tag results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.8e-02, ratio 3) - compare_egen (passed): gegen tag, missing results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.6e-02, ratio 2.7) - compare_egen (passed): gegen group results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.7e-02, ratio 2.8) - compare_egen (passed): gegen group, missing results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.5e-02, ratio 3) + compare_egen (passed): gegen total results similar to egen (tol = 1.00000000000e-06; 1.5e-02 vs 3.9e-02, ratio 2.6) + compare_egen (passed): gegen sum results similar to egen (tol = 1.00000000000e-06; 1.1e-02 vs 4.1e-02, ratio 3.7) + compare_egen (passed): gegen mean results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 3.3e-02, ratio 4.1) + compare_egen (passed): gegen sd results similar to egen (tol = 1.00000000000e-06; 1.4e-02 vs 4.9e-02, ratio 3.5) + compare_egen (passed): gegen max results similar to egen (tol = 1.00000000000e-06; 1.6e-02 vs 4.4e-02, ratio 2.8) + compare_egen (passed): gegen min results similar to egen (tol = 1.00000000000e-06; 1.2e-02 vs 2.1e-02, ratio 1.8) + compare_egen (passed): gegen count results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 1.9e-02, ratio 2.7) + compare_egen (passed): gegen median results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.9e-02, ratio 4.8) + compare_egen (passed): gegen iqr results similar to egen (tol = 1.00000000000e-06; 1.0e-02 vs 6.5e-02, ratio 6.5) + compare_egen (passed): gegen skew results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 1.4, ratio 1.8e+02) + compare_egen (passed): gegen kurt results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 1.4, ratio 1.7e+02) + compare_egen (passed): gegen percentile 1 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.0e-02, ratio 3.3) + compare_egen (passed): gegen percentile 10 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.0e-02, ratio 3.3) + compare_egen (passed): gegen percentile 30 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.1e-02, ratio 3.5) + compare_egen (passed): gegen percentile 50 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.0e-02, ratio 3.3) + compare_egen (passed): gegen percentile 70 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.0e-02, ratio 3.3) + compare_egen (passed): gegen percentile 90 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.1e-02, ratio 3.5) + compare_egen (passed): gegen percentile 99 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.1e-02, ratio 3) + compare_egen (passed): gegen tag results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 2.5e-02, ratio 5) + compare_egen (passed): gegen tag, missing results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 3.1e-02, ratio 3.4) + compare_egen (passed): gegen group results similar to egen (tol = 1.00000000000e-06; 1.2e-02 vs 2.5e-02, ratio 2.1) + compare_egen (passed): gegen group, missing results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 1.7e-02, ratio 2.4) compare_egen (passed): gegen counts results similar to gegen count (tol = 1.00000000000e-06) Checking [ in 2164/7509] egen range: int1 int2 int3 - compare_egen (passed): gegen total results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 3.0e-02, ratio 4.3) - compare_egen (passed): gegen sum results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 3.0e-02, ratio 3.8) - compare_egen (passed): gegen mean results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.8e-02, ratio 3) - compare_egen (passed): gegen sd results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.3e-02, ratio 3.8) - compare_egen (passed): gegen max results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.0e-02, ratio 3.3) - compare_egen (passed): gegen min results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.5e-02, ratio 3) - compare_egen (passed): gegen count results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.3e-02, ratio 3.8) - compare_egen (passed): gegen median results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 2.2e-02, ratio 4.4) - compare_egen (passed): gegen iqr results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 4.1e-02, ratio 6.8) - compare_egen (passed): gegen skew results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs .8, ratio 1.3e+02) - compare_egen (passed): gegen kurt results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs .77, ratio 1.3e+02) - compare_egen (passed): gegen percentile 1 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.9e-02, ratio 3.2) - compare_egen (passed): gegen percentile 10 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.1e-02, ratio 3.5) - compare_egen (passed): gegen percentile 30 results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 2.8e-02, ratio 3.1) - compare_egen (passed): gegen percentile 50 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.2e-02, ratio 3.1) - compare_egen (passed): gegen percentile 70 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.0e-02, ratio 2.9) - compare_egen (passed): gegen percentile 90 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.2e-02, ratio 3.1) - compare_egen (passed): gegen percentile 99 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 1.9e-02, ratio 2.7) - compare_egen (passed): gegen tag results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.7e-02, ratio 3.4) - compare_egen (passed): gegen tag, missing results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.6e-02, ratio 3.2) - compare_egen (passed): gegen group results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.6e-02, ratio 3.2) - compare_egen (passed): gegen group, missing results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.6e-02, ratio 3.2) + compare_egen (passed): gegen total results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.1e-02, ratio 3.5) + compare_egen (passed): gegen sum results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.1e-02, ratio 3.5) + compare_egen (passed): gegen mean results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 2.0e-02, ratio 4) + compare_egen (passed): gegen sd results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.4e-02, ratio 4) + compare_egen (passed): gegen max results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.3e-02, ratio 3.8) + compare_egen (passed): gegen min results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.8e-02, ratio 3.6) + compare_egen (passed): gegen count results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 2.3e-02, ratio 4.6) + compare_egen (passed): gegen median results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 3.6e-02, ratio 7.2) + compare_egen (passed): gegen iqr results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 5.4e-02, ratio 9) + compare_egen (passed): gegen skew results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 1.3, ratio 1.6e+02) + compare_egen (passed): gegen kurt results similar to egen (tol = 1.00000000000e-06; 1.0e-02 vs 1.3, ratio 1.3e+02) + compare_egen (passed): gegen percentile 1 results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 3.2e-02, ratio 6.4) + compare_egen (passed): gegen percentile 10 results similar to egen (tol = 1.00000000000e-06; 1.1e-02 vs 4.4e-02, ratio 4) + compare_egen (passed): gegen percentile 30 results similar to egen (tol = 1.00000000000e-06; 1.0e-02 vs 4.7e-02, ratio 4.7) + compare_egen (passed): gegen percentile 50 results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 3.9e-02, ratio 4.9) + compare_egen (passed): gegen percentile 70 results similar to egen (tol = 1.00000000000e-06; 1.2e-02 vs 4.4e-02, ratio 3.7) + compare_egen (passed): gegen percentile 90 results similar to egen (tol = 1.00000000000e-06; 1.2e-02 vs 4.5e-02, ratio 3.8) + compare_egen (passed): gegen percentile 99 results similar to egen (tol = 1.00000000000e-06; 1.1e-02 vs 3.4e-02, ratio 3.1) + compare_egen (passed): gegen tag results similar to egen (tol = 1.00000000000e-06; 1.0e-02 vs 3.1e-02, ratio 3.1) + compare_egen (passed): gegen tag, missing results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.7e-02, ratio 3.4) + compare_egen (passed): gegen group results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 2.6e-02, ratio 5.2) + compare_egen (passed): gegen group, missing results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 4.9e-02, ratio 5.4) compare_egen (passed): gegen counts results similar to gegen count (tol = 1.00000000000e-06) Checking [if random2 > 0 ] egen range: int1 int2 int3 - compare_egen (passed): gegen total results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.6e-02, ratio 2.7) - compare_egen (passed): gegen sum results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.6e-02, ratio 2.7) - compare_egen (passed): gegen mean results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.5e-02, ratio 2.5) - compare_egen (passed): gegen sd results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.8e-02, ratio 3) - compare_egen (passed): gegen max results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.7e-02, ratio 3.4) - compare_egen (passed): gegen min results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.3e-02, ratio 2.6) - compare_egen (passed): gegen count results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.5e-02, ratio 2.5) - compare_egen (passed): gegen median results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.8e-02, ratio 3) - compare_egen (passed): gegen iqr results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 3.6e-02, ratio 6) - compare_egen (passed): gegen skew results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs .41, ratio 68) - compare_egen (passed): gegen kurt results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs .4, ratio 57) - compare_egen (passed): gegen percentile 1 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.5e-02, ratio 2.5) - compare_egen (passed): gegen percentile 10 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.5e-02, ratio 2.5) - compare_egen (passed): gegen percentile 30 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.5e-02, ratio 2.5) - compare_egen (passed): gegen percentile 50 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.8e-02, ratio 3) - compare_egen (passed): gegen percentile 70 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 1.6e-02, ratio 2.3) - compare_egen (passed): gegen percentile 90 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 1.9e-02, ratio 2.7) - compare_egen (passed): gegen percentile 99 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.9e-02, ratio 3.2) - compare_egen (passed): gegen tag results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.8e-02, ratio 3.6) - compare_egen (passed): gegen tag, missing results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.5e-02, ratio 4.2) - compare_egen (passed): gegen group results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 1.7e-02, ratio 2.4) - compare_egen (passed): gegen group, missing results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.7e-02, ratio 2.8) + compare_egen (passed): gegen total results similar to egen (tol = 1.00000000000e-06; 1.1e-02 vs 3.9e-02, ratio 3.5) + compare_egen (passed): gegen sum results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 4.4e-02, ratio 5.5) + compare_egen (passed): gegen mean results similar to egen (tol = 1.00000000000e-06; 1.3e-02 vs 3.8e-02, ratio 2.9) + compare_egen (passed): gegen sd results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 3.6e-02, ratio 4.5) + compare_egen (passed): gegen max results similar to egen (tol = 1.00000000000e-06; 1.1e-02 vs 3.8e-02, ratio 3.5) + compare_egen (passed): gegen min results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 3.1e-02, ratio 3.4) + compare_egen (passed): gegen count results similar to egen (tol = 1.00000000000e-06; 1.3e-02 vs 4.3e-02, ratio 3.3) + compare_egen (passed): gegen median results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.9e-02, ratio 3.6) + compare_egen (passed): gegen iqr results similar to egen (tol = 1.00000000000e-06; 1.2e-02 vs 4.9e-02, ratio 4.1) + compare_egen (passed): gegen skew results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs .61, ratio 87) + compare_egen (passed): gegen kurt results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs .74, ratio 1.2e+02) + compare_egen (passed): gegen percentile 1 results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 2.2e-02, ratio 2.4) + compare_egen (passed): gegen percentile 10 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.0e-02, ratio 3.3) + compare_egen (passed): gegen percentile 30 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 3.6e-02, ratio 5.1) + compare_egen (passed): gegen percentile 50 results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 3.5e-02, ratio 4.4) + compare_egen (passed): gegen percentile 70 results similar to egen (tol = 1.00000000000e-06; 1.4e-02 vs 4.3e-02, ratio 3.1) + compare_egen (passed): gegen percentile 90 results similar to egen (tol = 1.00000000000e-06; 1.2e-02 vs 2.3e-02, ratio 1.9) + compare_egen (passed): gegen percentile 99 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.2e-02, ratio 3.1) + compare_egen (passed): gegen tag results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 3.0e-02, ratio 6) + compare_egen (passed): gegen tag, missing results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.1e-02, ratio 2.6) + compare_egen (passed): gegen group results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 3.2e-02, ratio 4.6) + compare_egen (passed): gegen group, missing results similar to egen (tol = 1.00000000000e-06; 1.3e-02 vs 3.3e-02, ratio 2.5) compare_egen (passed): gegen counts results similar to gegen count (tol = 1.00000000000e-06) Checking [if random2 < 0 in 2472/9035] egen range: int1 int2 int3 - compare_egen (passed): gegen total results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.9e-02, ratio 3.2) - compare_egen (passed): gegen sum results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 1.8e-02, ratio 2.6) - compare_egen (passed): gegen mean results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.9e-02, ratio 3.2) - compare_egen (passed): gegen sd results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 2.3e-02, ratio 4.6) - compare_egen (passed): gegen max results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.9e-02, ratio 3.2) - compare_egen (passed): gegen min results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.5e-02, ratio 2.5) - compare_egen (passed): gegen count results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.8e-02, ratio 3) - compare_egen (passed): gegen median results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.8e-02, ratio 3.6) - compare_egen (passed): gegen iqr results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 3.3e-02, ratio 5.5) - compare_egen (passed): gegen skew results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs .38, ratio 64) - compare_egen (passed): gegen kurt results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs .4, ratio 79) - compare_egen (passed): gegen percentile 1 results similar to egen (tol = 1.00000000000e-06; 1.3e-02 vs 4.2e-02, ratio 3.2) - compare_egen (passed): gegen percentile 10 results similar to egen (tol = 1.00000000000e-06; 1.3e-02 vs 4.1e-02, ratio 3.2) - compare_egen (passed): gegen percentile 30 results similar to egen (tol = 1.00000000000e-06; 1.3e-02 vs 3.1e-02, ratio 2.4) - compare_egen (passed): gegen percentile 50 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.7e-02, ratio 2.8) - compare_egen (passed): gegen percentile 70 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.7e-02, ratio 2.8) - compare_egen (passed): gegen percentile 90 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.7e-02, ratio 2.8) - compare_egen (passed): gegen percentile 99 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.6e-02, ratio 2.7) - compare_egen (passed): gegen tag results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.4e-02, ratio 2.8) - compare_egen (passed): gegen tag, missing results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.4e-02, ratio 2.8) - compare_egen (passed): gegen group results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.4e-02, ratio 2.8) - compare_egen (passed): gegen group, missing results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.5e-02, ratio 2.5) + compare_egen (passed): gegen total results similar to egen (tol = 1.00000000000e-06; 1.0e-02 vs 4.1e-02, ratio 4.1) + compare_egen (passed): gegen sum results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 3.6e-02, ratio 4) + compare_egen (passed): gegen mean results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 3.3e-02, ratio 3.7) + compare_egen (passed): gegen sd results similar to egen (tol = 1.00000000000e-06; 1.0e-02 vs 3.0e-02, ratio 3) + compare_egen (passed): gegen max results similar to egen (tol = 1.00000000000e-06; 1.0e-02 vs 3.2e-02, ratio 3.2) + compare_egen (passed): gegen min results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 3.2e-02, ratio 4) + compare_egen (passed): gegen count results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 4.0e-02, ratio 5.7) + compare_egen (passed): gegen median results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.3e-02, ratio 3.8) + compare_egen (passed): gegen iqr results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 4.9e-02, ratio 8.2) + compare_egen (passed): gegen skew results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs .61, ratio 77) + compare_egen (passed): gegen kurt results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs .66, ratio 1.1e+02) + compare_egen (passed): gegen percentile 1 results similar to egen (tol = 1.00000000000e-06; 1.2e-02 vs 4.6e-02, ratio 3.8) + compare_egen (passed): gegen percentile 10 results similar to egen (tol = 1.00000000000e-06; 1.0e-02 vs 4.5e-02, ratio 4.5) + compare_egen (passed): gegen percentile 30 results similar to egen (tol = 1.00000000000e-06; 1.2e-02 vs 3.2e-02, ratio 2.7) + compare_egen (passed): gegen percentile 50 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.2e-02, ratio 3.7) + compare_egen (passed): gegen percentile 70 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.1e-02, ratio 3.5) + compare_egen (passed): gegen percentile 90 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 3.7e-02, ratio 6.2) + compare_egen (passed): gegen percentile 99 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 3.4e-02, ratio 4.9) + compare_egen (passed): gegen tag results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 4.0e-02, ratio 5) + compare_egen (passed): gegen tag, missing results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 1.9e-02, ratio 2.7) + compare_egen (passed): gegen group results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.8e-02, ratio 3) + compare_egen (passed): gegen group, missing results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.6e-02, ratio 2.7) compare_egen (passed): gegen counts results similar to gegen count (tol = 1.00000000000e-06) @@ -1889,103 +1900,103 @@ Checking egen. N = 10,000; varlist = int1 str_32 double1 -------------------------------------------------------- Checking full egen range: int1 str_32 double1 - compare_egen (passed): gegen total results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 1.6e-02, ratio 2.3) - compare_egen (passed): gegen sum results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 1.6e-02, ratio 2.3) - compare_egen (passed): gegen mean results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 1.8e-02, ratio 2.3) - compare_egen (passed): gegen sd results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.9e-02, ratio 3.6) - compare_egen (passed): gegen max results similar to egen (tol = 1.00000000000e-06; 2.1e-02 vs 5.2e-02, ratio 2.5) - compare_egen (passed): gegen min results similar to egen (tol = 1.00000000000e-06; 1.8e-02 vs 4.1e-02, ratio 2.3) - compare_egen (passed): gegen count results similar to egen (tol = 1.00000000000e-06; 1.6e-02 vs 3.8e-02, ratio 2.4) - compare_egen (passed): gegen median results similar to egen (tol = 1.00000000000e-06; 1.6e-02 vs 4.8e-02, ratio 3) - compare_egen (passed): gegen iqr results similar to egen (tol = 1.00000000000e-06; 2.3e-02 vs 9.2e-02, ratio 4) - compare_egen (passed): gegen skew results similar to egen (tol = 1.00000000000e-06; 1.6e-02 vs .82, ratio 51) - compare_egen (passed): gegen kurt results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs .78, ratio 1.1e+02) - compare_egen (passed): gegen percentile 1 results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.0e-02, ratio 2.5) - compare_egen (passed): gegen percentile 10 results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.0e-02, ratio 2.5) - compare_egen (passed): gegen percentile 30 results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.0e-02, ratio 2.5) - compare_egen (passed): gegen percentile 50 results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.1e-02, ratio 2.6) - compare_egen (passed): gegen percentile 70 results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.1e-02, ratio 2.6) - compare_egen (passed): gegen percentile 90 results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.1e-02, ratio 2.6) - compare_egen (passed): gegen percentile 99 results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 2.0e-02, ratio 2.2) - compare_egen (passed): gegen tag results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 1.8e-02, ratio 2.6) - compare_egen (passed): gegen tag, missing results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.7e-02, ratio 2.8) - compare_egen (passed): gegen group results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 1.6e-02, ratio 2.3) - compare_egen (passed): gegen group, missing results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 1.6e-02, ratio 2.3) + compare_egen (passed): gegen total results similar to egen (tol = 1.00000000000e-06; 1.3e-02 vs 4.5e-02, ratio 3.5) + compare_egen (passed): gegen sum results similar to egen (tol = 1.00000000000e-06; 1.9e-02 vs 4.1e-02, ratio 2.2) + compare_egen (passed): gegen mean results similar to egen (tol = 1.00000000000e-06; 1.9e-02 vs 3.8e-02, ratio 2) + compare_egen (passed): gegen sd results similar to egen (tol = 1.00000000000e-06; 1.2e-02 vs 2.8e-02, ratio 2.3) + compare_egen (passed): gegen max results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.0e-02, ratio 2.9) + compare_egen (passed): gegen min results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 1.7e-02, ratio 2.4) + compare_egen (passed): gegen count results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.0e-02, ratio 2.9) + compare_egen (passed): gegen median results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.1e-02, ratio 3) + compare_egen (passed): gegen iqr results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 4.7e-02, ratio 5.9) + compare_egen (passed): gegen skew results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 1.4, ratio 2.0e+02) + compare_egen (passed): gegen kurt results similar to egen (tol = 1.00000000000e-06; 1.1e-02 vs 1.2, ratio 1.1e+02) + compare_egen (passed): gegen percentile 1 results similar to egen (tol = 1.00000000000e-06; 1.4e-02 vs 3.0e-02, ratio 2.1) + compare_egen (passed): gegen percentile 10 results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.2e-02, ratio 2.8) + compare_egen (passed): gegen percentile 30 results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 3.6e-02, ratio 4.5) + compare_egen (passed): gegen percentile 50 results similar to egen (tol = 1.00000000000e-06; 1.4e-02 vs 4.7e-02, ratio 3.4) + compare_egen (passed): gegen percentile 70 results similar to egen (tol = 1.00000000000e-06; 1.4e-02 vs 3.5e-02, ratio 2.5) + compare_egen (passed): gegen percentile 90 results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.2e-02, ratio 2.8) + compare_egen (passed): gegen percentile 99 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.2e-02, ratio 3.1) + compare_egen (passed): gegen tag results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.9e-02, ratio 3.2) + compare_egen (passed): gegen tag, missing results similar to egen (tol = 1.00000000000e-06; 1.0e-02 vs 2.6e-02, ratio 2.6) + compare_egen (passed): gegen group results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.5e-02, ratio 3.1) + compare_egen (passed): gegen group, missing results similar to egen (tol = 1.00000000000e-06; 1.1e-02 vs 3.2e-02, ratio 2.9) compare_egen (passed): gegen counts results similar to gegen count (tol = 1.00000000000e-06) Checking [ in 389/9505] egen range: int1 str_32 double1 - compare_egen (passed): gegen total results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.5e-02, ratio 3.1) - compare_egen (passed): gegen sum results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 1.8e-02, ratio 2.6) - compare_egen (passed): gegen mean results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 1.8e-02, ratio 2.6) - compare_egen (passed): gegen sd results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.1e-02, ratio 3) - compare_egen (passed): gegen max results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 1.9e-02, ratio 2.7) - compare_egen (passed): gegen min results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 1.4e-02, ratio 2) - compare_egen (passed): gegen count results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 1.8e-02, ratio 2.6) - compare_egen (passed): gegen median results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 1.8e-02, ratio 2.3) - compare_egen (passed): gegen iqr results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 4.2e-02, ratio 5.3) - compare_egen (passed): gegen skew results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs .78, ratio 98) - compare_egen (passed): gegen kurt results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs .77, ratio 96) - compare_egen (passed): gegen percentile 1 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 1.8e-02, ratio 2.6) - compare_egen (passed): gegen percentile 10 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 1.9e-02, ratio 2.7) - compare_egen (passed): gegen percentile 30 results similar to egen (tol = 1.00000000000e-06; 1.0e-02 vs 2.0e-02, ratio 2) - compare_egen (passed): gegen percentile 50 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.1e-02, ratio 3) - compare_egen (passed): gegen percentile 70 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.0e-02, ratio 2.9) - compare_egen (passed): gegen percentile 90 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.1e-02, ratio 3) - compare_egen (passed): gegen percentile 99 results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 2.7e-02, ratio 3) - compare_egen (passed): gegen tag results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.8e-02, ratio 3) - compare_egen (passed): gegen tag, missing results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.6e-02, ratio 2.7) - compare_egen (passed): gegen group results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.5e-02, ratio 2.5) - compare_egen (passed): gegen group, missing results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.5e-02, ratio 2.5) + compare_egen (passed): gegen total results similar to egen (tol = 1.00000000000e-06; 1.4e-02 vs 4.0e-02, ratio 2.9) + compare_egen (passed): gegen sum results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 2.4e-02, ratio 2.7) + compare_egen (passed): gegen mean results similar to egen (tol = 1.00000000000e-06; 1.2e-02 vs 3.1e-02, ratio 2.6) + compare_egen (passed): gegen sd results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.6e-02, ratio 3.7) + compare_egen (passed): gegen max results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.7e-02, ratio 3.9) + compare_egen (passed): gegen min results similar to egen (tol = 1.00000000000e-06; 1.0e-02 vs 2.3e-02, ratio 2.3) + compare_egen (passed): gegen count results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 3.5e-02, ratio 5) + compare_egen (passed): gegen median results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 4.1e-02, ratio 5.1) + compare_egen (passed): gegen iqr results similar to egen (tol = 1.00000000000e-06; 1.3e-02 vs 7.6e-02, ratio 5.8) + compare_egen (passed): gegen skew results similar to egen (tol = 1.00000000000e-06; 1.0e-02 vs 1.5, ratio 1.5e+02) + compare_egen (passed): gegen kurt results similar to egen (tol = 1.00000000000e-06; 1.0e-02 vs 1.4, ratio 1.4e+02) + compare_egen (passed): gegen percentile 1 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 3.0e-02, ratio 4.3) + compare_egen (passed): gegen percentile 10 results similar to egen (tol = 1.00000000000e-06; 1.1e-02 vs 2.3e-02, ratio 2.1) + compare_egen (passed): gegen percentile 30 results similar to egen (tol = 1.00000000000e-06; 1.0e-02 vs 3.4e-02, ratio 3.4) + compare_egen (passed): gegen percentile 50 results similar to egen (tol = 1.00000000000e-06; 1.3e-02 vs 3.4e-02, ratio 2.6) + compare_egen (passed): gegen percentile 70 results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.3e-02, ratio 2.9) + compare_egen (passed): gegen percentile 90 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.5e-02, ratio 3.6) + compare_egen (passed): gegen percentile 99 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.4e-02, ratio 3.4) + compare_egen (passed): gegen tag results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 1.9e-02, ratio 2.7) + compare_egen (passed): gegen tag, missing results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.7e-02, ratio 2.8) + compare_egen (passed): gegen group results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.8e-02, ratio 3) + compare_egen (passed): gegen group, missing results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.9e-02, ratio 3.2) compare_egen (passed): gegen counts results similar to gegen count (tol = 1.00000000000e-06) Checking [if random2 > 0 ] egen range: int1 str_32 double1 - compare_egen (passed): gegen total results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 1.8e-02, ratio 2.3) - compare_egen (passed): gegen sum results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 1.8e-02, ratio 2.3) - compare_egen (passed): gegen mean results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 1.8e-02, ratio 2.6) - compare_egen (passed): gegen sd results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.1e-02, ratio 3) - compare_egen (passed): gegen max results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 1.8e-02, ratio 2.6) - compare_egen (passed): gegen min results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 1.4e-02, ratio 2) - compare_egen (passed): gegen count results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 1.8e-02, ratio 2.6) - compare_egen (passed): gegen median results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.8e-02, ratio 3) - compare_egen (passed): gegen iqr results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 3.6e-02, ratio 5.1) - compare_egen (passed): gegen skew results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs .4, ratio 57) - compare_egen (passed): gegen kurt results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs .4, ratio 57) - compare_egen (passed): gegen percentile 1 results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 1.8e-02, ratio 2.3) - compare_egen (passed): gegen percentile 10 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 1.8e-02, ratio 2.6) - compare_egen (passed): gegen percentile 30 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 1.8e-02, ratio 2.6) - compare_egen (passed): gegen percentile 50 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 1.8e-02, ratio 2.6) - compare_egen (passed): gegen percentile 70 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 1.8e-02, ratio 2.6) - compare_egen (passed): gegen percentile 90 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 1.8e-02, ratio 2.6) - compare_egen (passed): gegen percentile 99 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 1.8e-02, ratio 2.6) - compare_egen (passed): gegen tag results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.7e-02, ratio 2.8) - compare_egen (passed): gegen tag, missing results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.5e-02, ratio 2.5) - compare_egen (passed): gegen group results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.7e-02, ratio 2.8) - compare_egen (passed): gegen group, missing results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.5e-02, ratio 2.5) + compare_egen (passed): gegen total results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.0e-02, ratio 2.9) + compare_egen (passed): gegen sum results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.0e-02, ratio 2.9) + compare_egen (passed): gegen mean results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 1.9e-02, ratio 2.7) + compare_egen (passed): gegen sd results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.6e-02, ratio 4.3) + compare_egen (passed): gegen max results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.1e-02, ratio 3) + compare_egen (passed): gegen min results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 1.9e-02, ratio 2.7) + compare_egen (passed): gegen count results similar to egen (tol = 1.00000000000e-06; 1.1e-02 vs 4.2e-02, ratio 3.8) + compare_egen (passed): gegen median results similar to egen (tol = 1.00000000000e-06; 1.3e-02 vs 4.9e-02, ratio 3.8) + compare_egen (passed): gegen iqr results similar to egen (tol = 1.00000000000e-06; 1.3e-02 vs 6.9e-02, ratio 5.3) + compare_egen (passed): gegen skew results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs .56, ratio 80) + compare_egen (passed): gegen kurt results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs .66, ratio 94) + compare_egen (passed): gegen percentile 1 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.0e-02, ratio 2.9) + compare_egen (passed): gegen percentile 10 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.1e-02, ratio 3) + compare_egen (passed): gegen percentile 30 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.0e-02, ratio 2.9) + compare_egen (passed): gegen percentile 50 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.2e-02, ratio 3.1) + compare_egen (passed): gegen percentile 70 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.1e-02, ratio 3) + compare_egen (passed): gegen percentile 90 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.2e-02, ratio 3.1) + compare_egen (passed): gegen percentile 99 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.1e-02, ratio 3) + compare_egen (passed): gegen tag results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.1e-02, ratio 3.5) + compare_egen (passed): gegen tag, missing results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.8e-02, ratio 3) + compare_egen (passed): gegen group results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.8e-02, ratio 3) + compare_egen (passed): gegen group, missing results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 1.9e-02, ratio 2.7) compare_egen (passed): gegen counts results similar to gegen count (tol = 1.00000000000e-06) Checking [if random2 < 0 in 887/8112] egen range: int1 str_32 double1 - compare_egen (passed): gegen total results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.0e-02, ratio 3.3) - compare_egen (passed): gegen sum results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.6e-02, ratio 3.7) - compare_egen (passed): gegen mean results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 2.5e-02, ratio 2.8) - compare_egen (passed): gegen sd results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.3e-02, ratio 3.8) + compare_egen (passed): gegen total results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.1e-02, ratio 3.5) + compare_egen (passed): gegen sum results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.1e-02, ratio 3.5) + compare_egen (passed): gegen mean results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.0e-02, ratio 3.3) + compare_egen (passed): gegen sd results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.6e-02, ratio 4.3) compare_egen (passed): gegen max results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.1e-02, ratio 3.5) - compare_egen (passed): gegen min results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.7e-02, ratio 2.8) - compare_egen (passed): gegen count results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.0e-02, ratio 2.9) - compare_egen (passed): gegen median results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.1e-02, ratio 3) - compare_egen (passed): gegen iqr results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 6.1e-02, ratio 8.7) - compare_egen (passed): gegen skew results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs .42, ratio 60) - compare_egen (passed): gegen kurt results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs .4, ratio 57) - compare_egen (passed): gegen percentile 1 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.7e-02, ratio 2.8) - compare_egen (passed): gegen percentile 10 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.8e-02, ratio 3) + compare_egen (passed): gegen min results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.8e-02, ratio 3.6) + compare_egen (passed): gegen count results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.2e-02, ratio 3.7) + compare_egen (passed): gegen median results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.6e-02, ratio 3.7) + compare_egen (passed): gegen iqr results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 9.9e-02, ratio 11) + compare_egen (passed): gegen skew results similar to egen (tol = 1.00000000000e-06; 1.2e-02 vs .73, ratio 61) + compare_egen (passed): gegen kurt results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs .55, ratio 91) + compare_egen (passed): gegen percentile 1 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.2e-02, ratio 3.7) + compare_egen (passed): gegen percentile 10 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.1e-02, ratio 3.5) compare_egen (passed): gegen percentile 30 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.0e-02, ratio 3.3) - compare_egen (passed): gegen percentile 50 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 1.8e-02, ratio 2.6) - compare_egen (passed): gegen percentile 70 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.3e-02, ratio 3.3) - compare_egen (passed): gegen percentile 90 results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 2.2e-02, ratio 2.4) - compare_egen (passed): gegen percentile 99 results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.4e-02, ratio 3) - compare_egen (passed): gegen tag results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 2.0e-02, ratio 4) - compare_egen (passed): gegen tag, missing results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.7e-02, ratio 2.8) - compare_egen (passed): gegen group results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.8e-02, ratio 3) - compare_egen (passed): gegen group, missing results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 2.7e-02, ratio 5.4) + compare_egen (passed): gegen percentile 50 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.3e-02, ratio 3.3) + compare_egen (passed): gegen percentile 70 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.2e-02, ratio 3.7) + compare_egen (passed): gegen percentile 90 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.1e-02, ratio 3.5) + compare_egen (passed): gegen percentile 99 results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.1e-02, ratio 3.5) + compare_egen (passed): gegen tag results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.9e-02, ratio 3.2) + compare_egen (passed): gegen tag, missing results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.8e-02, ratio 3) + compare_egen (passed): gegen group results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 1.9e-02, ratio 3.2) + compare_egen (passed): gegen group, missing results similar to egen (tol = 1.00000000000e-06; 5.0e-03 vs 1.8e-02, ratio 3.6) compare_egen (passed): gegen counts results similar to gegen count (tol = 1.00000000000e-06) @@ -1993,103 +2004,103 @@ Checking egen. N = 10,000; varlist = int1 str_32 double1 int2 str_12 double2 ---------------------------------------------------------------------------- Checking full egen range: int1 str_32 double1 int2 str_12 double2 - compare_egen (passed): gegen total results similar to egen (tol = 1.00000000000e-06; 1.1e-02 vs 2.5e-02, ratio 2.3) - compare_egen (passed): gegen sum results similar to egen (tol = 1.00000000000e-06; 1.0e-02 vs 4.5e-02, ratio 4.5) - compare_egen (passed): gegen mean results similar to egen (tol = 1.00000000000e-06; 1.2e-02 vs 2.9e-02, ratio 2.4) - compare_egen (passed): gegen sd results similar to egen (tol = 1.00000000000e-06; 1.2e-02 vs 2.4e-02, ratio 2) - compare_egen (passed): gegen max results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 2.8e-02, ratio 3.1) - compare_egen (passed): gegen min results similar to egen (tol = 1.00000000000e-06; 1.0e-02 vs 1.6e-02, ratio 1.6) - compare_egen (passed): gegen count results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 1.8e-02, ratio 2) - compare_egen (passed): gegen median results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 1.9e-02, ratio 2.4) - compare_egen (passed): gegen iqr results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 4.2e-02, ratio 4.7) - compare_egen (passed): gegen skew results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs .78, ratio 86) - compare_egen (passed): gegen kurt results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs .75, ratio 93) - compare_egen (passed): gegen percentile 1 results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.0e-02, ratio 2.5) - compare_egen (passed): gegen percentile 10 results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 2.5e-02, ratio 2.8) - compare_egen (passed): gegen percentile 30 results similar to egen (tol = 1.00000000000e-06; 1.2e-02 vs 2.3e-02, ratio 1.9) - compare_egen (passed): gegen percentile 50 results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 2.2e-02, ratio 2.4) - compare_egen (passed): gegen percentile 70 results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 2.1e-02, ratio 2.3) - compare_egen (passed): gegen percentile 90 results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 2.2e-02, ratio 2.4) - compare_egen (passed): gegen percentile 99 results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 2.1e-02, ratio 2.3) - compare_egen (passed): gegen tag results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.0e-02, ratio 2.5) - compare_egen (passed): gegen tag, missing results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 1.7e-02, ratio 2.1) - compare_egen (passed): gegen group results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.8e-02, ratio 3.5) - compare_egen (passed): gegen group, missing results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 1.7e-02, ratio 1.9) + compare_egen (passed): gegen total results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.2e-02, ratio 2.8) + compare_egen (passed): gegen sum results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 2.1e-02, ratio 2.3) + compare_egen (passed): gegen mean results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.1e-02, ratio 2.6) + compare_egen (passed): gegen sd results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 2.5e-02, ratio 2.8) + compare_egen (passed): gegen max results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.2e-02, ratio 2.8) + compare_egen (passed): gegen min results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 1.8e-02, ratio 2.3) + compare_egen (passed): gegen count results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 2.1e-02, ratio 2.3) + compare_egen (passed): gegen median results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 3.5e-02, ratio 3.9) + compare_egen (passed): gegen iqr results similar to egen (tol = 1.00000000000e-06; 1.5e-02 vs 7.9e-02, ratio 5.3) + compare_egen (passed): gegen skew results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 1.1, ratio 1.2e+02) + compare_egen (passed): gegen kurt results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 1, ratio 1.3e+02) + compare_egen (passed): gegen percentile 1 results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.3e-02, ratio 2.9) + compare_egen (passed): gegen percentile 10 results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.4e-02, ratio 3) + compare_egen (passed): gegen percentile 30 results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.4e-02, ratio 3) + compare_egen (passed): gegen percentile 50 results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.4e-02, ratio 3) + compare_egen (passed): gegen percentile 70 results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 2.3e-02, ratio 2.6) + compare_egen (passed): gegen percentile 90 results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.3e-02, ratio 2.9) + compare_egen (passed): gegen percentile 99 results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.4e-02, ratio 3) + compare_egen (passed): gegen tag results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.3e-02, ratio 2.9) + compare_egen (passed): gegen tag, missing results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 1.8e-02, ratio 2.6) + compare_egen (passed): gegen group results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 1.9e-02, ratio 2.1) + compare_egen (passed): gegen group, missing results similar to egen (tol = 1.00000000000e-06; 1.3e-02 vs 3.5e-02, ratio 2.7) compare_egen (passed): gegen counts results similar to gegen count (tol = 1.00000000000e-06) Checking [ in 1181/8447] egen range: int1 str_32 double1 int2 str_12 double2 - compare_egen (passed): gegen total results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.1e-02, ratio 3) - compare_egen (passed): gegen sum results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.1e-02, ratio 2.6) - compare_egen (passed): gegen mean results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.1e-02, ratio 2.6) - compare_egen (passed): gegen sd results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.7e-02, ratio 3.4) - compare_egen (passed): gegen max results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.3e-02, ratio 2.9) - compare_egen (passed): gegen min results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 1.7e-02, ratio 2.1) - compare_egen (passed): gegen count results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 2.2e-02, ratio 2.4) - compare_egen (passed): gegen median results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.3e-02, ratio 2.9) - compare_egen (passed): gegen iqr results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 4.7e-02, ratio 6.7) - compare_egen (passed): gegen skew results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs .78, ratio 98) - compare_egen (passed): gegen kurt results similar to egen (tol = 1.00000000000e-06; 1.3e-02 vs .86, ratio 66) - compare_egen (passed): gegen percentile 1 results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.3e-02, ratio 2.9) + compare_egen (passed): gegen total results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.4e-02, ratio 3) + compare_egen (passed): gegen sum results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.3e-02, ratio 3.3) + compare_egen (passed): gegen mean results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.3e-02, ratio 2.9) + compare_egen (passed): gegen sd results similar to egen (tol = 1.00000000000e-06; 1.2e-02 vs 4.4e-02, ratio 3.7) + compare_egen (passed): gegen max results similar to egen (tol = 1.00000000000e-06; 1.2e-02 vs 2.6e-02, ratio 2.2) + compare_egen (passed): gegen min results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 1.9e-02, ratio 2.4) + compare_egen (passed): gegen count results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.4e-02, ratio 3) + compare_egen (passed): gegen median results similar to egen (tol = 1.00000000000e-06; 1.2e-02 vs 3.1e-02, ratio 2.6) + compare_egen (passed): gegen iqr results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 7.8e-02, ratio 9.8) + compare_egen (passed): gegen skew results similar to egen (tol = 1.00000000000e-06; 1.4e-02 vs 1.3, ratio 96) + compare_egen (passed): gegen kurt results similar to egen (tol = 1.00000000000e-06; 1.2e-02 vs .92, ratio 77) + compare_egen (passed): gegen percentile 1 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.2e-02, ratio 3.1) compare_egen (passed): gegen percentile 10 results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.3e-02, ratio 2.9) - compare_egen (passed): gegen percentile 30 results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.2e-02, ratio 2.8) - compare_egen (passed): gegen percentile 50 results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 2.2e-02, ratio 2.4) - compare_egen (passed): gegen percentile 70 results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.2e-02, ratio 2.8) - compare_egen (passed): gegen percentile 90 results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.3e-02, ratio 2.9) - compare_egen (passed): gegen percentile 99 results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 4.0e-02, ratio 5) - compare_egen (passed): gegen tag results similar to egen (tol = 1.00000000000e-06; 1.4e-02 vs 7.6e-02, ratio 5.4) - compare_egen (passed): gegen tag, missing results similar to egen (tol = 1.00000000000e-06; 2.1e-02 vs 5.2e-02, ratio 2.5) - compare_egen (passed): gegen group results similar to egen (tol = 1.00000000000e-06; 1.7e-02 vs 2.2e-02, ratio 1.3) - compare_egen (passed): gegen group, missing results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.0e-02, ratio 2.5) + compare_egen (passed): gegen percentile 30 results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.4e-02, ratio 3) + compare_egen (passed): gegen percentile 50 results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.6e-02, ratio 3.3) + compare_egen (passed): gegen percentile 70 results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 3.7e-02, ratio 4.6) + compare_egen (passed): gegen percentile 90 results similar to egen (tol = 1.00000000000e-06; 1.8e-02 vs 4.3e-02, ratio 2.4) + compare_egen (passed): gegen percentile 99 results similar to egen (tol = 1.00000000000e-06; 1.3e-02 vs 5.3e-02, ratio 4.1) + compare_egen (passed): gegen tag results similar to egen (tol = 1.00000000000e-06; 1.3e-02 vs 5.0e-02, ratio 3.8) + compare_egen (passed): gegen tag, missing results similar to egen (tol = 1.00000000000e-06; 1.5e-02 vs 4.2e-02, ratio 2.8) + compare_egen (passed): gegen group results similar to egen (tol = 1.00000000000e-06; 1.2e-02 vs 4.8e-02, ratio 4) + compare_egen (passed): gegen group, missing results similar to egen (tol = 1.00000000000e-06; 1.3e-02 vs 4.5e-02, ratio 3.5) compare_egen (passed): gegen counts results similar to gegen count (tol = 1.00000000000e-06) Checking [if random2 > 0 ] egen range: int1 str_32 double1 int2 str_12 double2 - compare_egen (passed): gegen total results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 2.0e-02, ratio 2.2) - compare_egen (passed): gegen sum results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.0e-02, ratio 2.5) - compare_egen (passed): gegen mean results similar to egen (tol = 1.00000000000e-06; 1.0e-02 vs 2.4e-02, ratio 2.4) - compare_egen (passed): gegen sd results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.4e-02, ratio 3) - compare_egen (passed): gegen max results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.4e-02, ratio 3) - compare_egen (passed): gegen min results similar to egen (tol = 1.00000000000e-06; 1.0e-02 vs 2.6e-02, ratio 2.6) - compare_egen (passed): gegen count results similar to egen (tol = 1.00000000000e-06; 1.0e-02 vs 2.3e-02, ratio 2.3) - compare_egen (passed): gegen median results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 2.4e-02, ratio 2.7) - compare_egen (passed): gegen iqr results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 8.5e-02, ratio 9.4) - compare_egen (passed): gegen skew results similar to egen (tol = 1.00000000000e-06; 1.1e-02 vs .62, ratio 56) - compare_egen (passed): gegen kurt results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs .72, ratio 90) - compare_egen (passed): gegen percentile 1 results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.0e-02, ratio 2.5) - compare_egen (passed): gegen percentile 10 results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.2e-02, ratio 2.8) - compare_egen (passed): gegen percentile 30 results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 2.2e-02, ratio 2.4) - compare_egen (passed): gegen percentile 50 results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 2.2e-02, ratio 2.4) - compare_egen (passed): gegen percentile 70 results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 2.4e-02, ratio 2.7) - compare_egen (passed): gegen percentile 90 results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 2.4e-02, ratio 2.7) - compare_egen (passed): gegen percentile 99 results similar to egen (tol = 1.00000000000e-06; 1.0e-02 vs 2.3e-02, ratio 2.3) - compare_egen (passed): gegen tag results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.4e-02, ratio 3.4) - compare_egen (passed): gegen tag, missing results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 1.9e-02, ratio 2.7) - compare_egen (passed): gegen group results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.1e-02, ratio 3) - compare_egen (passed): gegen group, missing results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.0e-02, ratio 2.9) + compare_egen (passed): gegen total results similar to egen (tol = 1.00000000000e-06; 1.4e-02 vs 4.8e-02, ratio 3.4) + compare_egen (passed): gegen sum results similar to egen (tol = 1.00000000000e-06; 1.4e-02 vs 4.5e-02, ratio 3.2) + compare_egen (passed): gegen mean results similar to egen (tol = 1.00000000000e-06; 1.5e-02 vs 4.2e-02, ratio 2.8) + compare_egen (passed): gegen sd results similar to egen (tol = 1.00000000000e-06; 1.3e-02 vs 5.6e-02, ratio 4.3) + compare_egen (passed): gegen max results similar to egen (tol = 1.00000000000e-06; 1.4e-02 vs 5.4e-02, ratio 3.9) + compare_egen (passed): gegen min results similar to egen (tol = 1.00000000000e-06; 1.6e-02 vs 4.5e-02, ratio 2.8) + compare_egen (passed): gegen count results similar to egen (tol = 1.00000000000e-06; 1.6e-02 vs 5.2e-02, ratio 3.3) + compare_egen (passed): gegen median results similar to egen (tol = 1.00000000000e-06; 1.5e-02 vs 4.6e-02, ratio 3.1) + compare_egen (passed): gegen iqr results similar to egen (tol = 1.00000000000e-06; 1.6e-02 vs 9.9e-02, ratio 6.2) + compare_egen (passed): gegen skew results similar to egen (tol = 1.00000000000e-06; 1.6e-02 vs .68, ratio 43) + compare_egen (passed): gegen kurt results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 1.3, ratio 1.9e+02) + compare_egen (passed): gegen percentile 1 results similar to egen (tol = 1.00000000000e-06; 2.5e-02 vs .1, ratio 4.1) + compare_egen (passed): gegen percentile 10 results similar to egen (tol = 1.00000000000e-06; 3.2e-02 vs .12, ratio 3.6) + compare_egen (passed): gegen percentile 30 results similar to egen (tol = 1.00000000000e-06; 2.9e-02 vs 9.1e-02, ratio 3.1) + compare_egen (passed): gegen percentile 50 results similar to egen (tol = 1.00000000000e-06; 1.8e-02 vs 6.1e-02, ratio 3.4) + compare_egen (passed): gegen percentile 70 results similar to egen (tol = 1.00000000000e-06; 1.4e-02 vs 2.6e-02, ratio 1.9) + compare_egen (passed): gegen percentile 90 results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.5e-02, ratio 3.1) + compare_egen (passed): gegen percentile 99 results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.4e-02, ratio 3) + compare_egen (passed): gegen tag results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.6e-02, ratio 3.7) + compare_egen (passed): gegen tag, missing results similar to egen (tol = 1.00000000000e-06; 1.0e-02 vs 4.7e-02, ratio 4.7) + compare_egen (passed): gegen group results similar to egen (tol = 1.00000000000e-06; 1.8e-02 vs 5.3e-02, ratio 2.9) + compare_egen (passed): gegen group, missing results similar to egen (tol = 1.00000000000e-06; 1.8e-02 vs 5.3e-02, ratio 2.9) compare_egen (passed): gegen counts results similar to gegen count (tol = 1.00000000000e-06) Checking [if random2 < 0 in 22/9436] egen range: int1 str_32 double1 int2 str_12 double2 - compare_egen (passed): gegen total results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.4e-02, ratio 3) - compare_egen (passed): gegen sum results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 3.2e-02, ratio 3.6) - compare_egen (passed): gegen mean results similar to egen (tol = 1.00000000000e-06; 1.0e-02 vs 3.3e-02, ratio 3.3) + compare_egen (passed): gegen total results similar to egen (tol = 1.00000000000e-06; 1.8e-02 vs 4.6e-02, ratio 2.6) + compare_egen (passed): gegen sum results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 2.6e-02, ratio 2.9) + compare_egen (passed): gegen mean results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 3.0e-02, ratio 3.8) compare_egen (passed): gegen sd results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.7e-02, ratio 3.4) - compare_egen (passed): gegen max results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 2.2e-02, ratio 2.4) - compare_egen (passed): gegen min results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 1.7e-02, ratio 2.4) - compare_egen (passed): gegen count results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.1e-02, ratio 2.6) - compare_egen (passed): gegen median results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.1e-02, ratio 3) - compare_egen (passed): gegen iqr results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 4.2e-02, ratio 5.3) - compare_egen (passed): gegen skew results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs .56, ratio 71) - compare_egen (passed): gegen kurt results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs .45, ratio 64) - compare_egen (passed): gegen percentile 1 results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 2.3e-02, ratio 2.6) - compare_egen (passed): gegen percentile 10 results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.2e-02, ratio 2.8) - compare_egen (passed): gegen percentile 30 results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 2.2e-02, ratio 2.4) - compare_egen (passed): gegen percentile 50 results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.3e-02, ratio 2.9) - compare_egen (passed): gegen percentile 70 results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.1e-02, ratio 2.6) - compare_egen (passed): gegen percentile 90 results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 2.1e-02, ratio 2.3) - compare_egen (passed): gegen percentile 99 results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.2e-02, ratio 2.8) - compare_egen (passed): gegen tag results similar to egen (tol = 1.00000000000e-06; 6.0e-03 vs 2.5e-02, ratio 4.2) - compare_egen (passed): gegen tag, missing results similar to egen (tol = 1.00000000000e-06; 1.0e-02 vs 3.7e-02, ratio 3.7) - compare_egen (passed): gegen group results similar to egen (tol = 1.00000000000e-06; 1.0e-02 vs 3.1e-02, ratio 3.1) - compare_egen (passed): gegen group, missing results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.0e-02, ratio 2.5) + compare_egen (passed): gegen max results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.2e-02, ratio 2.8) + compare_egen (passed): gegen min results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.1e-02, ratio 3) + compare_egen (passed): gegen count results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.3e-02, ratio 2.9) + compare_egen (passed): gegen median results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.4e-02, ratio 3.4) + compare_egen (passed): gegen iqr results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 5.1e-02, ratio 7.3) + compare_egen (passed): gegen skew results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs .59, ratio 74) + compare_egen (passed): gegen kurt results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs .67, ratio 96) + compare_egen (passed): gegen percentile 1 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.2e-02, ratio 3.1) + compare_egen (passed): gegen percentile 10 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.3e-02, ratio 3.3) + compare_egen (passed): gegen percentile 30 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.4e-02, ratio 3.4) + compare_egen (passed): gegen percentile 50 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.2e-02, ratio 3.1) + compare_egen (passed): gegen percentile 70 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.3e-02, ratio 3.3) + compare_egen (passed): gegen percentile 90 results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.4e-02, ratio 3) + compare_egen (passed): gegen percentile 99 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.4e-02, ratio 3.4) + compare_egen (passed): gegen tag results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.2e-02, ratio 3.1) + compare_egen (passed): gegen tag, missing results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 1.9e-02, ratio 2.7) + compare_egen (passed): gegen group results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 1.9e-02, ratio 2.7) + compare_egen (passed): gegen group, missing results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.0e-02, ratio 2.9) compare_egen (passed): gegen counts results similar to gegen count (tol = 1.00000000000e-06) @@ -2097,103 +2108,103 @@ Checking egen. N = 10,000; varlist = int1 str_32 double1 int2 str_12 double2 int ----------------------------------------------------------------------------------------------- Checking full egen range: int1 str_32 double1 int2 str_12 double2 int3 str_4 double3 - compare_egen (passed): gegen total results similar to egen (tol = 1.00000000000e-06; 1.1e-02 vs 2.2e-02, ratio 2) - compare_egen (passed): gegen sum results similar to egen (tol = 1.00000000000e-06; 1.0e-02 vs 2.3e-02, ratio 2.3) - compare_egen (passed): gegen mean results similar to egen (tol = 1.00000000000e-06; 1.0e-02 vs 2.4e-02, ratio 2.4) - compare_egen (passed): gegen sd results similar to egen (tol = 1.00000000000e-06; 1.0e-02 vs 2.6e-02, ratio 2.6) - compare_egen (passed): gegen max results similar to egen (tol = 1.00000000000e-06; 1.1e-02 vs 2.3e-02, ratio 2.1) - compare_egen (passed): gegen min results similar to egen (tol = 1.00000000000e-06; 1.0e-02 vs 1.9e-02, ratio 1.9) - compare_egen (passed): gegen count results similar to egen (tol = 1.00000000000e-06; 1.1e-02 vs 2.2e-02, ratio 2) - compare_egen (passed): gegen median results similar to egen (tol = 1.00000000000e-06; 1.0e-02 vs 3.1e-02, ratio 3.1) - compare_egen (passed): gegen iqr results similar to egen (tol = 1.00000000000e-06; 1.1e-02 vs 5.6e-02, ratio 5.1) - compare_egen (passed): gegen skew results similar to egen (tol = 1.00000000000e-06; 1.1e-02 vs .84, ratio 77) - compare_egen (passed): gegen kurt results similar to egen (tol = 1.00000000000e-06; 1.1e-02 vs 1, ratio 94) - compare_egen (passed): gegen percentile 1 results similar to egen (tol = 1.00000000000e-06; 1.1e-02 vs 3.5e-02, ratio 3.2) - compare_egen (passed): gegen percentile 10 results similar to egen (tol = 1.00000000000e-06; 1.5e-02 vs 3.4e-02, ratio 2.3) - compare_egen (passed): gegen percentile 30 results similar to egen (tol = 1.00000000000e-06; 1.2e-02 vs 2.6e-02, ratio 2.2) - compare_egen (passed): gegen percentile 50 results similar to egen (tol = 1.00000000000e-06; 1.1e-02 vs 2.6e-02, ratio 2.4) - compare_egen (passed): gegen percentile 70 results similar to egen (tol = 1.00000000000e-06; 1.1e-02 vs 2.5e-02, ratio 2.3) - compare_egen (passed): gegen percentile 90 results similar to egen (tol = 1.00000000000e-06; 1.2e-02 vs 3.4e-02, ratio 2.8) - compare_egen (passed): gegen percentile 99 results similar to egen (tol = 1.00000000000e-06; 1.2e-02 vs 2.6e-02, ratio 2.2) - compare_egen (passed): gegen tag results similar to egen (tol = 1.00000000000e-06; 1.0e-02 vs 2.6e-02, ratio 2.6) + compare_egen (passed): gegen total results similar to egen (tol = 1.00000000000e-06; 1.0e-02 vs 2.3e-02, ratio 2.3) + compare_egen (passed): gegen sum results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 2.2e-02, ratio 2.4) + compare_egen (passed): gegen mean results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 2.2e-02, ratio 2.4) + compare_egen (passed): gegen sd results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 2.7e-02, ratio 3) + compare_egen (passed): gegen max results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 2.5e-02, ratio 2.8) + compare_egen (passed): gegen min results similar to egen (tol = 1.00000000000e-06; 1.0e-02 vs 2.0e-02, ratio 2) + compare_egen (passed): gegen count results similar to egen (tol = 1.00000000000e-06; 1.0e-02 vs 2.4e-02, ratio 2.4) + compare_egen (passed): gegen median results similar to egen (tol = 1.00000000000e-06; 1.0e-02 vs 2.5e-02, ratio 2.5) + compare_egen (passed): gegen iqr results similar to egen (tol = 1.00000000000e-06; 1.0e-02 vs 5.3e-02, ratio 5.3) + compare_egen (passed): gegen skew results similar to egen (tol = 1.00000000000e-06; 1.0e-02 vs .86, ratio 86) + compare_egen (passed): gegen kurt results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 1.7, ratio 1.9e+02) + compare_egen (passed): gegen percentile 1 results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 2.4e-02, ratio 2.7) + compare_egen (passed): gegen percentile 10 results similar to egen (tol = 1.00000000000e-06; 1.0e-02 vs 2.6e-02, ratio 2.6) + compare_egen (passed): gegen percentile 30 results similar to egen (tol = 1.00000000000e-06; 1.0e-02 vs 2.6e-02, ratio 2.6) + compare_egen (passed): gegen percentile 50 results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 2.4e-02, ratio 2.7) + compare_egen (passed): gegen percentile 70 results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 2.4e-02, ratio 2.7) + compare_egen (passed): gegen percentile 90 results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 2.5e-02, ratio 2.8) + compare_egen (passed): gegen percentile 99 results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 2.5e-02, ratio 2.8) + compare_egen (passed): gegen tag results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.5e-02, ratio 3.1) compare_egen (passed): gegen tag, missing results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.0e-02, ratio 2.5) compare_egen (passed): gegen group results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 2.0e-02, ratio 2.2) compare_egen (passed): gegen group, missing results similar to egen (tol = 1.00000000000e-06; 1.0e-02 vs 2.0e-02, ratio 2) compare_egen (passed): gegen counts results similar to gegen count (tol = 1.00000000000e-06) Checking [ in 516/8622] egen range: int1 str_32 double1 int2 str_12 double2 int3 str_4 double3 - compare_egen (passed): gegen total results similar to egen (tol = 1.00000000000e-06; 1.0e-02 vs 2.4e-02, ratio 2.4) - compare_egen (passed): gegen sum results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.4e-02, ratio 3) + compare_egen (passed): gegen total results similar to egen (tol = 1.00000000000e-06; 1.0e-02 vs 3.1e-02, ratio 3.1) + compare_egen (passed): gegen sum results similar to egen (tol = 1.00000000000e-06; 1.3e-02 vs 2.4e-02, ratio 1.8) compare_egen (passed): gegen mean results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 2.5e-02, ratio 2.8) - compare_egen (passed): gegen sd results similar to egen (tol = 1.00000000000e-06; 1.4e-02 vs 3.5e-02, ratio 2.5) - compare_egen (passed): gegen max results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 3.3e-02, ratio 4.1) - compare_egen (passed): gegen min results similar to egen (tol = 1.00000000000e-06; 1.7e-02 vs 4.7e-02, ratio 2.8) - compare_egen (passed): gegen count results similar to egen (tol = 1.00000000000e-06; 1.9e-02 vs 3.5e-02, ratio 1.8) - compare_egen (passed): gegen median results similar to egen (tol = 1.00000000000e-06; 1.0e-02 vs 2.4e-02, ratio 2.4) - compare_egen (passed): gegen iqr results similar to egen (tol = 1.00000000000e-06; 1.0e-02 vs 4.9e-02, ratio 4.9) - compare_egen (passed): gegen skew results similar to egen (tol = 1.00000000000e-06; 1.4e-02 vs .88, ratio 63) - compare_egen (passed): gegen kurt results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs .88, ratio 98) - compare_egen (passed): gegen percentile 1 results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 2.4e-02, ratio 2.7) - compare_egen (passed): gegen percentile 10 results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 3.3e-02, ratio 3.7) - compare_egen (passed): gegen percentile 30 results similar to egen (tol = 1.00000000000e-06; 1.0e-02 vs 2.6e-02, ratio 2.6) - compare_egen (passed): gegen percentile 50 results similar to egen (tol = 1.00000000000e-06; 1.1e-02 vs 3.1e-02, ratio 2.8) - compare_egen (passed): gegen percentile 70 results similar to egen (tol = 1.00000000000e-06; 1.0e-02 vs 2.5e-02, ratio 2.5) - compare_egen (passed): gegen percentile 90 results similar to egen (tol = 1.00000000000e-06; 1.0e-02 vs 2.5e-02, ratio 2.5) - compare_egen (passed): gegen percentile 99 results similar to egen (tol = 1.00000000000e-06; 1.0e-02 vs 3.4e-02, ratio 3.4) - compare_egen (passed): gegen tag results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.7e-02, ratio 3.4) - compare_egen (passed): gegen tag, missing results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 3.7e-02, ratio 4.6) - compare_egen (passed): gegen group results similar to egen (tol = 1.00000000000e-06; 1.0e-02 vs 2.3e-02, ratio 2.3) - compare_egen (passed): gegen group, missing results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 3.0e-02, ratio 3.8) + compare_egen (passed): gegen sd results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 3.1e-02, ratio 3.4) + compare_egen (passed): gegen max results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.6e-02, ratio 3.3) + compare_egen (passed): gegen min results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.0e-02, ratio 2.5) + compare_egen (passed): gegen count results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 2.5e-02, ratio 2.8) + compare_egen (passed): gegen median results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.6e-02, ratio 3.3) + compare_egen (passed): gegen iqr results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 5.7e-02, ratio 6.3) + compare_egen (passed): gegen skew results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs .9, ratio 1.0e+02) + compare_egen (passed): gegen kurt results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs .86, ratio 1.1e+02) + compare_egen (passed): gegen percentile 1 results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.6e-02, ratio 3.3) + compare_egen (passed): gegen percentile 10 results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 2.6e-02, ratio 2.9) + compare_egen (passed): gegen percentile 30 results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 2.6e-02, ratio 2.9) + compare_egen (passed): gegen percentile 50 results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.6e-02, ratio 3.3) + compare_egen (passed): gegen percentile 70 results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 2.7e-02, ratio 3) + compare_egen (passed): gegen percentile 90 results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 2.6e-02, ratio 2.9) + compare_egen (passed): gegen percentile 99 results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.6e-02, ratio 3.3) + compare_egen (passed): gegen tag results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.6e-02, ratio 3.7) + compare_egen (passed): gegen tag, missing results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 2.2e-02, ratio 2.4) + compare_egen (passed): gegen group results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.4e-02, ratio 3) + compare_egen (passed): gegen group, missing results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 3.4e-02, ratio 4.3) compare_egen (passed): gegen counts results similar to gegen count (tol = 1.00000000000e-06) Checking [if random2 > 0 ] egen range: int1 str_32 double1 int2 str_12 double2 int3 str_4 double3 - compare_egen (passed): gegen total results similar to egen (tol = 1.00000000000e-06; 1.1e-02 vs 2.7e-02, ratio 2.5) - compare_egen (passed): gegen sum results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 2.5e-02, ratio 2.8) - compare_egen (passed): gegen mean results similar to egen (tol = 1.00000000000e-06; 1.2e-02 vs 3.5e-02, ratio 2.9) - compare_egen (passed): gegen sd results similar to egen (tol = 1.00000000000e-06; 1.4e-02 vs 4.6e-02, ratio 3.3) - compare_egen (passed): gegen max results similar to egen (tol = 1.00000000000e-06; 1.0e-02 vs 2.6e-02, ratio 2.6) - compare_egen (passed): gegen min results similar to egen (tol = 1.00000000000e-06; 1.7e-02 vs 2.7e-02, ratio 1.6) - compare_egen (passed): gegen count results similar to egen (tol = 1.00000000000e-06; 1.2e-02 vs 2.4e-02, ratio 2) - compare_egen (passed): gegen median results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 2.5e-02, ratio 2.8) - compare_egen (passed): gegen iqr results similar to egen (tol = 1.00000000000e-06; 1.0e-02 vs 4.5e-02, ratio 4.5) - compare_egen (passed): gegen skew results similar to egen (tol = 1.00000000000e-06; 1.0e-02 vs .52, ratio 52) - compare_egen (passed): gegen kurt results similar to egen (tol = 1.00000000000e-06; 1.7e-02 vs .45, ratio 27) - compare_egen (passed): gegen percentile 1 results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 2.0e-02, ratio 2.2) - compare_egen (passed): gegen percentile 10 results similar to egen (tol = 1.00000000000e-06; 1.2e-02 vs 2.9e-02, ratio 2.4) - compare_egen (passed): gegen percentile 30 results similar to egen (tol = 1.00000000000e-06; 1.0e-02 vs 2.1e-02, ratio 2.1) - compare_egen (passed): gegen percentile 50 results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 2.2e-02, ratio 2.4) - compare_egen (passed): gegen percentile 70 results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 2.1e-02, ratio 2.3) - compare_egen (passed): gegen percentile 90 results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.4e-02, ratio 3) - compare_egen (passed): gegen percentile 99 results similar to egen (tol = 1.00000000000e-06; 1.0e-02 vs 3.1e-02, ratio 3.1) - compare_egen (passed): gegen tag results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.7e-02, ratio 3.4) - compare_egen (passed): gegen tag, missing results similar to egen (tol = 1.00000000000e-06; 1.2e-02 vs 2.4e-02, ratio 2) - compare_egen (passed): gegen group results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 1.9e-02, ratio 2.4) - compare_egen (passed): gegen group, missing results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 1.8e-02, ratio 2.3) + compare_egen (passed): gegen total results similar to egen (tol = 1.00000000000e-06; 1.0e-02 vs 3.0e-02, ratio 3) + compare_egen (passed): gegen sum results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 2.4e-02, ratio 2.7) + compare_egen (passed): gegen mean results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.3e-02, ratio 2.9) + compare_egen (passed): gegen sd results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 3.1e-02, ratio 3.9) + compare_egen (passed): gegen max results similar to egen (tol = 1.00000000000e-06; 1.7e-02 vs 6.1e-02, ratio 3.6) + compare_egen (passed): gegen min results similar to egen (tol = 1.00000000000e-06; 2.0e-02 vs 4.5e-02, ratio 2.3) + compare_egen (passed): gegen count results similar to egen (tol = 1.00000000000e-06; 2.1e-02 vs 7.9e-02, ratio 3.8) + compare_egen (passed): gegen median results similar to egen (tol = 1.00000000000e-06; 2.5e-02 vs 8.7e-02, ratio 3.5) + compare_egen (passed): gegen iqr results similar to egen (tol = 1.00000000000e-06; 2.7e-02 vs .1, ratio 3.9) + compare_egen (passed): gegen skew results similar to egen (tol = 1.00000000000e-06; 1.0e-02 vs .87, ratio 87) + compare_egen (passed): gegen kurt results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs .42, ratio 47) + compare_egen (passed): gegen percentile 1 results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.3e-02, ratio 2.9) + compare_egen (passed): gegen percentile 10 results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.4e-02, ratio 3) + compare_egen (passed): gegen percentile 30 results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.4e-02, ratio 3) + compare_egen (passed): gegen percentile 50 results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.5e-02, ratio 3.1) + compare_egen (passed): gegen percentile 70 results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 2.8e-02, ratio 3.1) + compare_egen (passed): gegen percentile 90 results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 2.7e-02, ratio 3) + compare_egen (passed): gegen percentile 99 results similar to egen (tol = 1.00000000000e-06; 1.0e-02 vs 2.7e-02, ratio 2.7) + compare_egen (passed): gegen tag results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 4.6e-02, ratio 5.1) + compare_egen (passed): gegen tag, missing results similar to egen (tol = 1.00000000000e-06; 1.7e-02 vs 3.3e-02, ratio 1.9) + compare_egen (passed): gegen group results similar to egen (tol = 1.00000000000e-06; 1.5e-02 vs 3.2e-02, ratio 2.1) + compare_egen (passed): gegen group, missing results similar to egen (tol = 1.00000000000e-06; 1.0e-02 vs 2.2e-02, ratio 2.2) compare_egen (passed): gegen counts results similar to gegen count (tol = 1.00000000000e-06) Checking [if random2 < 0 in 1394/8630] egen range: int1 str_32 double1 int2 str_12 double2 int3 str_4 double3 - compare_egen (passed): gegen total results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 3.3e-02, ratio 4.1) - compare_egen (passed): gegen sum results similar to egen (tol = 1.00000000000e-06; 1.1e-02 vs 2.3e-02, ratio 2.1) - compare_egen (passed): gegen mean results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.6e-02, ratio 3.3) - compare_egen (passed): gegen sd results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 4.2e-02, ratio 4.7) - compare_egen (passed): gegen max results similar to egen (tol = 1.00000000000e-06; 1.4e-02 vs 3.3e-02, ratio 2.4) - compare_egen (passed): gegen min results similar to egen (tol = 1.00000000000e-06; 1.2e-02 vs 2.7e-02, ratio 2.3) - compare_egen (passed): gegen count results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 2.4e-02, ratio 2.7) - compare_egen (passed): gegen median results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.5e-02, ratio 3.1) - compare_egen (passed): gegen iqr results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 4.9e-02, ratio 6.1) - compare_egen (passed): gegen skew results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs .41, ratio 51) - compare_egen (passed): gegen kurt results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs .41, ratio 59) - compare_egen (passed): gegen percentile 1 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.1e-02, ratio 3) - compare_egen (passed): gegen percentile 10 results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.0e-02, ratio 2.5) - compare_egen (passed): gegen percentile 30 results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.1e-02, ratio 2.6) - compare_egen (passed): gegen percentile 50 results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.3e-02, ratio 2.9) - compare_egen (passed): gegen percentile 70 results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.2e-02, ratio 2.8) - compare_egen (passed): gegen percentile 90 results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.2e-02, ratio 2.8) - compare_egen (passed): gegen percentile 99 results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.2e-02, ratio 2.8) - compare_egen (passed): gegen tag results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.2e-02, ratio 3.1) - compare_egen (passed): gegen tag, missing results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 1.9e-02, ratio 2.7) - compare_egen (passed): gegen group results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.0e-02, ratio 2.9) - compare_egen (passed): gegen group, missing results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 1.8e-02, ratio 2.6) + compare_egen (passed): gegen total results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.5e-02, ratio 3.1) + compare_egen (passed): gegen sum results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.5e-02, ratio 3.6) + compare_egen (passed): gegen mean results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.4e-02, ratio 3.4) + compare_egen (passed): gegen sd results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.8e-02, ratio 4) + compare_egen (passed): gegen max results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.5e-02, ratio 3.6) + compare_egen (passed): gegen min results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.0e-02, ratio 2.5) + compare_egen (passed): gegen count results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.4e-02, ratio 3.4) + compare_egen (passed): gegen median results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.5e-02, ratio 3.6) + compare_egen (passed): gegen iqr results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 5.2e-02, ratio 7.4) + compare_egen (passed): gegen skew results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs .41, ratio 45) + compare_egen (passed): gegen kurt results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs .43, ratio 62) + compare_egen (passed): gegen percentile 1 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.4e-02, ratio 3.4) + compare_egen (passed): gegen percentile 10 results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.3e-02, ratio 2.9) + compare_egen (passed): gegen percentile 30 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.5e-02, ratio 3.6) + compare_egen (passed): gegen percentile 50 results similar to egen (tol = 1.00000000000e-06; 8.0e-03 vs 2.4e-02, ratio 3) + compare_egen (passed): gegen percentile 70 results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 2.7e-02, ratio 3.9) + compare_egen (passed): gegen percentile 90 results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 4.6e-02, ratio 5.1) + compare_egen (passed): gegen percentile 99 results similar to egen (tol = 1.00000000000e-06; 9.0e-03 vs 2.5e-02, ratio 2.8) + compare_egen (passed): gegen tag results similar to egen (tol = 1.00000000000e-06; 7.0e-03 vs 7.8e-02, ratio 11) + compare_egen (passed): gegen tag, missing results similar to egen (tol = 1.00000000000e-06; 2.3e-02 vs 8.1e-02, ratio 3.5) + compare_egen (passed): gegen group results similar to egen (tol = 1.00000000000e-06; 1.7e-02 vs 6.5e-02, ratio 3.8) + compare_egen (passed): gegen group, missing results similar to egen (tol = 1.00000000000e-06; 1.4e-02 vs 2.3e-02, ratio 1.6) compare_egen (passed): gegen counts results similar to gegen count (tol = 1.00000000000e-06) @@ -3001,10 +3012,14 @@ Internal consistency_by for gquantiles ru, by(str_12 -str_4 double2 -double3) consistency_internal_gquantiles_by (passed): xtile, pctile, and _pctile via nq(2) oncollision(error) by(str_12 -str_4 double2 -double3) (tol = 1.0e-15) consistency_internal_gquantiles_by (passed): xtile, pctile, and _pctile via nq(20) oncollision(error) by(str_12 -str_4 double2 -double3) (tol = 1.0e-15) - consistency_internal_gquantiles_by (passed): xtile, pctile, and _pctile via nq(100001) oncollision(error) by(str_12 -str_4 double2 -double3) (tol = 1.0e-15) - consistency_internal_gquantiles_by (passed): xtile, pctile, and _pctile via nq(2) altdef oncollision(error) by(str_12 -str_4 double2 -double3) (tol = 1.0e-15) - consistency_internal_gquantiles_by (passed): xtile, pctile, and _pctile via nq(20) altdef oncollision(error) by(str_12 -str_4 double2 -double3) (tol = 1.0e-15) - consistency_internal_gquantiles_by (passed): xtile, pctile, and _pctile via nq(100001) altdef oncollision(error) by(str_12 -str_4 double2 -double3) (tol = 1.0e-15) + consistency_internal_gquantiles_by (passed): xtile, pctile, and _pctile via nq(100001) oncollision(error) by(str_12 -str_4 double2 -double3) (tol = 1.0e +> -15) + consistency_internal_gquantiles_by (passed): xtile, pctile, and _pctile via nq(2) altdef oncollision(error) by(str_12 -str_4 double2 -double3) (tol = 1. +> 0e-15) + consistency_internal_gquantiles_by (passed): xtile, pctile, and _pctile via nq(20) altdef oncollision(error) by(str_12 -str_4 double2 -double3) (tol = 1 +> .0e-15) + consistency_internal_gquantiles_by (passed): xtile, pctile, and _pctile via nq(100001) altdef oncollision(error) by(str_12 -str_4 double2 -double3) (tol +> = 1.0e-15) Internal consistency_by for gquantiles ru, by(one) [in 1/5] ----------------------------------------------------------- @@ -3091,10 +3106,14 @@ Internal consistency_by for gquantiles ru, by(str_12 -str_4 double2 -double3) [i consistency_internal_gquantiles_by (passed): xtile, pctile, and _pctile via nq(2) oncollision(error) by(str_12 -str_4 double2 -double3) (tol = 1.0e-15) consistency_internal_gquantiles_by (passed): xtile, pctile, and _pctile via nq(20) oncollision(error) by(str_12 -str_4 double2 -double3) (tol = 1.0e-15) - consistency_internal_gquantiles_by (passed): xtile, pctile, and _pctile via nq(100001) oncollision(error) by(str_12 -str_4 double2 -double3) (tol = 1.0e-15) - consistency_internal_gquantiles_by (passed): xtile, pctile, and _pctile via nq(2) altdef oncollision(error) by(str_12 -str_4 double2 -double3) (tol = 1.0e-15) - consistency_internal_gquantiles_by (passed): xtile, pctile, and _pctile via nq(20) altdef oncollision(error) by(str_12 -str_4 double2 -double3) (tol = 1.0e-15) - consistency_internal_gquantiles_by (passed): xtile, pctile, and _pctile via nq(100001) altdef oncollision(error) by(str_12 -str_4 double2 -double3) (tol = 1.0e-15) + consistency_internal_gquantiles_by (passed): xtile, pctile, and _pctile via nq(100001) oncollision(error) by(str_12 -str_4 double2 -double3) (tol = 1.0e +> -15) + consistency_internal_gquantiles_by (passed): xtile, pctile, and _pctile via nq(2) altdef oncollision(error) by(str_12 -str_4 double2 -double3) (tol = 1. +> 0e-15) + consistency_internal_gquantiles_by (passed): xtile, pctile, and _pctile via nq(20) altdef oncollision(error) by(str_12 -str_4 double2 -double3) (tol = 1 +> .0e-15) + consistency_internal_gquantiles_by (passed): xtile, pctile, and _pctile via nq(100001) altdef oncollision(error) by(str_12 -str_4 double2 -double3) (tol +> = 1.0e-15) Internal consistency_by for gquantiles ru, by(one) [in 7240/94892] ------------------------------------------------------------------ @@ -3181,10 +3200,14 @@ Internal consistency_by for gquantiles ru, by(str_12 -str_4 double2 -double3) [i consistency_internal_gquantiles_by (passed): xtile, pctile, and _pctile via nq(2) oncollision(error) by(str_12 -str_4 double2 -double3) (tol = 1.0e-15) consistency_internal_gquantiles_by (passed): xtile, pctile, and _pctile via nq(20) oncollision(error) by(str_12 -str_4 double2 -double3) (tol = 1.0e-15) - consistency_internal_gquantiles_by (passed): xtile, pctile, and _pctile via nq(100001) oncollision(error) by(str_12 -str_4 double2 -double3) (tol = 1.0e-15) - consistency_internal_gquantiles_by (passed): xtile, pctile, and _pctile via nq(2) altdef oncollision(error) by(str_12 -str_4 double2 -double3) (tol = 1.0e-15) - consistency_internal_gquantiles_by (passed): xtile, pctile, and _pctile via nq(20) altdef oncollision(error) by(str_12 -str_4 double2 -double3) (tol = 1.0e-15) - consistency_internal_gquantiles_by (passed): xtile, pctile, and _pctile via nq(100001) altdef oncollision(error) by(str_12 -str_4 double2 -double3) (tol = 1.0e-15) + consistency_internal_gquantiles_by (passed): xtile, pctile, and _pctile via nq(100001) oncollision(error) by(str_12 -str_4 double2 -double3) (tol = 1.0e +> -15) + consistency_internal_gquantiles_by (passed): xtile, pctile, and _pctile via nq(2) altdef oncollision(error) by(str_12 -str_4 double2 -double3) (tol = 1. +> 0e-15) + consistency_internal_gquantiles_by (passed): xtile, pctile, and _pctile via nq(20) altdef oncollision(error) by(str_12 -str_4 double2 -double3) (tol = 1 +> .0e-15) + consistency_internal_gquantiles_by (passed): xtile, pctile, and _pctile via nq(100001) altdef oncollision(error) by(str_12 -str_4 double2 -double3) (tol +> = 1.0e-15) Internal consistency_by for gquantiles random1, by(one) [in 7240/94892] ----------------------------------------------------------------------- @@ -3271,10 +3294,14 @@ Internal consistency_by for gquantiles random1, by(str_12 -str_4 double2 -double consistency_internal_gquantiles_by (passed): xtile, pctile, and _pctile via nq(2) oncollision(error) by(str_12 -str_4 double2 -double3) (tol = 1.0e-15) consistency_internal_gquantiles_by (passed): xtile, pctile, and _pctile via nq(20) oncollision(error) by(str_12 -str_4 double2 -double3) (tol = 1.0e-15) - consistency_internal_gquantiles_by (passed): xtile, pctile, and _pctile via nq(100001) oncollision(error) by(str_12 -str_4 double2 -double3) (tol = 1.0e-15) - consistency_internal_gquantiles_by (passed): xtile, pctile, and _pctile via nq(2) altdef oncollision(error) by(str_12 -str_4 double2 -double3) (tol = 1.0e-15) - consistency_internal_gquantiles_by (passed): xtile, pctile, and _pctile via nq(20) altdef oncollision(error) by(str_12 -str_4 double2 -double3) (tol = 1.0e-15) - consistency_internal_gquantiles_by (passed): xtile, pctile, and _pctile via nq(100001) altdef oncollision(error) by(str_12 -str_4 double2 -double3) (tol = 1.0e-15) + consistency_internal_gquantiles_by (passed): xtile, pctile, and _pctile via nq(100001) oncollision(error) by(str_12 -str_4 double2 -double3) (tol = 1.0e +> -15) + consistency_internal_gquantiles_by (passed): xtile, pctile, and _pctile via nq(2) altdef oncollision(error) by(str_12 -str_4 double2 -double3) (tol = 1. +> 0e-15) + consistency_internal_gquantiles_by (passed): xtile, pctile, and _pctile via nq(20) altdef oncollision(error) by(str_12 -str_4 double2 -double3) (tol = 1 +> .0e-15) + consistency_internal_gquantiles_by (passed): xtile, pctile, and _pctile via nq(100001) altdef oncollision(error) by(str_12 -str_4 double2 -double3) (tol +> = 1.0e-15) Internal consistency_by for gquantiles ru, by(one) [if random2 > 0 ] -------------------------------------------------------------------- @@ -3361,10 +3388,14 @@ Internal consistency_by for gquantiles ru, by(str_12 -str_4 double2 -double3) [i consistency_internal_gquantiles_by (passed): xtile, pctile, and _pctile via nq(2) oncollision(error) by(str_12 -str_4 double2 -double3) (tol = 1.0e-15) consistency_internal_gquantiles_by (passed): xtile, pctile, and _pctile via nq(20) oncollision(error) by(str_12 -str_4 double2 -double3) (tol = 1.0e-15) - consistency_internal_gquantiles_by (passed): xtile, pctile, and _pctile via nq(100001) oncollision(error) by(str_12 -str_4 double2 -double3) (tol = 1.0e-15) - consistency_internal_gquantiles_by (passed): xtile, pctile, and _pctile via nq(2) altdef oncollision(error) by(str_12 -str_4 double2 -double3) (tol = 1.0e-15) - consistency_internal_gquantiles_by (passed): xtile, pctile, and _pctile via nq(20) altdef oncollision(error) by(str_12 -str_4 double2 -double3) (tol = 1.0e-15) - consistency_internal_gquantiles_by (passed): xtile, pctile, and _pctile via nq(100001) altdef oncollision(error) by(str_12 -str_4 double2 -double3) (tol = 1.0e-15) + consistency_internal_gquantiles_by (passed): xtile, pctile, and _pctile via nq(100001) oncollision(error) by(str_12 -str_4 double2 -double3) (tol = 1.0e +> -15) + consistency_internal_gquantiles_by (passed): xtile, pctile, and _pctile via nq(2) altdef oncollision(error) by(str_12 -str_4 double2 -double3) (tol = 1. +> 0e-15) + consistency_internal_gquantiles_by (passed): xtile, pctile, and _pctile via nq(20) altdef oncollision(error) by(str_12 -str_4 double2 -double3) (tol = 1 +> .0e-15) + consistency_internal_gquantiles_by (passed): xtile, pctile, and _pctile via nq(100001) altdef oncollision(error) by(str_12 -str_4 double2 -double3) (tol +> = 1.0e-15) Internal consistency_by for gquantiles random1, by(one) [if random2 > 0 ] ------------------------------------------------------------------------- @@ -3451,10 +3482,14 @@ Internal consistency_by for gquantiles random1, by(str_12 -str_4 double2 -double consistency_internal_gquantiles_by (passed): xtile, pctile, and _pctile via nq(2) oncollision(error) by(str_12 -str_4 double2 -double3) (tol = 1.0e-15) consistency_internal_gquantiles_by (passed): xtile, pctile, and _pctile via nq(20) oncollision(error) by(str_12 -str_4 double2 -double3) (tol = 1.0e-15) - consistency_internal_gquantiles_by (passed): xtile, pctile, and _pctile via nq(100001) oncollision(error) by(str_12 -str_4 double2 -double3) (tol = 1.0e-15) - consistency_internal_gquantiles_by (passed): xtile, pctile, and _pctile via nq(2) altdef oncollision(error) by(str_12 -str_4 double2 -double3) (tol = 1.0e-15) - consistency_internal_gquantiles_by (passed): xtile, pctile, and _pctile via nq(20) altdef oncollision(error) by(str_12 -str_4 double2 -double3) (tol = 1.0e-15) - consistency_internal_gquantiles_by (passed): xtile, pctile, and _pctile via nq(100001) altdef oncollision(error) by(str_12 -str_4 double2 -double3) (tol = 1.0e-15) + consistency_internal_gquantiles_by (passed): xtile, pctile, and _pctile via nq(100001) oncollision(error) by(str_12 -str_4 double2 -double3) (tol = 1.0e +> -15) + consistency_internal_gquantiles_by (passed): xtile, pctile, and _pctile via nq(2) altdef oncollision(error) by(str_12 -str_4 double2 -double3) (tol = 1. +> 0e-15) + consistency_internal_gquantiles_by (passed): xtile, pctile, and _pctile via nq(20) altdef oncollision(error) by(str_12 -str_4 double2 -double3) (tol = 1 +> .0e-15) + consistency_internal_gquantiles_by (passed): xtile, pctile, and _pctile via nq(100001) altdef oncollision(error) by(str_12 -str_4 double2 -double3) (tol +> = 1.0e-15) Internal consistency_by for gquantiles ru, by(one) [if random2 < 0 ] [in 20264/89098] -------------------------------------------------------------------------------------- @@ -3541,10 +3576,14 @@ Internal consistency_by for gquantiles ru, by(str_12 -str_4 double2 -double3) [i consistency_internal_gquantiles_by (passed): xtile, pctile, and _pctile via nq(2) oncollision(error) by(str_12 -str_4 double2 -double3) (tol = 1.0e-15) consistency_internal_gquantiles_by (passed): xtile, pctile, and _pctile via nq(20) oncollision(error) by(str_12 -str_4 double2 -double3) (tol = 1.0e-15) - consistency_internal_gquantiles_by (passed): xtile, pctile, and _pctile via nq(100001) oncollision(error) by(str_12 -str_4 double2 -double3) (tol = 1.0e-15) - consistency_internal_gquantiles_by (passed): xtile, pctile, and _pctile via nq(2) altdef oncollision(error) by(str_12 -str_4 double2 -double3) (tol = 1.0e-15) - consistency_internal_gquantiles_by (passed): xtile, pctile, and _pctile via nq(20) altdef oncollision(error) by(str_12 -str_4 double2 -double3) (tol = 1.0e-15) - consistency_internal_gquantiles_by (passed): xtile, pctile, and _pctile via nq(100001) altdef oncollision(error) by(str_12 -str_4 double2 -double3) (tol = 1.0e-15) + consistency_internal_gquantiles_by (passed): xtile, pctile, and _pctile via nq(100001) oncollision(error) by(str_12 -str_4 double2 -double3) (tol = 1.0e +> -15) + consistency_internal_gquantiles_by (passed): xtile, pctile, and _pctile via nq(2) altdef oncollision(error) by(str_12 -str_4 double2 -double3) (tol = 1. +> 0e-15) + consistency_internal_gquantiles_by (passed): xtile, pctile, and _pctile via nq(20) altdef oncollision(error) by(str_12 -str_4 double2 -double3) (tol = 1 +> .0e-15) + consistency_internal_gquantiles_by (passed): xtile, pctile, and _pctile via nq(100001) altdef oncollision(error) by(str_12 -str_4 double2 -double3) (tol +> = 1.0e-15) Internal consistency_by for gquantiles random1, by(one) [if random2 < 0 ] [in 20264/89098] ------------------------------------------------------------------------------------------- @@ -3631,10 +3670,14 @@ Internal consistency_by for gquantiles random1, by(str_12 -str_4 double2 -double consistency_internal_gquantiles_by (passed): xtile, pctile, and _pctile via nq(2) oncollision(error) by(str_12 -str_4 double2 -double3) (tol = 1.0e-15) consistency_internal_gquantiles_by (passed): xtile, pctile, and _pctile via nq(20) oncollision(error) by(str_12 -str_4 double2 -double3) (tol = 1.0e-15) - consistency_internal_gquantiles_by (passed): xtile, pctile, and _pctile via nq(100001) oncollision(error) by(str_12 -str_4 double2 -double3) (tol = 1.0e-15) - consistency_internal_gquantiles_by (passed): xtile, pctile, and _pctile via nq(2) altdef oncollision(error) by(str_12 -str_4 double2 -double3) (tol = 1.0e-15) - consistency_internal_gquantiles_by (passed): xtile, pctile, and _pctile via nq(20) altdef oncollision(error) by(str_12 -str_4 double2 -double3) (tol = 1.0e-15) - consistency_internal_gquantiles_by (passed): xtile, pctile, and _pctile via nq(100001) altdef oncollision(error) by(str_12 -str_4 double2 -double3) (tol = 1.0e-15) + consistency_internal_gquantiles_by (passed): xtile, pctile, and _pctile via nq(100001) oncollision(error) by(str_12 -str_4 double2 -double3) (tol = 1.0e +> -15) + consistency_internal_gquantiles_by (passed): xtile, pctile, and _pctile via nq(2) altdef oncollision(error) by(str_12 -str_4 double2 -double3) (tol = 1. +> 0e-15) + consistency_internal_gquantiles_by (passed): xtile, pctile, and _pctile via nq(20) altdef oncollision(error) by(str_12 -str_4 double2 -double3) (tol = 1 +> .0e-15) + consistency_internal_gquantiles_by (passed): xtile, pctile, and _pctile via nq(100001) altdef oncollision(error) by(str_12 -str_4 double2 -double3) (tol +> = 1.0e-15) -------------------------------------------------------------------------------- consistency_gquantiles_internals_by, N = 100,000, oncollision(error) @@ -3910,7 +3953,8 @@ Internal consistency_by for gquantiles ru, by(str_12 -str_4 double2 -double3) [ consistency_internal_gquantiles_by (passed): xtile, pctile, and _pctile via nq(2) oncollision(error) by(str_12 -str_4 double2 -double3) (tol = 1.0e-15) consistency_internal_gquantiles_by (passed): xtile, pctile, and _pctile via nq(20) oncollision(error) by(str_12 -str_4 double2 -double3) (tol = 1.0e-15) - consistency_internal_gquantiles_by (passed): xtile, pctile, and _pctile via nq(100001) oncollision(error) by(str_12 -str_4 double2 -double3) (tol = 1.0e-15) + consistency_internal_gquantiles_by (passed): xtile, pctile, and _pctile via nq(100001) oncollision(error) by(str_12 -str_4 double2 -double3) (tol = 1.0e +> -15) Internal consistency_by for gquantiles ru, by(one) [in 1/5] [pw = float_unif_0_1] --------------------------------------------------------------------------------- @@ -3973,7 +4017,8 @@ Internal consistency_by for gquantiles ru, by(str_12 -str_4 double2 -double3) [i consistency_internal_gquantiles_by (passed): xtile, pctile, and _pctile via nq(2) oncollision(error) by(str_12 -str_4 double2 -double3) (tol = 1.0e-15) consistency_internal_gquantiles_by (passed): xtile, pctile, and _pctile via nq(20) oncollision(error) by(str_12 -str_4 double2 -double3) (tol = 1.0e-15) - consistency_internal_gquantiles_by (passed): xtile, pctile, and _pctile via nq(100001) oncollision(error) by(str_12 -str_4 double2 -double3) (tol = 1.0e-15) + consistency_internal_gquantiles_by (passed): xtile, pctile, and _pctile via nq(100001) oncollision(error) by(str_12 -str_4 double2 -double3) (tol = 1.0e +> -15) Internal consistency_by for gquantiles ru, by(one) [in 19363/87698] [aw = unif_0_100] ------------------------------------------------------------------------------------- @@ -4036,7 +4081,8 @@ Internal consistency_by for gquantiles ru, by(str_12 -str_4 double2 -double3) [i consistency_internal_gquantiles_by (passed): xtile, pctile, and _pctile via nq(2) oncollision(error) by(str_12 -str_4 double2 -double3) (tol = 1.0e-15) consistency_internal_gquantiles_by (passed): xtile, pctile, and _pctile via nq(20) oncollision(error) by(str_12 -str_4 double2 -double3) (tol = 1.0e-15) - consistency_internal_gquantiles_by (passed): xtile, pctile, and _pctile via nq(100001) oncollision(error) by(str_12 -str_4 double2 -double3) (tol = 1.0e-15) + consistency_internal_gquantiles_by (passed): xtile, pctile, and _pctile via nq(100001) oncollision(error) by(str_12 -str_4 double2 -double3) (tol = 1.0e +> -15) Internal consistency_by for gquantiles random1, by(one) [in 19363/87698] [fw = int_unif_0_100] ---------------------------------------------------------------------------------------------- @@ -4099,7 +4145,8 @@ Internal consistency_by for gquantiles random1, by(str_12 -str_4 double2 -double consistency_internal_gquantiles_by (passed): xtile, pctile, and _pctile via nq(2) oncollision(error) by(str_12 -str_4 double2 -double3) (tol = 1.0e-15) consistency_internal_gquantiles_by (passed): xtile, pctile, and _pctile via nq(20) oncollision(error) by(str_12 -str_4 double2 -double3) (tol = 1.0e-15) - consistency_internal_gquantiles_by (passed): xtile, pctile, and _pctile via nq(100001) oncollision(error) by(str_12 -str_4 double2 -double3) (tol = 1.0e-15) + consistency_internal_gquantiles_by (passed): xtile, pctile, and _pctile via nq(100001) oncollision(error) by(str_12 -str_4 double2 -double3) (tol = 1.0e +> -15) Internal consistency_by for gquantiles ru, by(one) [if random2 > 0 ] [pw = float_unif_0_1] ------------------------------------------------------------------------------------------ @@ -4162,7 +4209,8 @@ Internal consistency_by for gquantiles ru, by(str_12 -str_4 double2 -double3) [i consistency_internal_gquantiles_by (passed): xtile, pctile, and _pctile via nq(2) oncollision(error) by(str_12 -str_4 double2 -double3) (tol = 1.0e-15) consistency_internal_gquantiles_by (passed): xtile, pctile, and _pctile via nq(20) oncollision(error) by(str_12 -str_4 double2 -double3) (tol = 1.0e-15) - consistency_internal_gquantiles_by (passed): xtile, pctile, and _pctile via nq(100001) oncollision(error) by(str_12 -str_4 double2 -double3) (tol = 1.0e-15) + consistency_internal_gquantiles_by (passed): xtile, pctile, and _pctile via nq(100001) oncollision(error) by(str_12 -str_4 double2 -double3) (tol = 1.0e +> -15) Internal consistency_by for gquantiles random1, by(one) [if random2 > 0 ] [aw = unif_0_100] ------------------------------------------------------------------------------------------- @@ -4225,7 +4273,8 @@ Internal consistency_by for gquantiles random1, by(str_12 -str_4 double2 -double consistency_internal_gquantiles_by (passed): xtile, pctile, and _pctile via nq(2) oncollision(error) by(str_12 -str_4 double2 -double3) (tol = 1.0e-15) consistency_internal_gquantiles_by (passed): xtile, pctile, and _pctile via nq(20) oncollision(error) by(str_12 -str_4 double2 -double3) (tol = 1.0e-15) - consistency_internal_gquantiles_by (passed): xtile, pctile, and _pctile via nq(100001) oncollision(error) by(str_12 -str_4 double2 -double3) (tol = 1.0e-15) + consistency_internal_gquantiles_by (passed): xtile, pctile, and _pctile via nq(100001) oncollision(error) by(str_12 -str_4 double2 -double3) (tol = 1.0e +> -15) Internal consistency_by for gquantiles ru, by(one) [if random2 < 0 ] [in 24673/88058] [fw = int_unif_0_100] ------------------------------------------------------------------------------------------------------------ @@ -4288,7 +4337,8 @@ Internal consistency_by for gquantiles ru, by(str_12 -str_4 double2 -double3) [i consistency_internal_gquantiles_by (passed): xtile, pctile, and _pctile via nq(2) oncollision(error) by(str_12 -str_4 double2 -double3) (tol = 1.0e-15) consistency_internal_gquantiles_by (passed): xtile, pctile, and _pctile via nq(20) oncollision(error) by(str_12 -str_4 double2 -double3) (tol = 1.0e-15) - consistency_internal_gquantiles_by (passed): xtile, pctile, and _pctile via nq(100001) oncollision(error) by(str_12 -str_4 double2 -double3) (tol = 1.0e-15) + consistency_internal_gquantiles_by (passed): xtile, pctile, and _pctile via nq(100001) oncollision(error) by(str_12 -str_4 double2 -double3) (tol = 1.0e +> -15) Internal consistency_by for gquantiles random1, by(one) [if random2 < 0 ] [in 24673/88058] [pw = float_unif_0_1] ----------------------------------------------------------------------------------------------------------------- @@ -4351,7 +4401,8 @@ Internal consistency_by for gquantiles random1, by(str_12 -str_4 double2 -double consistency_internal_gquantiles_by (passed): xtile, pctile, and _pctile via nq(2) oncollision(error) by(str_12 -str_4 double2 -double3) (tol = 1.0e-15) consistency_internal_gquantiles_by (passed): xtile, pctile, and _pctile via nq(20) oncollision(error) by(str_12 -str_4 double2 -double3) (tol = 1.0e-15) - consistency_internal_gquantiles_by (passed): xtile, pctile, and _pctile via nq(100001) oncollision(error) by(str_12 -str_4 double2 -double3) (tol = 1.0e-15) + consistency_internal_gquantiles_by (passed): xtile, pctile, and _pctile via nq(100001) oncollision(error) by(str_12 -str_4 double2 -double3) (tol = 1.0e +> -15) -------------------------------------------------------------------------------- consistency_gquantiles_internals_by, N = 100,000, oncollision(error) @@ -5917,14 +5968,22 @@ Compare pctile - if in: - weight: [aw = unif_0_100] - obs: 100,000 - compare_pctile (passed): gquantiles pctile = double1, genp() gave similar results to pctile (reltol = 1.0e-08, tol = 1.0e-06) + compare_pctile (warning): gquantiles pctile = double1 gave different percentiles to pctile (tol = 1.0e-06) + compare_pctile (warning): gquantiles pctile = double1 gave different percentiles to pctile (reltol = 1.0e-08) + +using weights in pctile seems to give incorrect results under some +circumstances. Only 1 / 499 pctiles were off by an average of +4.78e-06. This is likely due to this quirk in pctile rather than an +error in your code (pay special attention to the weighted gcollapse +comparison to check) + compare_pctile (passed): gquantiles pctile = double3, genp() gave similar results to pctile (reltol = 1.0e-08, tol = 1.0e-06) compare_pctile (warning): gquantiles pctile = ru gave different percentiles to pctile (tol = 1.0e-06) compare_pctile (warning): gquantiles pctile = ru gave different percentiles to pctile (reltol = 1.0e-08) using weights in pctile seems to give incorrect results under some -circumstances. Only 10 / 499 pctiles were off by an average of -.000028. This is likely due to this quirk in pctile rather than an +circumstances. Only 12 / 499 pctiles were off by an average of +.0000209. This is likely due to this quirk in pctile rather than an error in your code (pay special attention to the weighted gcollapse comparison to check) @@ -5934,8 +5993,8 @@ comparison to check) compare_pctile (warning): gquantiles pctile = ix gave different percentiles to pctile (reltol = 1.0e-08) using weights in pctile seems to give incorrect results under some -circumstances. Only 9 / 499 pctiles were off by an average of -.0000159. This is likely due to this quirk in pctile rather than an +circumstances. Only 7 / 499 pctiles were off by an average of +.0000115. This is likely due to this quirk in pctile rather than an error in your code (pay special attention to the weighted gcollapse comparison to check) @@ -5944,11 +6003,19 @@ comparison to check) using weights in pctile seems to give incorrect results under some circumstances. Only 1 / 499 pctiles were off by an average of -.0000822. This is likely due to this quirk in pctile rather than an +.000192. This is likely due to this quirk in pctile rather than an +error in your code (pay special attention to the weighted gcollapse +comparison to check) + + compare_pctile (warning): gquantiles pctile = log(double1) + 2 * int1 gave different percentiles to pctile (tol = 1.0e-06) + compare_pctile (warning): gquantiles pctile = log(double1) + 2 * int1 gave different percentiles to pctile (reltol = 1.0e-08) + +using weights in pctile seems to give incorrect results under some +circumstances. Only 2 / 499 pctiles were off by an average of +.000159. This is likely due to this quirk in pctile rather than an error in your code (pay special attention to the weighted gcollapse comparison to check) - compare_pctile (passed): gquantiles pctile = log(double1) + 2 * int1, genp() gave similar results to pctile (reltol = 1.0e-08, tol = 1.0e-06) compare_pctile (passed): gquantiles pctile = exp(double3) + int1 * double3, genp() gave similar results to pctile (reltol = 1.0e-08, tol = 1.0e-06) @@ -6016,22 +6083,22 @@ Compare pctile - if in: [if random2 > 0] - weight: [aw = unif_0_100] - obs: 100,000 - compare_pctile (passed): gquantiles pctile = double1, genp() gave similar results to pctile (reltol = 1.0e-08, tol = 1.0e-06) - compare_pctile (warning): gquantiles pctile = double3 gave different percentiles to pctile (tol = 1.0e-06) - compare_pctile (warning): gquantiles pctile = double3 gave different percentiles to pctile (reltol = 1.0e-08) + compare_pctile (warning): gquantiles pctile = double1 gave different percentiles to pctile (tol = 1.0e-06) + compare_pctile (warning): gquantiles pctile = double1 gave different percentiles to pctile (reltol = 1.0e-08) using weights in pctile seems to give incorrect results under some -circumstances. Only 1 / 499 pctiles were off by an average of -.00439. This is likely due to this quirk in pctile rather than an +circumstances. Only 2 / 499 pctiles were off by an average of +7.97e-06. This is likely due to this quirk in pctile rather than an error in your code (pay special attention to the weighted gcollapse comparison to check) + compare_pctile (passed): gquantiles pctile = double3, genp() gave similar results to pctile (reltol = 1.0e-08, tol = 1.0e-06) compare_pctile (warning): gquantiles pctile = ru gave different percentiles to pctile (tol = 1.0e-06) compare_pctile (warning): gquantiles pctile = ru gave different percentiles to pctile (reltol = 1.0e-08) using weights in pctile seems to give incorrect results under some -circumstances. Only 6 / 499 pctiles were off by an average of -.0000608. This is likely due to this quirk in pctile rather than an +circumstances. Only 8 / 499 pctiles were off by an average of +.000068. This is likely due to this quirk in pctile rather than an error in your code (pay special attention to the weighted gcollapse comparison to check) @@ -6041,8 +6108,8 @@ comparison to check) compare_pctile (warning): gquantiles pctile = ix gave different percentiles to pctile (reltol = 1.0e-08) using weights in pctile seems to give incorrect results under some -circumstances. Only 6 / 499 pctiles were off by an average of -.0000136. This is likely due to this quirk in pctile rather than an +circumstances. Only 4 / 499 pctiles were off by an average of +.000115. This is likely due to this quirk in pctile rather than an error in your code (pay special attention to the weighted gcollapse comparison to check) @@ -6051,12 +6118,20 @@ comparison to check) compare_pctile (warning): gquantiles pctile = log(double1) + 2 * int1 gave different percentiles to pctile (reltol = 1.0e-08) using weights in pctile seems to give incorrect results under some -circumstances. Only 2 / 499 pctiles were off by an average of -.000224. This is likely due to this quirk in pctile rather than an +circumstances. Only 3 / 499 pctiles were off by an average of +.000346. This is likely due to this quirk in pctile rather than an +error in your code (pay special attention to the weighted gcollapse +comparison to check) + + compare_pctile (warning): gquantiles pctile = exp(double3) + int1 * double3 gave different percentiles to pctile (tol = 1.0e-06) + compare_pctile (warning): gquantiles pctile = exp(double3) + int1 * double3 gave different percentiles to pctile (reltol = 1.0e-08) + +using weights in pctile seems to give incorrect results under some +circumstances. Only 1 / 499 pctiles were off by an average of +7.21e-06. This is likely due to this quirk in pctile rather than an error in your code (pay special attention to the weighted gcollapse comparison to check) - compare_pctile (passed): gquantiles pctile = exp(double3) + int1 * double3, genp() gave similar results to pctile (reltol = 1.0e-08, tol = 1.0e-06) Compare pctile @@ -6118,8 +6193,8 @@ Compare pctile compare_pctile (warning): gquantiles pctile = ru gave different percentiles to pctile (reltol = 1.0e-08) using weights in pctile seems to give incorrect results under some -circumstances. Only 3 / 99 pctiles were off by an average of -4.09e-06. This is likely due to this quirk in pctile rather than an +circumstances. Only 1 / 99 pctiles were off by an average of +.0000867. This is likely due to this quirk in pctile rather than an error in your code (pay special attention to the weighted gcollapse comparison to check) @@ -6130,7 +6205,7 @@ comparison to check) using weights in pctile seems to give incorrect results under some circumstances. Only 3 / 99 pctiles were off by an average of -.0000325. This is likely due to this quirk in pctile rather than an +9.07e-06. This is likely due to this quirk in pctile rather than an error in your code (pay special attention to the weighted gcollapse comparison to check) @@ -6185,22 +6260,14 @@ Compare pctile compare_pctile (warning): gquantiles pctile = ru gave different percentiles to pctile (reltol = 1.0e-08) using weights in pctile seems to give incorrect results under some -circumstances. Only 1 / 99 pctiles were off by an average of -.0000182. This is likely due to this quirk in pctile rather than an +circumstances. Only 4 / 99 pctiles were off by an average of +.000215. This is likely due to this quirk in pctile rather than an error in your code (pay special attention to the weighted gcollapse comparison to check) compare_pctile (passed): gquantiles pctile = int1, genp() gave similar results to pctile (reltol = 1.0e-08, tol = 1.0e-06) - compare_pctile (passed): gquantiles pctile = int3, genp() gave similar results to pctile (reltol = 1.0e-08, tol = 1.0e-06) - compare_pctile (warning): gquantiles pctile = ix gave different percentiles to pctile (tol = 1.0e-06) - compare_pctile (warning): gquantiles pctile = ix gave different percentiles to pctile (reltol = 1.0e-08) - -using weights in pctile seems to give incorrect results under some -circumstances. Only 3 / 99 pctiles were off by an average of -8.02e-06. This is likely due to this quirk in pctile rather than an -error in your code (pay special attention to the weighted gcollapse -comparison to check) - + compare_pctile (passed): gquantiles pctile = int3, genp() gave similar results to pctile (reltol = 1.0e-08, tol = 1.0e-06) + compare_pctile (passed): gquantiles pctile = ix, genp() gave similar results to pctile (reltol = 1.0e-08, tol = 1.0e-06) compare_pctile (passed): gquantiles pctile = int1^2 + 3 * double1, genp() gave similar results to pctile (reltol = 1.0e-08, tol = 1.0e-06) compare_pctile (passed): gquantiles pctile = log(double1) + 2 * int1, genp() gave similar results to pctile (reltol = 1.0e-08, tol = 1.0e-06) compare_pctile (passed): gquantiles pctile = exp(double3) + int1 * double3, genp() gave similar results to pctile (reltol = 1.0e-08, tol = 1.0e-06) @@ -6264,33 +6331,9 @@ Compare pctile compare_pctile (passed): gquantiles pctile = ru, genp() gave similar results to pctile (reltol = 1.0e-08, tol = 1.0e-06) compare_pctile (passed): gquantiles pctile = int1, genp() gave similar results to pctile (reltol = 1.0e-08, tol = 1.0e-06) compare_pctile (passed): gquantiles pctile = int3, genp() gave similar results to pctile (reltol = 1.0e-08, tol = 1.0e-06) - compare_pctile (warning): gquantiles pctile = ix gave different percentiles to pctile (tol = 1.0e-06) - compare_pctile (warning): gquantiles pctile = ix gave different percentiles to pctile (reltol = 1.0e-08) - -using weights in pctile seems to give incorrect results under some -circumstances. Only 1 / 9 pctiles were off by an average of -.0000125. This is likely due to this quirk in pctile rather than an -error in your code (pay special attention to the weighted gcollapse -comparison to check) - - compare_pctile (warning): gquantiles pctile = int1^2 + 3 * double1 gave different percentiles to pctile (tol = 1.0e-06) - compare_pctile (warning): gquantiles pctile = int1^2 + 3 * double1 gave different percentiles to pctile (reltol = 1.0e-08) - -using weights in pctile seems to give incorrect results under some -circumstances. Only 1 / 9 pctiles were off by an average of -.0000426. This is likely due to this quirk in pctile rather than an -error in your code (pay special attention to the weighted gcollapse -comparison to check) - - compare_pctile (warning): gquantiles pctile = log(double1) + 2 * int1 gave different percentiles to pctile (tol = 1.0e-06) - compare_pctile (warning): gquantiles pctile = log(double1) + 2 * int1 gave different percentiles to pctile (reltol = 1.0e-08) - -using weights in pctile seems to give incorrect results under some -circumstances. Only 1 / 9 pctiles were off by an average of -8.07e-06. This is likely due to this quirk in pctile rather than an -error in your code (pay special attention to the weighted gcollapse -comparison to check) - + compare_pctile (passed): gquantiles pctile = ix, genp() gave similar results to pctile (reltol = 1.0e-08, tol = 1.0e-06) + compare_pctile (passed): gquantiles pctile = int1^2 + 3 * double1, genp() gave similar results to pctile (reltol = 1.0e-08, tol = 1.0e-06) + compare_pctile (passed): gquantiles pctile = log(double1) + 2 * int1, genp() gave similar results to pctile (reltol = 1.0e-08, tol = 1.0e-06) compare_pctile (passed): gquantiles pctile = exp(double3) + int1 * double3, genp() gave similar results to pctile (reltol = 1.0e-08, tol = 1.0e-06) @@ -6493,17 +6536,17 @@ Compare _pctile - obs: 100,000 compare__pctile (passed): gquantiles double1, _pctile gave similar results to _pctile (reltol = 1.0e-08, tol = 1.0e-06) compare__pctile (passed): gquantiles double3, _pctile gave similar results to _pctile (reltol = 1.0e-08, tol = 1.0e-06) - compare__pctile (warning): 70.00337021891028 (_pctile) vs 70.00354034826159 - compare__pctile (warning): gquantiles ru, _pctile gave different results to _pctile (reltol = 1.0e-08, tol = 1.0e-06) + compare__pctile (passed): gquantiles ru, _pctile gave similar results to _pctile (reltol = 1.0e-08, tol = 1.0e-06) + compare__pctile (passed): gquantiles int1, _pctile gave similar results to _pctile (reltol = 1.0e-08, tol = 1.0e-06) + compare__pctile (passed): gquantiles int3, _pctile gave similar results to _pctile (reltol = 1.0e-08, tol = 1.0e-06) + compare__pctile (warning): 49742 (_pctile) vs 49744 + compare__pctile (warning): gquantiles ix, _pctile gave different results to _pctile (reltol = 1.0e-08, tol = 1.0e-06) using weights in _pctile seems to give incorrect results under some circumstances. The 1 _pctiles that were off are likely due to this quirk in pctile rather than an error in your code (pay special attention to the weighted gcollapse comparison to check) - compare__pctile (passed): gquantiles int1, _pctile gave similar results to _pctile (reltol = 1.0e-08, tol = 1.0e-06) - compare__pctile (passed): gquantiles int3, _pctile gave similar results to _pctile (reltol = 1.0e-08, tol = 1.0e-06) - compare__pctile (passed): gquantiles ix, _pctile gave similar results to _pctile (reltol = 1.0e-08, tol = 1.0e-06) compare__pctile (passed): gquantiles int1^2 + 3 * double1, _pctile gave similar results to _pctile (reltol = 1.0e-08, tol = 1.0e-06) compare__pctile (passed): gquantiles log(double1) + 2 * int1, _pctile gave similar results to _pctile (reltol = 1.0e-08, tol = 1.0e-06) compare__pctile (passed): gquantiles exp(double3) + int1 * double3, _pctile gave similar results to _pctile (reltol = 1.0e-08, tol = 1.0e-06) @@ -6530,7 +6573,7 @@ Compare _pctile - if in: - weight: [aw = unif_0_100] - obs: 100,000 - compare__pctile (warning): 807.1427402319387 (_pctile) vs 807.1876422036439 + compare__pctile (warning): 80.39804873988032 (_pctile) vs 80.38312965072691 compare__pctile (warning): gquantiles double1, _pctile gave different results to _pctile (reltol = 1.0e-08, tol = 1.0e-06) using weights in _pctile seems to give incorrect results under some @@ -6539,63 +6582,56 @@ this quirk in pctile rather than an error in your code (pay special attention to the weighted gcollapse comparison to check) compare__pctile (passed): gquantiles double3, _pctile gave similar results to _pctile (reltol = 1.0e-08, tol = 1.0e-06) - compare__pctile (warning): 6.485108309425414 (_pctile) vs 6.484990380704403 - compare__pctile (warning): 16.31567288422957 (_pctile) vs 16.31601662375033 - compare__pctile (warning): 19.50766773661599 (_pctile) vs 19.5075694238767 - compare__pctile (warning): 28.92354157520458 (_pctile) vs 28.92348081804812 - compare__pctile (warning): 31.18425657739863 (_pctile) vs 31.18454355280846 - compare__pctile (warning): 33.41670726658776 (_pctile) vs 33.41778023168445 - compare__pctile (warning): 37.5569692463614 (_pctile) vs 37.55661512259394 - compare__pctile (warning): 61.1778738675639 (_pctile) vs 61.17716580629349 - compare__pctile (warning): 73.40970139484853 (_pctile) vs 73.41033921111375 - compare__pctile (warning): 73.9607352996245 (_pctile) vs 73.96150587592274 - compare__pctile (warning): 85.90523190796375 (_pctile) vs 85.90564848855138 + compare__pctile (warning): 21.64732161909342 (_pctile) vs 21.64726406335831 + compare__pctile (warning): 22.89111128775403 (_pctile) vs 22.8905240772292 + compare__pctile (warning): 27.4731173994951 (_pctile) vs 27.47021142859012 + compare__pctile (warning): 47.83833103720099 (_pctile) vs 47.83869036473334 + compare__pctile (warning): 69.59080318920314 (_pctile) vs 69.59072034806013 + compare__pctile (warning): 76.47434049285948 (_pctile) vs 76.47330071777105 + compare__pctile (warning): 81.80355790536851 (_pctile) vs 81.80357802193612 + compare__pctile (warning): 94.24084211932495 (_pctile) vs 94.24113605637103 + compare__pctile (warning): 96.61885994719341 (_pctile) vs 96.62102630827576 + compare__pctile (warning): 96.7121840803884 (_pctile) vs 96.71368182171136 compare__pctile (warning): gquantiles ru, _pctile gave different results to _pctile (reltol = 1.0e-08, tol = 1.0e-06) using weights in _pctile seems to give incorrect results under some -circumstances. The 11 _pctiles that were off are likely due to +circumstances. The 10 _pctiles that were off are likely due to this quirk in pctile rather than an error in your code (pay special attention to the weighted gcollapse comparison to check) compare__pctile (passed): gquantiles int1, _pctile gave similar results to _pctile (reltol = 1.0e-08, tol = 1.0e-06) compare__pctile (passed): gquantiles int3, _pctile gave similar results to _pctile (reltol = 1.0e-08, tol = 1.0e-06) - compare__pctile (warning): 4711.5 (_pctile) vs 4711 - compare__pctile (warning): 5087.5 (_pctile) vs 5087 - compare__pctile (warning): 14109.5 (_pctile) vs 14110 - compare__pctile (warning): 16373.5 (_pctile) vs 16374 - compare__pctile (warning): 22614.5 (_pctile) vs 22614 - compare__pctile (warning): 27819.5 (_pctile) vs 27820 - compare__pctile (warning): 33072.5 (_pctile) vs 33072 - compare__pctile (warning): 51425.5 (_pctile) vs 51426 - compare__pctile (warning): 52058.5 (_pctile) vs 52059 - compare__pctile (warning): 53538.5 (_pctile) vs 53538 - compare__pctile (warning): 67212.5 (_pctile) vs 67213 - compare__pctile (warning): 69733.5 (_pctile) vs 69733 - compare__pctile (warning): 73252.5 (_pctile) vs 73252 - compare__pctile (warning): 78735.5 (_pctile) vs 78736 - compare__pctile (warning): 80582.5 (_pctile) vs 80582 - compare__pctile (warning): 85170.5 (_pctile) vs 85170 - compare__pctile (warning): 91741.5 (_pctile) vs 91742 - compare__pctile (warning): 97142.5 (_pctile) vs 97142 - compare__pctile (warning): 97642.5 (_pctile) vs 97643 - compare__pctile (warning): 98876.5 (_pctile) vs 98877 + compare__pctile (warning): 14126.5 (_pctile) vs 14127 + compare__pctile (warning): 17660.5 (_pctile) vs 17661 + compare__pctile (warning): 21672.5 (_pctile) vs 21673 + compare__pctile (warning): 29952.5 (_pctile) vs 29952 + compare__pctile (warning): 36042.5 (_pctile) vs 36043 + compare__pctile (warning): 36305.5 (_pctile) vs 36305 + compare__pctile (warning): 53529.5 (_pctile) vs 53530 + compare__pctile (warning): 54272.5 (_pctile) vs 54273 + compare__pctile (warning): 56029.5 (_pctile) vs 56030 + compare__pctile (warning): 57558.5 (_pctile) vs 57558 + compare__pctile (warning): 63983.5 (_pctile) vs 63984 + compare__pctile (warning): 89521.5 (_pctile) vs 89521 + compare__pctile (warning): 90016.5 (_pctile) vs 90016 compare__pctile (warning): gquantiles ix, _pctile gave different results to _pctile (reltol = 1.0e-08, tol = 1.0e-06) using weights in _pctile seems to give incorrect results under some -circumstances. The 20 _pctiles that were off are likely due to +circumstances. The 13 _pctiles that were off are likely due to this quirk in pctile rather than an error in your code (pay special attention to the weighted gcollapse comparison to check) - compare__pctile (passed): gquantiles int1^2 + 3 * double1, _pctile gave similar results to _pctile (reltol = 1.0e-08, tol = 1.0e-06) - compare__pctile (passed): gquantiles log(double1) + 2 * int1, _pctile gave similar results to _pctile (reltol = 1.0e-08, tol = 1.0e-06) - compare__pctile (warning): 9798.757500284497 (_pctile) vs 9802.931378424166 - compare__pctile (warning): gquantiles exp(double3) + int1 * double3, _pctile gave different results to _pctile (reltol = 1.0e-08, tol = 1.0e-06) + compare__pctile (warning): 9229.811149235815 (_pctile) vs 9244.074227089062 + compare__pctile (warning): 984799.0969284344 (_pctile) vs 984687.4136540443 + compare__pctile (warning): gquantiles int1^2 + 3 * double1, _pctile gave different results to _pctile (reltol = 1.0e-08, tol = 1.0e-06) using weights in _pctile seems to give incorrect results under some -circumstances. The 1 _pctiles that were off are likely due to +circumstances. The 2 _pctiles that were off are likely due to this quirk in pctile rather than an error in your code (pay special attention to the weighted gcollapse comparison to check) + compare__pctile (passed): gquantiles log(double1) + 2 * int1, _pctile gave similar results to _pctile (reltol = 1.0e-08, tol = 1.0e-06) + compare__pctile (passed): gquantiles exp(double3) + int1 * double3, _pctile gave similar results to _pctile (reltol = 1.0e-08, tol = 1.0e-06) Compare _pctile @@ -6615,11 +6651,10 @@ Compare _pctile - weight: [aw = unif_0_100] - obs: 100,000 compare__pctile (warning): 807.7957500936463 (_pctile) vs 807.7869242988527 - compare__pctile (warning): 979.7471622005105 (_pctile) vs 979.779462562874 compare__pctile (warning): gquantiles double1, _pctile gave different results to _pctile (reltol = 1.0e-08, tol = 1.0e-06) using weights in _pctile seems to give incorrect results under some -circumstances. The 2 _pctiles that were off are likely due to +circumstances. The 1 _pctiles that were off are likely due to this quirk in pctile rather than an error in your code (pay special attention to the weighted gcollapse comparison to check) @@ -6696,15 +6731,8 @@ Compare _pctile - if in: [if random2 > 0] - weight: [aw = unif_0_100] - obs: 100,000 - compare__pctile (warning): 282.0454289903864 (_pctile) vs 282.0614627562463 - compare__pctile (warning): gquantiles double1, _pctile gave different results to _pctile (reltol = 1.0e-08, tol = 1.0e-06) - -using weights in _pctile seems to give incorrect results under some -circumstances. The 1 _pctiles that were off are likely due to -this quirk in pctile rather than an error in your code (pay special -attention to the weighted gcollapse comparison to check) - - compare__pctile (warning): 12.89172711876736 (_pctile) vs 12.88834976454146 + compare__pctile (passed): gquantiles double1, _pctile gave similar results to _pctile (reltol = 1.0e-08, tol = 1.0e-06) + compare__pctile (warning): 7.194836373080397 (_pctile) vs 7.196253676717712 compare__pctile (warning): gquantiles double3, _pctile gave different results to _pctile (reltol = 1.0e-08, tol = 1.0e-06) using weights in _pctile seems to give incorrect results under some @@ -6712,35 +6740,32 @@ circumstances. The 1 _pctiles that were off are likely due to this quirk in pctile rather than an error in your code (pay special attention to the weighted gcollapse comparison to check) - compare__pctile (warning): 2.252851543016732 (_pctile) vs 2.253215876407921 - compare__pctile (warning): 3.442526608705521 (_pctile) vs 3.442479390650988 - compare__pctile (warning): 5.806516471784562 (_pctile) vs 5.807250598445535 - compare__pctile (warning): 9.504439041484147 (_pctile) vs 9.505283180624247 - compare__pctile (warning): 13.12930164858699 (_pctile) vs 13.13129856716841 - compare__pctile (warning): 27.13482399703935 (_pctile) vs 27.13479402009398 - compare__pctile (warning): 45.43350447202101 (_pctile) vs 45.43467045295984 - compare__pctile (warning): 71.74127082107589 (_pctile) vs 71.74094067886472 - compare__pctile (warning): 85.5218266020529 (_pctile) vs 85.52135128993541 - compare__pctile (warning): 92.10656596114859 (_pctile) vs 92.10718909744173 + compare__pctile (warning): 21.61502261878923 (_pctile) vs 21.61244179587811 + compare__pctile (warning): 45.56569121778011 (_pctile) vs 45.56716645602137 + compare__pctile (warning): 46.82855901774019 (_pctile) vs 46.82880938053131 + compare__pctile (warning): 52.24626754643396 (_pctile) vs 52.24525770172477 + compare__pctile (warning): 64.43013807293028 (_pctile) vs 64.42945366725326 + compare__pctile (warning): 82.40680367453024 (_pctile) vs 82.4072583578527 + compare__pctile (warning): 95.04520923364908 (_pctile) vs 95.04331005737185 compare__pctile (warning): gquantiles ru, _pctile gave different results to _pctile (reltol = 1.0e-08, tol = 1.0e-06) using weights in _pctile seems to give incorrect results under some -circumstances. The 10 _pctiles that were off are likely due to +circumstances. The 7 _pctiles that were off are likely due to this quirk in pctile rather than an error in your code (pay special attention to the weighted gcollapse comparison to check) compare__pctile (passed): gquantiles int1, _pctile gave similar results to _pctile (reltol = 1.0e-08, tol = 1.0e-06) compare__pctile (passed): gquantiles int3, _pctile gave similar results to _pctile (reltol = 1.0e-08, tol = 1.0e-06) - compare__pctile (warning): 24464.5 (_pctile) vs 24466 - compare__pctile (warning): 30064.5 (_pctile) vs 30065 - compare__pctile (warning): 32827 (_pctile) vs 32826 - compare__pctile (warning): 39435 (_pctile) vs 39436 - compare__pctile (warning): 49068 (_pctile) vs 49066 - compare__pctile (warning): 70460.5 (_pctile) vs 70460 - compare__pctile (warning): 73184 (_pctile) vs 73185 - compare__pctile (warning): 77667.5 (_pctile) vs 77669 - compare__pctile (warning): 93570 (_pctile) vs 93569 - compare__pctile (warning): 94069.5 (_pctile) vs 94068 + compare__pctile (warning): 16192 (_pctile) vs 16191 + compare__pctile (warning): 22569 (_pctile) vs 22570 + compare__pctile (warning): 43030.5 (_pctile) vs 43031 + compare__pctile (warning): 49316 (_pctile) vs 49320 + compare__pctile (warning): 70210.5 (_pctile) vs 70211 + compare__pctile (warning): 74786.5 (_pctile) vs 74787 + compare__pctile (warning): 81124.5 (_pctile) vs 81126 + compare__pctile (warning): 82505 (_pctile) vs 82506 + compare__pctile (warning): 89815.5 (_pctile) vs 89815 + compare__pctile (warning): 98578.5 (_pctile) vs 98579 compare__pctile (warning): gquantiles ix, _pctile gave different results to _pctile (reltol = 1.0e-08, tol = 1.0e-06) using weights in _pctile seems to give incorrect results under some @@ -6748,26 +6773,27 @@ circumstances. The 10 _pctiles that were off are likely due to this quirk in pctile rather than an error in your code (pay special attention to the weighted gcollapse comparison to check) - compare__pctile (warning): 277768.8076596353 (_pctile) vs 277706.5043479893 - compare__pctile (warning): 684770.2162086125 (_pctile) vs 684789.8489070814 + compare__pctile (warning): 162626.4226329662 (_pctile) vs 162592.7507565506 + compare__pctile (warning): 166638.0576210497 (_pctile) vs 166599.6567156035 + compare__pctile (warning): 670320.5057312092 (_pctile) vs 670418.3048810121 compare__pctile (warning): gquantiles int1^2 + 3 * double1, _pctile gave different results to _pctile (reltol = 1.0e-08, tol = 1.0e-06) using weights in _pctile seems to give incorrect results under some -circumstances. The 2 _pctiles that were off are likely due to +circumstances. The 3 _pctiles that were off are likely due to this quirk in pctile rather than an error in your code (pay special attention to the weighted gcollapse comparison to check) - compare__pctile (warning): 343.8185386787858 (_pctile) vs 343.7091181917901 - compare__pctile (warning): 371.8672807523483 (_pctile) vs 371.8332989200282 - compare__pctile (warning): 1818.951761090154 (_pctile) vs 1819.168826756046 - compare__pctile (warning): gquantiles log(double1) + 2 * int1, _pctile gave different results to _pctile (reltol = 1.0e-08, tol = 1.0e-06) + compare__pctile (passed): gquantiles log(double1) + 2 * int1, _pctile gave similar results to _pctile (reltol = 1.0e-08, tol = 1.0e-06) + compare__pctile (warning): 10602.87591008085 (_pctile) vs 10601.35510067873 + compare__pctile (warning): 136799.8542782411 (_pctile) vs 136760.7299907482 + compare__pctile (warning): 633067.6741421763 (_pctile) vs 633627.6632299568 + compare__pctile (warning): gquantiles exp(double3) + int1 * double3, _pctile gave different results to _pctile (reltol = 1.0e-08, tol = 1.0e-06) using weights in _pctile seems to give incorrect results under some circumstances. The 3 _pctiles that were off are likely due to this quirk in pctile rather than an error in your code (pay special attention to the weighted gcollapse comparison to check) - compare__pctile (passed): gquantiles exp(double3) + int1 * double3, _pctile gave similar results to _pctile (reltol = 1.0e-08, tol = 1.0e-06) Compare _pctile @@ -6856,52 +6882,40 @@ Compare _pctile - if in: - weight: [aw = unif_0_100] - obs: 100,000 - compare__pctile (passed): gquantiles double1, _pctile gave similar results to _pctile (reltol = 1.0e-08, tol = 1.0e-06) - compare__pctile (warning): 8.228405349689712 (_pctile) vs 8.225944767248015 - compare__pctile (warning): gquantiles double3, _pctile gave different results to _pctile (reltol = 1.0e-08, tol = 1.0e-06) + compare__pctile (warning): 952.1476584486663 (_pctile) vs 952.2210187278688 + compare__pctile (warning): gquantiles double1, _pctile gave different results to _pctile (reltol = 1.0e-08, tol = 1.0e-06) using weights in _pctile seems to give incorrect results under some circumstances. The 1 _pctiles that were off are likely due to this quirk in pctile rather than an error in your code (pay special attention to the weighted gcollapse comparison to check) - compare__pctile (warning): 63.95277986302972 (_pctile) vs 63.95206621382385 - compare__pctile (warning): 69.06521673081443 (_pctile) vs 69.0653218422085 - compare__pctile (warning): 71.1189610301517 (_pctile) vs 71.11864006146789 + compare__pctile (passed): gquantiles double3, _pctile gave similar results to _pctile (reltol = 1.0e-08, tol = 1.0e-06) + compare__pctile (warning): 10.25287610245869 (_pctile) vs 10.25274356361479 + compare__pctile (warning): 12.25427583558485 (_pctile) vs 12.25518479477614 compare__pctile (warning): gquantiles ru, _pctile gave different results to _pctile (reltol = 1.0e-08, tol = 1.0e-06) using weights in _pctile seems to give incorrect results under some -circumstances. The 3 _pctiles that were off are likely due to +circumstances. The 2 _pctiles that were off are likely due to this quirk in pctile rather than an error in your code (pay special attention to the weighted gcollapse comparison to check) compare__pctile (passed): gquantiles int1, _pctile gave similar results to _pctile (reltol = 1.0e-08, tol = 1.0e-06) compare__pctile (passed): gquantiles int3, _pctile gave similar results to _pctile (reltol = 1.0e-08, tol = 1.0e-06) - compare__pctile (passed): gquantiles ix, _pctile gave similar results to _pctile (reltol = 1.0e-08, tol = 1.0e-06) - compare__pctile (warning): 5801.010249052197 (_pctile) vs 5806.072932699695 - compare__pctile (warning): gquantiles int1^2 + 3 * double1, _pctile gave different results to _pctile (reltol = 1.0e-08, tol = 1.0e-06) - -using weights in _pctile seems to give incorrect results under some -circumstances. The 1 _pctiles that were off are likely due to -this quirk in pctile rather than an error in your code (pay special -attention to the weighted gcollapse comparison to check) - - compare__pctile (warning): 559.6631333955337 (_pctile) vs 559.7155455655757 - compare__pctile (warning): gquantiles log(double1) + 2 * int1, _pctile gave different results to _pctile (reltol = 1.0e-08, tol = 1.0e-06) - -using weights in _pctile seems to give incorrect results under some -circumstances. The 1 _pctiles that were off are likely due to -this quirk in pctile rather than an error in your code (pay special -attention to the weighted gcollapse comparison to check) - - compare__pctile (warning): 2352.202520030925 (_pctile) vs 2351.849601846557 - compare__pctile (warning): gquantiles exp(double3) + int1 * double3, _pctile gave different results to _pctile (reltol = 1.0e-08, tol = 1.0e-06) + compare__pctile (warning): 27971.5 (_pctile) vs 27972 + compare__pctile (warning): 29998.5 (_pctile) vs 29999 + compare__pctile (warning): 48031.5 (_pctile) vs 48032 + compare__pctile (warning): 79035.5 (_pctile) vs 79035 + compare__pctile (warning): gquantiles ix, _pctile gave different results to _pctile (reltol = 1.0e-08, tol = 1.0e-06) using weights in _pctile seems to give incorrect results under some -circumstances. The 1 _pctiles that were off are likely due to +circumstances. The 4 _pctiles that were off are likely due to this quirk in pctile rather than an error in your code (pay special attention to the weighted gcollapse comparison to check) + compare__pctile (passed): gquantiles int1^2 + 3 * double1, _pctile gave similar results to _pctile (reltol = 1.0e-08, tol = 1.0e-06) + compare__pctile (passed): gquantiles log(double1) + 2 * int1, _pctile gave similar results to _pctile (reltol = 1.0e-08, tol = 1.0e-06) + compare__pctile (passed): gquantiles exp(double3) + int1 * double3, _pctile gave similar results to _pctile (reltol = 1.0e-08, tol = 1.0e-06) Compare _pctile @@ -6920,31 +6934,28 @@ Compare _pctile - if in: [in 10191/97561] - weight: [aw = unif_0_100] - obs: 100,000 - compare__pctile (passed): gquantiles double1, _pctile gave similar results to _pctile (reltol = 1.0e-08, tol = 1.0e-06) - compare__pctile (passed): gquantiles double3, _pctile gave similar results to _pctile (reltol = 1.0e-08, tol = 1.0e-06) - compare__pctile (warning): 22.19315433176234 (_pctile) vs 22.19254202209413 - compare__pctile (warning): gquantiles ru, _pctile gave different results to _pctile (reltol = 1.0e-08, tol = 1.0e-06) + compare__pctile (warning): 61.71425350476056 (_pctile) vs 61.69862113893032 + compare__pctile (warning): gquantiles double1, _pctile gave different results to _pctile (reltol = 1.0e-08, tol = 1.0e-06) using weights in _pctile seems to give incorrect results under some circumstances. The 1 _pctiles that were off are likely due to this quirk in pctile rather than an error in your code (pay special attention to the weighted gcollapse comparison to check) + compare__pctile (passed): gquantiles double3, _pctile gave similar results to _pctile (reltol = 1.0e-08, tol = 1.0e-06) + compare__pctile (passed): gquantiles ru, _pctile gave similar results to _pctile (reltol = 1.0e-08, tol = 1.0e-06) compare__pctile (passed): gquantiles int1, _pctile gave similar results to _pctile (reltol = 1.0e-08, tol = 1.0e-06) compare__pctile (passed): gquantiles int3, _pctile gave similar results to _pctile (reltol = 1.0e-08, tol = 1.0e-06) - compare__pctile (warning): 13087.5 (_pctile) vs 13087 - compare__pctile (warning): 35128 (_pctile) vs 35127 - compare__pctile (warning): 38200 (_pctile) vs 38199 - compare__pctile (warning): 49237.5 (_pctile) vs 49238 - compare__pctile (warning): gquantiles ix, _pctile gave different results to _pctile (reltol = 1.0e-08, tol = 1.0e-06) + compare__pctile (passed): gquantiles ix, _pctile gave similar results to _pctile (reltol = 1.0e-08, tol = 1.0e-06) + compare__pctile (passed): gquantiles int1^2 + 3 * double1, _pctile gave similar results to _pctile (reltol = 1.0e-08, tol = 1.0e-06) + compare__pctile (warning): 638.744392653099 (_pctile) vs 638.7844950726599 + compare__pctile (warning): gquantiles log(double1) + 2 * int1, _pctile gave different results to _pctile (reltol = 1.0e-08, tol = 1.0e-06) using weights in _pctile seems to give incorrect results under some -circumstances. The 4 _pctiles that were off are likely due to +circumstances. The 1 _pctiles that were off are likely due to this quirk in pctile rather than an error in your code (pay special attention to the weighted gcollapse comparison to check) - compare__pctile (passed): gquantiles int1^2 + 3 * double1, _pctile gave similar results to _pctile (reltol = 1.0e-08, tol = 1.0e-06) - compare__pctile (passed): gquantiles log(double1) + 2 * int1, _pctile gave similar results to _pctile (reltol = 1.0e-08, tol = 1.0e-06) compare__pctile (passed): gquantiles exp(double3) + int1 * double3, _pctile gave similar results to _pctile (reltol = 1.0e-08, tol = 1.0e-06) @@ -6953,38 +6964,50 @@ Compare _pctile - if in: [if random2 > 0] - weight: [aw = unif_0_100] - obs: 100,000 - compare__pctile (warning): 189.6005759481341 (_pctile) vs 189.5206996705383 - compare__pctile (warning): gquantiles double1, _pctile gave different results to _pctile (reltol = 1.0e-08, tol = 1.0e-06) + compare__pctile (passed): gquantiles double1, _pctile gave similar results to _pctile (reltol = 1.0e-08, tol = 1.0e-06) + compare__pctile (warning): 4.535603878791899 (_pctile) vs 4.535656602789562 + compare__pctile (warning): gquantiles double3, _pctile gave different results to _pctile (reltol = 1.0e-08, tol = 1.0e-06) using weights in _pctile seems to give incorrect results under some circumstances. The 1 _pctiles that were off are likely due to this quirk in pctile rather than an error in your code (pay special attention to the weighted gcollapse comparison to check) - compare__pctile (passed): gquantiles double3, _pctile gave similar results to _pctile (reltol = 1.0e-08, tol = 1.0e-06) - compare__pctile (warning): 11.16579835070297 (_pctile) vs 11.16644109133631 - compare__pctile (warning): 66.90947662573308 (_pctile) vs 66.90952510107309 + compare__pctile (warning): 73.99034227710217 (_pctile) vs 73.98906000889838 compare__pctile (warning): gquantiles ru, _pctile gave different results to _pctile (reltol = 1.0e-08, tol = 1.0e-06) using weights in _pctile seems to give incorrect results under some -circumstances. The 2 _pctiles that were off are likely due to +circumstances. The 1 _pctiles that were off are likely due to this quirk in pctile rather than an error in your code (pay special attention to the weighted gcollapse comparison to check) compare__pctile (passed): gquantiles int1, _pctile gave similar results to _pctile (reltol = 1.0e-08, tol = 1.0e-06) compare__pctile (passed): gquantiles int3, _pctile gave similar results to _pctile (reltol = 1.0e-08, tol = 1.0e-06) - compare__pctile (warning): 41980.5 (_pctile) vs 41980 - compare__pctile (warning): 48021.5 (_pctile) vs 48021 - compare__pctile (warning): 68990.5 (_pctile) vs 68989 + compare__pctile (warning): 6055 (_pctile) vs 6053 compare__pctile (warning): gquantiles ix, _pctile gave different results to _pctile (reltol = 1.0e-08, tol = 1.0e-06) using weights in _pctile seems to give incorrect results under some -circumstances. The 3 _pctiles that were off are likely due to +circumstances. The 1 _pctiles that were off are likely due to +this quirk in pctile rather than an error in your code (pay special +attention to the weighted gcollapse comparison to check) + + compare__pctile (warning): 727017.1155574592 (_pctile) vs 727011.8744143974 + compare__pctile (warning): gquantiles int1^2 + 3 * double1, _pctile gave different results to _pctile (reltol = 1.0e-08, tol = 1.0e-06) + +using weights in _pctile seems to give incorrect results under some +circumstances. The 1 _pctiles that were off are likely due to +this quirk in pctile rather than an error in your code (pay special +attention to the weighted gcollapse comparison to check) + + compare__pctile (warning): 139.8646831286716 (_pctile) vs 139.8603820832042 + compare__pctile (warning): 1076.563097881538 (_pctile) vs 1076.597417402167 + compare__pctile (warning): gquantiles log(double1) + 2 * int1, _pctile gave different results to _pctile (reltol = 1.0e-08, tol = 1.0e-06) + +using weights in _pctile seems to give incorrect results under some +circumstances. The 2 _pctiles that were off are likely due to this quirk in pctile rather than an error in your code (pay special attention to the weighted gcollapse comparison to check) - compare__pctile (passed): gquantiles int1^2 + 3 * double1, _pctile gave similar results to _pctile (reltol = 1.0e-08, tol = 1.0e-06) - compare__pctile (passed): gquantiles log(double1) + 2 * int1, _pctile gave similar results to _pctile (reltol = 1.0e-08, tol = 1.0e-06) compare__pctile (passed): gquantiles exp(double3) + int1 * double3, _pctile gave similar results to _pctile (reltol = 1.0e-08, tol = 1.0e-06) @@ -7025,14 +7048,7 @@ Compare _pctile - obs: 100,000 compare__pctile (passed): gquantiles double1, _pctile gave similar results to _pctile (reltol = 1.0e-08, tol = 1.0e-06) compare__pctile (passed): gquantiles double3, _pctile gave similar results to _pctile (reltol = 1.0e-08, tol = 1.0e-06) - compare__pctile (warning): 89.91810122970492 (_pctile) vs 89.91787096019834 - compare__pctile (warning): gquantiles ru, _pctile gave different results to _pctile (reltol = 1.0e-08, tol = 1.0e-06) - -using weights in _pctile seems to give incorrect results under some -circumstances. The 1 _pctiles that were off are likely due to -this quirk in pctile rather than an error in your code (pay special -attention to the weighted gcollapse comparison to check) - + compare__pctile (passed): gquantiles ru, _pctile gave similar results to _pctile (reltol = 1.0e-08, tol = 1.0e-06) compare__pctile (passed): gquantiles int1, _pctile gave similar results to _pctile (reltol = 1.0e-08, tol = 1.0e-06) compare__pctile (passed): gquantiles int3, _pctile gave similar results to _pctile (reltol = 1.0e-08, tol = 1.0e-06) compare__pctile (passed): gquantiles ix, _pctile gave similar results to _pctile (reltol = 1.0e-08, tol = 1.0e-06) @@ -7063,14 +7079,7 @@ Compare _pctile compare__pctile (passed): gquantiles int1, _pctile gave similar results to _pctile (reltol = 1.0e-08, tol = 1.0e-06) compare__pctile (passed): gquantiles int3, _pctile gave similar results to _pctile (reltol = 1.0e-08, tol = 1.0e-06) compare__pctile (passed): gquantiles ix, _pctile gave similar results to _pctile (reltol = 1.0e-08, tol = 1.0e-06) - compare__pctile (warning): 165405.836641944 (_pctile) vs 165498.8828823902 - compare__pctile (warning): gquantiles int1^2 + 3 * double1, _pctile gave different results to _pctile (reltol = 1.0e-08, tol = 1.0e-06) - -using weights in _pctile seems to give incorrect results under some -circumstances. The 1 _pctiles that were off are likely due to -this quirk in pctile rather than an error in your code (pay special -attention to the weighted gcollapse comparison to check) - + compare__pctile (passed): gquantiles int1^2 + 3 * double1, _pctile gave similar results to _pctile (reltol = 1.0e-08, tol = 1.0e-06) compare__pctile (passed): gquantiles log(double1) + 2 * int1, _pctile gave similar results to _pctile (reltol = 1.0e-08, tol = 1.0e-06) compare__pctile (passed): gquantiles exp(double3) + int1 * double3, _pctile gave similar results to _pctile (reltol = 1.0e-08, tol = 1.0e-06) @@ -7190,70 +7199,59 @@ Compare xtile __000003 | N Cum Pct (%) Cum Pct (%) ----------------------------------------------------- - 0 | 98,991 98,991 99.0 99.0 - . | 1,000 99,991 1.0 100.0 - 1 | 9 100,000 0.0 100.0 - - compare_xtile (warning): gquantiles xtile = double1 gave different levels to xtile - -using weights in xtile seems to give incorrect results under some -circumstances. Only 9 / 100000 xtiles were off. - - - __000003 | N Cum Pct (%) Cum Pct (%) - ----------------------------------------------------- - 0 | 88,823 88,823 88.8 88.8 - . | 11,167 99,990 11.2 100.0 + 0 | 98,990 98,990 99.0 99.0 + . | 1,000 99,990 1.0 100.0 1 | 10 100,000 0.0 100.0 - compare_xtile (warning): gquantiles xtile = double3 gave different levels to xtile + compare_xtile (warning): gquantiles xtile = double1 gave different levels to xtile using weights in xtile seems to give incorrect results under some circumstances. Only 10 / 100000 xtiles were off. + compare_xtile (passed): gquantiles xtile = double3 was the same as xtile __000003 | N Cum Pct (%) Cum Pct (%) ----------------------------------------------------- - 0 | 98,986 98,986 99.0 99.0 - . | 1,010 99,996 1.0 100.0 - 1 | 4 100,000 0.0 100.0 + 0 | 98,989 98,989 99.0 99.0 + . | 1,009 99,998 1.0 100.0 + 1 | 2 100,000 0.0 100.0 compare_xtile (warning): gquantiles xtile = ru gave different levels to xtile using weights in xtile seems to give incorrect results under some -circumstances. Only 4 / 100000 xtiles were off. +circumstances. Only 2 / 100000 xtiles were off. compare_xtile (passed): gquantiles xtile = int1 was the same as xtile compare_xtile (passed): gquantiles xtile = int3 was the same as xtile __000003 | N Cum Pct (%) Cum Pct (%) ----------------------------------------------------- - 0 | 98,987 98,987 99.0 99.0 - . | 1,010 99,997 1.0 100.0 - 1 | 3 100,000 0.0 100.0 + 0 | 98,985 98,985 99.0 99.0 + . | 1,009 99,994 1.0 100.0 + 1 | 6 100,000 0.0 100.0 compare_xtile (warning): gquantiles xtile = ix gave different levels to xtile using weights in xtile seems to give incorrect results under some -circumstances. Only 3 / 100000 xtiles were off. +circumstances. Only 6 / 100000 xtiles were off. +(note: fastxtile failed where xtile succeeded) + compare_xtile (passed): gquantiles xtile = int1^2 + 3 * double1 was the same as xtile +(note: fastxtile failed where xtile succeeded) + compare_xtile (passed): gquantiles xtile = log(double1) + 2 * int1 was the same as xtile (note: fastxtile failed where xtile succeeded) __000003 | N Cum Pct (%) Cum Pct (%) ----------------------------------------------------- - 0 | 98,980 98,980 99.0 99.0 - . | 1,000 99,980 1.0 100.0 - 1 | 20 100,000 0.0 100.0 + 0 | 88,825 88,825 88.8 88.8 + . | 11,165 99,990 11.2 100.0 + 1 | 10 100,000 0.0 100.0 - compare_xtile (warning): gquantiles xtile = int1^2 + 3 * double1 gave different levels to xtile + compare_xtile (warning): gquantiles xtile = exp(double3) + int1 * double3 gave different levels to xtile using weights in xtile seems to give incorrect results under some -circumstances. Only 20 / 100000 xtiles were off. +circumstances. Only 10 / 100000 xtiles were off. -(note: fastxtile failed where xtile succeeded) - compare_xtile (passed): gquantiles xtile = log(double1) + 2 * int1 was the same as xtile -(note: fastxtile failed where xtile succeeded) - compare_xtile (passed): gquantiles xtile = exp(double3) + int1 * double3 was the same as xtile (note: skipped [in 1/5] tests for xtile; this test is for pctile and _pctile only) @@ -7319,8 +7317,8 @@ Compare xtile __000003 | N Cum Pct (%) Cum Pct (%) ----------------------------------------------------- - 0 | 52,165 52,165 52.2 52.2 - . | 47,833 99,998 47.8 100.0 + 0 | 52,166 52,166 52.2 52.2 + . | 47,832 99,998 47.8 100.0 1 | 2 100,000 0.0 100.0 compare_xtile (warning): gquantiles xtile = ru gave different levels to xtile @@ -7333,8 +7331,8 @@ circumstances. Only 2 / 100000 xtiles were off. __000003 | N Cum Pct (%) Cum Pct (%) ----------------------------------------------------- - 0 | 52,164 52,164 52.2 52.2 - . | 47,833 99,997 47.8 100.0 + 0 | 52,165 52,165 52.2 52.2 + . | 47,832 99,997 47.8 100.0 1 | 3 100,000 0.0 100.0 compare_xtile (warning): gquantiles xtile = ix gave different levels to xtile @@ -7343,43 +7341,21 @@ using weights in xtile seems to give incorrect results under some circumstances. Only 3 / 100000 xtiles were off. (note: fastxtile failed where xtile succeeded) - - __000003 | N Cum Pct (%) Cum Pct (%) - ----------------------------------------------------- - 0 | 52,167 52,167 52.2 52.2 - . | 47,823 99,990 47.8 100.0 - 1 | 10 100,000 0.0 100.0 - - compare_xtile (warning): gquantiles xtile = int1^2 + 3 * double1 gave different levels to xtile - -using weights in xtile seems to give incorrect results under some -circumstances. Only 10 / 100000 xtiles were off. - + compare_xtile (passed): gquantiles xtile = int1^2 + 3 * double1 was the same as xtile (note: fastxtile failed where xtile succeeded) - - __000003 | N Cum Pct (%) Cum Pct (%) - ----------------------------------------------------- - 0 | 52,172 52,172 52.2 52.2 - . | 47,823 99,995 47.8 100.0 - 1 | 5 100,000 0.0 100.0 - - compare_xtile (warning): gquantiles xtile = log(double1) + 2 * int1 gave different levels to xtile - -using weights in xtile seems to give incorrect results under some -circumstances. Only 5 / 100000 xtiles were off. - + compare_xtile (passed): gquantiles xtile = log(double1) + 2 * int1 was the same as xtile (note: fastxtile failed where xtile succeeded) __000003 | N Cum Pct (%) Cum Pct (%) ----------------------------------------------------- - . | 53,424 53,424 53.4 53.4 - 0 | 46,568 99,992 46.6 100.0 - 1 | 8 100,000 0.0 100.0 + . | 53,422 53,422 53.4 53.4 + 0 | 46,574 99,996 46.6 100.0 + 1 | 4 100,000 0.0 100.0 compare_xtile (warning): gquantiles xtile = exp(double3) + int1 * double3 gave different levels to xtile using weights in xtile seems to give incorrect results under some -circumstances. Only 8 / 100000 xtiles were off. +circumstances. Only 4 / 100000 xtiles were off. @@ -7478,18 +7454,7 @@ Compare xtile compare_xtile (passed): gquantiles xtile = ru was the same as xtile compare_xtile (passed): gquantiles xtile = int1 was the same as xtile compare_xtile (passed): gquantiles xtile = int3 was the same as xtile - - __000003 | N Cum Pct (%) Cum Pct (%) - ----------------------------------------------------- - 0 | 98,990 98,990 99.0 99.0 - . | 1,009 99,999 1.0 100.0 - 1 | 1 100,000 0.0 100.0 - - compare_xtile (warning): gquantiles xtile = ix gave different levels to xtile - -using weights in xtile seems to give incorrect results under some -circumstances. Only 1 / 100000 xtiles were off. - + compare_xtile (passed): gquantiles xtile = ix was the same as xtile (note: fastxtile failed where xtile succeeded) compare_xtile (passed): gquantiles xtile = int1^2 + 3 * double1 was the same as xtile (note: fastxtile failed where xtile succeeded) @@ -7547,18 +7512,7 @@ Compare xtile - obs: 100,000 compare_xtile (passed): gquantiles xtile = double1 was the same as xtile compare_xtile (passed): gquantiles xtile = double3 was the same as xtile - - __000003 | N Cum Pct (%) Cum Pct (%) - ----------------------------------------------------- - 0 | 52,069 52,069 52.1 52.1 - . | 47,930 99,999 47.9 100.0 - 1 | 1 100,000 0.0 100.0 - - compare_xtile (warning): gquantiles xtile = ru gave different levels to xtile - -using weights in xtile seems to give incorrect results under some -circumstances. Only 1 / 100000 xtiles were off. - + compare_xtile (passed): gquantiles xtile = ru was the same as xtile compare_xtile (passed): gquantiles xtile = int1 was the same as xtile compare_xtile (passed): gquantiles xtile = int3 was the same as xtile compare_xtile (passed): gquantiles xtile = ix was the same as xtile @@ -7634,7 +7588,18 @@ Compare xtile compare_xtile (passed): gquantiles xtile = int3 was the same as xtile compare_xtile (passed): gquantiles xtile = ix was the same as xtile (note: fastxtile failed where xtile succeeded) - compare_xtile (passed): gquantiles xtile = int1^2 + 3 * double1 was the same as xtile + + __000003 | N Cum Pct (%) Cum Pct (%) + ----------------------------------------------------- + 0 | 98,990 98,990 99.0 99.0 + . | 1,000 99,990 1.0 100.0 + 1 | 10 100,000 0.0 100.0 + + compare_xtile (warning): gquantiles xtile = int1^2 + 3 * double1 gave different levels to xtile + +using weights in xtile seems to give incorrect results under some +circumstances. Only 10 / 100000 xtiles were off. + (note: fastxtile failed where xtile succeeded) compare_xtile (passed): gquantiles xtile = log(double1) + 2 * int1 was the same as xtile (note: fastxtile failed where xtile succeeded) @@ -7668,18 +7633,7 @@ Compare xtile - obs: 100,000 compare_xtile (passed): gquantiles xtile = double1 was the same as xtile compare_xtile (passed): gquantiles xtile = double3 was the same as xtile - - __000003 | N Cum Pct (%) Cum Pct (%) - ----------------------------------------------------- - 0 | 52,026 52,026 52.0 52.0 - . | 47,973 99,999 48.0 100.0 - 1 | 1 100,000 0.0 100.0 - - compare_xtile (warning): gquantiles xtile = ru gave different levels to xtile - -using weights in xtile seems to give incorrect results under some -circumstances. Only 1 / 100000 xtiles were off. - + compare_xtile (passed): gquantiles xtile = ru was the same as xtile compare_xtile (passed): gquantiles xtile = int1 was the same as xtile compare_xtile (passed): gquantiles xtile = int3 was the same as xtile compare_xtile (passed): gquantiles xtile = ix was the same as xtile @@ -14881,26 +14835,26 @@ I think 'far from one' is a deviation of 0.2 or more. | N | nq | pctile | pctile, binfreq | pctile, binfreq, xtile | | ------------ | ---- | ------------- | --------------- | ---------------------- | -| 100,000 | 2 | 1.13 ( 6.26) | 1.1 ( 4.5) | 1.27 ( 6.51) | -| 100,000 | 5 | 1 ( 2.5) | 1 ( 2.25) | 1 ( 3.72) | -| 100,000 | 10 | .8 ( 1.25) | .818 ( 1.23) | 1 ( 2.17) | -| 100,000 | 20 | .8 ( .626) | .833 ( .643) | .867 ( 1.18) | -| 100,000 | 30 | .75 ( .417) | .611 ( .436) | .944 ( .813) | -| 100,000 | 40 | .5 ( .313) | .469 ( .33) | .605 ( .62) | +| 100,000 | 2 | .692 ( 6.26) | 1.14 ( 4.5) | 1.08 ( 6.51) | +| 100,000 | 5 | .471 ( 2.5) | 1.45 ( 2.25) | 1.08 ( 3.72) | +| 100,000 | 10 | .444 ( 1.25) | 1.25 ( 1.23) | 1 ( 2.17) | +| 100,000 | 20 | .429 ( .626) | .857 ( .643) | .875 ( 1.18) | +| 100,000 | 30 | .474 ( .417) | 1 ( .436) | .875 ( .813) | +| 100,000 | 40 | .281 ( .313) | 1.27 ( .33) | 1.19 ( .62) | | ------------ | ---- | ------------- | --------------- | ---------------------- | -| 1,000,000 | 2 | .912 ( 7.41) | .839 ( 5.27) | 1.36 ( 7.66) | -| 1,000,000 | 5 | 1.11 ( 2.96) | 1.07 ( 2.64) | 1.27 ( 4.38) | -| 1,000,000 | 10 | .612 ( 1.48) | 1.08 ( 1.44) | 1.04 ( 2.55) | -| 1,000,000 | 20 | .321 ( .741) | .566 ( .753) | .705 ( 1.39) | -| 1,000,000 | 30 | .455 ( .494) | .624 ( .51) | .738 ( .957) | -| 1,000,000 | 40 | .309 ( .37) | .298 ( .386) | .695 ( .729) | +| 1,000,000 | 2 | 1.29 ( 7.41) | .8 ( 5.27) | 1.46 ( 7.66) | +| 1,000,000 | 5 | .943 ( 2.96) | 1.21 ( 2.64) | 1.3 ( 4.38) | +| 1,000,000 | 10 | 1.07 ( 1.48) | .863 ( 1.44) | 1.29 ( 2.55) | +| 1,000,000 | 20 | .69 ( .741) | .57 ( .753) | .609 ( 1.39) | +| 1,000,000 | 30 | .776 ( .494) | .577 ( .51) | .729 ( .957) | +| 1,000,000 | 40 | .488 ( .37) | .333 ( .386) | .468 ( .729) | | ------------ | ---- | ------------- | --------------- | ---------------------- | -| 10,000,000 | 2 | 1.46 ( 8.56) | .982 ( 6.04) | 2.03 ( 8.81) | -| 10,000,000 | 5 | 1.31 ( 3.42) | 1.34 ( 3.02) | 1.46 ( 5.03) | -| 10,000,000 | 10 | .928 ( 1.71) | .883 ( 1.65) | .931 ( 2.94) | -| 10,000,000 | 20 | .548 ( .856) | .833 ( .863) | .874 ( 1.6) | -| 10,000,000 | 30 | .753 ( .571) | .548 ( .584) | .744 ( 1.1) | -| 10,000,000 | 40 | .352 ( .428) | .327 ( .442) | .544 ( .839) | +| 10,000,000 | 2 | 1.57 ( 8.56) | 1.04 ( 6.04) | 1.65 ( 8.81) | +| 10,000,000 | 5 | 1.3 ( 3.42) | 1.36 ( 3.02) | 1.38 ( 5.03) | +| 10,000,000 | 10 | .884 ( 1.71) | .885 ( 1.65) | 1.09 ( 2.94) | +| 10,000,000 | 20 | .634 ( .856) | .622 ( .863) | .824 ( 1.6) | +| 10,000,000 | 30 | .622 ( .571) | .617 ( .584) | .795 ( 1.1) | +| 10,000,000 | 40 | .356 ( .428) | .35 ( .442) | .531 ( .839) | Testing whether gquantiles method switch code is sane for cutoffs. The table shows the actual ratio between method 1 and method 2 vs the @@ -14916,26 +14870,26 @@ I think 'far from one' is a deviation of 0.2 or more. | N | cutoffs | pctile | pctile, binfreq | pctile, binfreq, xtile | | ------------ | ------- | ------------- | --------------- | ---------------------- | -| 100,000 | 2 | 1 ( 12.5) | .304 ( 10.4) | 1.06 ( 20) | -| 100,000 | 50 | 1 ( 12.5) | .882 ( 2.22) | 1.1 ( 4.27) | -| 100,000 | 100 | 1.15 ( 12.5) | .882 ( 1.22) | .857 ( 2.34) | -| 100,000 | 200 | .737 ( 12.5) | 1.04 ( .64) | .679 ( 1.23) | -| 100,000 | 500 | 1 ( 12.5) | .595 ( .264) | .593 ( .509) | -| 100,000 | 1000 | .933 ( 12.5) | .462 ( .134) | .464 ( .257) | +| 100,000 | 2 | 1 ( 12.5) | .333 ( 10.4) | 1.11 ( 20) | +| 100,000 | 50 | .853 ( 12.5) | .952 ( 2.22) | 1.05 ( 4.27) | +| 100,000 | 100 | .826 ( 12.5) | .905 ( 1.22) | .909 ( 2.34) | +| 100,000 | 200 | .783 ( 12.5) | .72 ( .64) | .76 ( 1.23) | +| 100,000 | 500 | .676 ( 12.5) | .91 ( .264) | .556 ( .509) | +| 100,000 | 1000 | .739 ( 12.5) | .442 ( .134) | .413 ( .257) | | ------------ | ------- | ------------- | --------------- | ---------------------- | -| 1,000,000 | 2 | 1.07 ( 14.8) | 1.47 ( 12.2) | .84 ( 23.6) | -| 1,000,000 | 50 | 1.22 ( 14.8) | 1.05 ( 2.59) | 1.16 ( 5.02) | -| 1,000,000 | 100 | 1.03 ( 14.8) | .899 ( 1.42) | 1.29 ( 2.76) | -| 1,000,000 | 200 | .858 ( 14.8) | .985 ( .75) | 1.14 ( 1.45) | -| 1,000,000 | 500 | 1.26 ( 14.8) | .478 ( .31) | .754 ( .599) | -| 1,000,000 | 1000 | 1.44 ( 14.8) | .479 ( .156) | .468 ( .303) | +| 1,000,000 | 2 | .907 ( 14.8) | 1.21 ( 12.2) | 1 ( 23.6) | +| 1,000,000 | 50 | 1.25 ( 14.8) | .733 ( 2.59) | .827 ( 5.02) | +| 1,000,000 | 100 | 1.61 ( 14.8) | .888 ( 1.42) | 1.23 ( 2.76) | +| 1,000,000 | 200 | .822 ( 14.8) | .758 ( .75) | .957 ( 1.45) | +| 1,000,000 | 500 | 1.16 ( 14.8) | .638 ( .31) | .573 ( .599) | +| 1,000,000 | 1000 | 1 ( 14.8) | .312 ( .156) | .378 ( .303) | | ------------ | ------- | ------------- | --------------- | ---------------------- | -| 10,000,000 | 2 | 1.24 ( 17.1) | 1.23 ( 13.9) | 1.33 ( 27.1) | -| 10,000,000 | 50 | 1.54 ( 17.1) | 1 ( 2.97) | 1.41 ( 5.78) | -| 10,000,000 | 100 | 1.72 ( 17.1) | .875 ( 1.63) | 1.58 ( 3.17) | -| 10,000,000 | 200 | 1.39 ( 17.1) | .783 ( .859) | 1.24 ( 1.67) | -| 10,000,000 | 500 | 1.4 ( 17.1) | .391 ( .355) | .483 ( .69) | -| 10,000,000 | 1000 | 1.69 ( 17.1) | .249 ( .179) | .293 ( .349) | +| 10,000,000 | 2 | 1.32 ( 17.1) | 1.13 ( 13.9) | 1.39 ( 27.1) | +| 10,000,000 | 50 | 1.68 ( 17.1) | 1.19 ( 2.97) | 1.29 ( 5.78) | +| 10,000,000 | 100 | 1.89 ( 17.1) | .9 ( 1.63) | 1.11 ( 3.17) | +| 10,000,000 | 200 | 1.62 ( 17.1) | .702 ( .859) | .919 ( 1.67) | +| 10,000,000 | 500 | 1.83 ( 17.1) | .437 ( .355) | .54 ( .69) | +| 10,000,000 | 1000 | 1.72 ( 17.1) | .262 ( .179) | .369 ( .349) | -------------------------------------------------------------------------------- gquantiles_switch_sanity (some duplicates) @@ -14955,26 +14909,26 @@ I think 'far from one' is a deviation of 0.2 or more. | N | nq | pctile | pctile, binfreq | pctile, binfreq, xtile | | ------------ | ---- | ------------- | --------------- | ---------------------- | -| 100,000 | 2 | 1.33 ( 6.26) | 1.25 ( 4.5) | 1.54 ( 6.51) | -| 100,000 | 5 | 1.11 ( 2.5) | 1.29 ( 2.25) | 1.06 ( 3.72) | -| 100,000 | 10 | 1.32 ( 1.25) | 1 ( 1.23) | 1.05 ( 2.17) | -| 100,000 | 20 | .586 ( .626) | .625 ( .643) | .93 ( 1.18) | -| 100,000 | 30 | .767 ( .417) | .707 ( .436) | .872 ( .813) | -| 100,000 | 40 | .591 ( .313) | .529 ( .33) | .609 ( .62) | +| 100,000 | 2 | 1.75 ( 6.26) | 2.13 ( 4.5) | 1.5 ( 6.51) | +| 100,000 | 5 | .867 ( 2.5) | 1.3 ( 2.25) | 1.17 ( 3.72) | +| 100,000 | 10 | 1.06 ( 1.25) | 1.08 ( 1.23) | 1.07 ( 2.17) | +| 100,000 | 20 | .737 ( .626) | 1 ( .643) | .938 ( 1.18) | +| 100,000 | 30 | .684 ( .417) | .857 ( .436) | .667 ( .813) | +| 100,000 | 40 | .621 ( .313) | .615 ( .33) | .708 ( .62) | | ------------ | ---- | ------------- | --------------- | ---------------------- | -| 1,000,000 | 2 | 1.57 ( 7.41) | 1.81 ( 5.27) | 1.28 ( 7.66) | -| 1,000,000 | 5 | 1.28 ( 2.96) | 1.6 ( 2.64) | .97 ( 4.38) | -| 1,000,000 | 10 | 1.19 ( 1.48) | .886 ( 1.44) | .932 ( 2.55) | -| 1,000,000 | 20 | .792 ( .741) | .571 ( .753) | .909 ( 1.39) | -| 1,000,000 | 30 | .734 ( .494) | .608 ( .51) | 1.04 ( .957) | -| 1,000,000 | 40 | .462 ( .37) | .306 ( .386) | .692 ( .729) | +| 1,000,000 | 2 | 2.23 ( 7.41) | 2 ( 5.27) | 1.93 ( 7.66) | +| 1,000,000 | 5 | 1.52 ( 2.96) | 1.41 ( 2.64) | 1.15 ( 4.38) | +| 1,000,000 | 10 | 1.1 ( 1.48) | 1.06 ( 1.44) | 1.23 ( 2.55) | +| 1,000,000 | 20 | .804 ( .741) | .724 ( .753) | .88 ( 1.39) | +| 1,000,000 | 30 | .848 ( .494) | .748 ( .51) | .788 ( .957) | +| 1,000,000 | 40 | .534 ( .37) | .492 ( .386) | .619 ( .729) | | ------------ | ---- | ------------- | --------------- | ---------------------- | -| 10,000,000 | 2 | 2.28 ( 8.56) | 1.8 ( 6.04) | 1.74 ( 8.81) | -| 10,000,000 | 5 | 1.33 ( 3.42) | 1.31 ( 3.02) | 1.69 ( 5.03) | -| 10,000,000 | 10 | .905 ( 1.71) | .885 ( 1.65) | 1.36 ( 2.94) | -| 10,000,000 | 20 | .782 ( .856) | .681 ( .863) | .978 ( 1.6) | -| 10,000,000 | 30 | .637 ( .571) | .865 ( .584) | .681 ( 1.1) | -| 10,000,000 | 40 | .376 ( .428) | .729 ( .442) | .573 ( .839) | +| 10,000,000 | 2 | 1.91 ( 8.56) | 1.81 ( 6.04) | 1.83 ( 8.81) | +| 10,000,000 | 5 | 1.36 ( 3.42) | 1.35 ( 3.02) | 1.4 ( 5.03) | +| 10,000,000 | 10 | 1.02 ( 1.71) | 1.03 ( 1.65) | .975 ( 2.94) | +| 10,000,000 | 20 | .629 ( .856) | .697 ( .863) | .724 ( 1.6) | +| 10,000,000 | 30 | .556 ( .571) | .571 ( .584) | .914 ( 1.1) | +| 10,000,000 | 40 | .443 ( .428) | .462 ( .442) | .578 ( .839) | Testing whether gquantiles method switch code is sane for cutoffs. The table shows the actual ratio between method 1 and method 2 vs the @@ -14990,26 +14944,26 @@ I think 'far from one' is a deviation of 0.2 or more. | N | cutoffs | pctile | pctile, binfreq | pctile, binfreq, xtile | | ------------ | ------- | ------------- | --------------- | ---------------------- | -| 100,000 | 2 | 1.71 ( 12.5) | .48 ( 10.4) | 1.41 ( 20) | -| 100,000 | 50 | 1.46 ( 12.5) | 1.24 ( 2.22) | 1.25 ( 4.27) | -| 100,000 | 100 | 1.36 ( 12.5) | 1.08 ( 1.22) | .851 ( 2.34) | -| 100,000 | 200 | 1.32 ( 12.5) | 1.38 ( .64) | .873 ( 1.23) | -| 100,000 | 500 | 2.4 ( 12.5) | .8 ( .264) | .417 ( .509) | -| 100,000 | 1000 | 1.19 ( 12.5) | .803 ( .134) | .643 ( .257) | +| 100,000 | 2 | 1.47 ( 12.5) | 1.46 ( 10.4) | 1.65 ( 20) | +| 100,000 | 50 | 1.22 ( 12.5) | 1.18 ( 2.22) | 1.91 ( 4.27) | +| 100,000 | 100 | 2.27 ( 12.5) | 1.86 ( 1.22) | 1.31 ( 2.34) | +| 100,000 | 200 | 1.46 ( 12.5) | 1.07 ( .64) | 1.06 ( 1.23) | +| 100,000 | 500 | 1.71 ( 12.5) | .8 ( .264) | .708 ( .509) | +| 100,000 | 1000 | 1.38 ( 12.5) | .545 ( .134) | .444 ( .257) | | ------------ | ------- | ------------- | --------------- | ---------------------- | -| 1,000,000 | 2 | 1.58 ( 14.8) | 1.26 ( 12.2) | 1.64 ( 23.6) | -| 1,000,000 | 50 | 2.52 ( 14.8) | 1.59 ( 2.59) | 1.14 ( 5.02) | -| 1,000,000 | 100 | 1.63 ( 14.8) | 1.42 ( 1.42) | 1.28 ( 2.76) | -| 1,000,000 | 200 | 3.31 ( 14.8) | .929 ( .75) | 1.08 ( 1.45) | -| 1,000,000 | 500 | 1.66 ( 14.8) | .693 ( .31) | .753 ( .599) | -| 1,000,000 | 1000 | 1.6 ( 14.8) | .388 ( .156) | .472 ( .303) | +| 1,000,000 | 2 | 2.8 ( 14.8) | 1.69 ( 12.2) | 2.84 ( 23.6) | +| 1,000,000 | 50 | 2.12 ( 14.8) | 1.47 ( 2.59) | 1.7 ( 5.02) | +| 1,000,000 | 100 | 2.45 ( 14.8) | 1.34 ( 1.42) | 1.46 ( 2.76) | +| 1,000,000 | 200 | 2.5 ( 14.8) | 1.05 ( .75) | 1.16 ( 1.45) | +| 1,000,000 | 500 | 1.94 ( 14.8) | .606 ( .31) | .699 ( .599) | +| 1,000,000 | 1000 | 2.57 ( 14.8) | .365 ( .156) | .399 ( .303) | | ------------ | ------- | ------------- | --------------- | ---------------------- | -| 10,000,000 | 2 | 2 ( 17.1) | 1.52 ( 13.9) | 1.3 ( 27.1) | -| 10,000,000 | 50 | 2.38 ( 17.1) | 1.23 ( 2.97) | 1.77 ( 5.78) | -| 10,000,000 | 100 | 2.14 ( 17.1) | 1.5 ( 1.63) | 1.64 ( 3.17) | -| 10,000,000 | 200 | 2.23 ( 17.1) | 1.03 ( .859) | 1.16 ( 1.67) | -| 10,000,000 | 500 | 2.55 ( 17.1) | .648 ( .355) | .663 ( .69) | -| 10,000,000 | 1000 | 2.05 ( 17.1) | .29 ( .179) | .557 ( .349) | +| 10,000,000 | 2 | 1.64 ( 17.1) | 1.54 ( 13.9) | 1.76 ( 27.1) | +| 10,000,000 | 50 | 2.46 ( 17.1) | 1.57 ( 2.97) | 1.62 ( 5.78) | +| 10,000,000 | 100 | 2.47 ( 17.1) | 1.4 ( 1.63) | 1.49 ( 3.17) | +| 10,000,000 | 200 | 2.38 ( 17.1) | 1.26 ( .859) | 1.1 ( 1.67) | +| 10,000,000 | 500 | 2.44 ( 17.1) | .712 ( .355) | .784 ( .69) | +| 10,000,000 | 1000 | 2.77 ( 17.1) | .418 ( .179) | .48 ( .349) | -------------------------------------------------------------------------------- gquantiles_switch_sanity (no duplicates) @@ -15029,26 +14983,26 @@ I think 'far from one' is a deviation of 0.2 or more. | N | nq | pctile | pctile, binfreq | pctile, binfreq, xtile | | ------------ | ---- | ------------- | --------------- | ---------------------- | -| 100,000 | 2 | 1.76 ( 6.26) | 2 ( 4.5) | 2.24 ( 6.51) | -| 100,000 | 5 | 1.6 ( 2.5) | 1.57 ( 2.25) | 1.81 ( 3.72) | -| 100,000 | 10 | 1.39 ( 1.25) | 2 ( 1.23) | 1.48 ( 2.17) | -| 100,000 | 20 | .8 ( .626) | 1.28 ( .643) | .958 ( 1.18) | -| 100,000 | 30 | 1.16 ( .417) | 1.03 ( .436) | 1.02 ( .813) | -| 100,000 | 40 | .905 ( .313) | .75 ( .33) | .667 ( .62) | +| 100,000 | 2 | 2 ( 6.26) | 3 ( 4.5) | 2.2 ( 6.51) | +| 100,000 | 5 | 2.5 ( 2.5) | 1.8 ( 2.25) | 1.83 ( 3.72) | +| 100,000 | 10 | 1.75 ( 1.25) | 1.82 ( 1.23) | 1.59 ( 2.17) | +| 100,000 | 20 | 1.1 ( .626) | 1.27 ( .643) | 1.28 ( 1.18) | +| 100,000 | 30 | 1.54 ( .417) | 1.27 ( .436) | 1.19 ( .813) | +| 100,000 | 40 | .822 ( .313) | .757 ( .33) | .857 ( .62) | | ------------ | ---- | ------------- | --------------- | ---------------------- | -| 1,000,000 | 2 | 3.19 ( 7.41) | 2.91 ( 5.27) | 3.17 ( 7.66) | -| 1,000,000 | 5 | 2.54 ( 2.96) | 2.06 ( 2.64) | 2.13 ( 4.38) | -| 1,000,000 | 10 | 1.67 ( 1.48) | 1.68 ( 1.44) | 1.75 ( 2.55) | -| 1,000,000 | 20 | 1.14 ( .741) | 1.15 ( .753) | 1.36 ( 1.39) | -| 1,000,000 | 30 | 1.5 ( .494) | 1.19 ( .51) | 1.12 ( .957) | -| 1,000,000 | 40 | 1.07 ( .37) | .865 ( .386) | 1.03 ( .729) | +| 1,000,000 | 2 | 3.66 ( 7.41) | 3.07 ( 5.27) | 3.66 ( 7.66) | +| 1,000,000 | 5 | 1.5 ( 2.96) | 3.17 ( 2.64) | 2.48 ( 4.38) | +| 1,000,000 | 10 | 2.16 ( 1.48) | 2.07 ( 1.44) | 1.89 ( 2.55) | +| 1,000,000 | 20 | 1.37 ( .741) | 1.19 ( .753) | 1.15 ( 1.39) | +| 1,000,000 | 30 | 1.87 ( .494) | 1.42 ( .51) | 1.51 ( .957) | +| 1,000,000 | 40 | 1.08 ( .37) | .984 ( .386) | 1.15 ( .729) | | ------------ | ---- | ------------- | --------------- | ---------------------- | -| 10,000,000 | 2 | 8.91 ( 8.56) | 3.9 ( 6.04) | 3.25 ( 8.81) | -| 10,000,000 | 5 | 3.88 ( 3.42) | 4.59 ( 3.02) | 2.4 ( 5.03) | -| 10,000,000 | 10 | 2.22 ( 1.71) | 1.2 ( 1.65) | 2.79 ( 2.94) | -| 10,000,000 | 20 | 1.58 ( .856) | 1.84 ( .863) | 1.52 ( 1.6) | -| 10,000,000 | 30 | 1.77 ( .571) | 1.44 ( .584) | 1.52 ( 1.1) | -| 10,000,000 | 40 | .625 ( .428) | .911 ( .442) | 1.31 ( .839) | +| 10,000,000 | 2 | 5.5 ( 8.56) | 5.23 ( 6.04) | 3.27 ( 8.81) | +| 10,000,000 | 5 | 4.37 ( 3.42) | 3.78 ( 3.02) | 3.6 ( 5.03) | +| 10,000,000 | 10 | 1.77 ( 1.71) | 1.77 ( 1.65) | 2.08 ( 2.94) | +| 10,000,000 | 20 | 1.58 ( .856) | 1.91 ( .863) | 1.75 ( 1.6) | +| 10,000,000 | 30 | 1.9 ( .571) | 1.69 ( .584) | 1.93 ( 1.1) | +| 10,000,000 | 40 | 1.18 ( .428) | .827 ( .442) | 1.21 ( .839) | Testing whether gquantiles method switch code is sane for cutoffs. The table shows the actual ratio between method 1 and method 2 vs the @@ -15064,26 +15018,26 @@ I think 'far from one' is a deviation of 0.2 or more. | N | cutoffs | pctile | pctile, binfreq | pctile, binfreq, xtile | | ------------ | ------- | ------------- | --------------- | ---------------------- | -| 100,000 | 2 | 1.95 ( 12.5) | .567 ( 10.4) | 1.55 ( 20) | -| 100,000 | 50 | 2.43 ( 12.5) | 1.41 ( 2.22) | 1.09 ( 4.27) | -| 100,000 | 100 | 1.59 ( 12.5) | 2.4 ( 1.22) | 1.59 ( 2.34) | -| 100,000 | 200 | 1.93 ( 12.5) | 1 ( .64) | 1 ( 1.23) | -| 100,000 | 500 | 1.52 ( 12.5) | 1.55 ( .264) | 1.06 ( .509) | -| 100,000 | 1000 | 1.59 ( 12.5) | .475 ( .134) | .789 ( .257) | +| 100,000 | 2 | 2.71 ( 12.5) | .556 ( 10.4) | 1.76 ( 20) | +| 100,000 | 50 | 2.15 ( 12.5) | 1.58 ( 2.22) | 1.18 ( 4.27) | +| 100,000 | 100 | 2.15 ( 12.5) | 1.61 ( 1.22) | 1.17 ( 2.34) | +| 100,000 | 200 | 1.93 ( 12.5) | 1.4 ( .64) | 1.48 ( 1.23) | +| 100,000 | 500 | 2 ( 12.5) | 1 ( .264) | 1.06 ( .509) | +| 100,000 | 1000 | 2 ( 12.5) | .7 ( .134) | .746 ( .257) | | ------------ | ------- | ------------- | --------------- | ---------------------- | -| 1,000,000 | 2 | 2.08 ( 14.8) | 1.17 ( 12.2) | 1.7 ( 23.6) | -| 1,000,000 | 50 | 3.33 ( 14.8) | 2.39 ( 2.59) | 2.34 ( 5.02) | -| 1,000,000 | 100 | 2.82 ( 14.8) | 1.87 ( 1.42) | 1.83 ( 2.76) | -| 1,000,000 | 200 | 2.8 ( 14.8) | 2.29 ( .75) | 1.7 ( 1.45) | -| 1,000,000 | 500 | 3.16 ( 14.8) | 1.19 ( .31) | 1.13 ( .599) | -| 1,000,000 | 1000 | 2.38 ( 14.8) | 1.08 ( .156) | .418 ( .303) | +| 1,000,000 | 2 | 2.81 ( 14.8) | 2.75 ( 12.2) | 2.42 ( 23.6) | +| 1,000,000 | 50 | 2.64 ( 14.8) | 1.97 ( 2.59) | 1.88 ( 5.02) | +| 1,000,000 | 100 | 2.89 ( 14.8) | 2.18 ( 1.42) | 1.73 ( 2.76) | +| 1,000,000 | 200 | 2.69 ( 14.8) | 1.64 ( .75) | 1.58 ( 1.45) | +| 1,000,000 | 500 | 2.02 ( 14.8) | 1.25 ( .31) | 1.12 ( .599) | +| 1,000,000 | 1000 | 2.45 ( 14.8) | .79 ( .156) | .779 ( .303) | | ------------ | ------- | ------------- | --------------- | ---------------------- | -| 10,000,000 | 2 | 2.93 ( 17.1) | 2.45 ( 13.9) | 4.01 ( 27.1) | -| 10,000,000 | 50 | 5.72 ( 17.1) | 3.52 ( 2.97) | 3.17 ( 5.78) | -| 10,000,000 | 100 | 5.69 ( 17.1) | 2.8 ( 1.63) | 3.58 ( 3.17) | -| 10,000,000 | 200 | 5.59 ( 17.1) | 2.22 ( .859) | 2.47 ( 1.67) | -| 10,000,000 | 500 | 4.85 ( 17.1) | 1.06 ( .355) | 2.18 ( .69) | -| 10,000,000 | 1000 | 1.79 ( 17.1) | .908 ( .179) | 1.05 ( .349) | +| 10,000,000 | 2 | 6.48 ( 17.1) | 2.92 ( 13.9) | 3.23 ( 27.1) | +| 10,000,000 | 50 | 5.99 ( 17.1) | 3.58 ( 2.97) | 3.18 ( 5.78) | +| 10,000,000 | 100 | 5.72 ( 17.1) | 2.73 ( 1.63) | 2.44 ( 3.17) | +| 10,000,000 | 200 | 5.06 ( 17.1) | 2.21 ( .859) | 2.45 ( 1.67) | +| 10,000,000 | 500 | 5.49 ( 17.1) | 1.22 ( .355) | 1.34 ( .69) | +| 10,000,000 | 1000 | 4.85 ( 17.1) | .793 ( .179) | .844 ( .349) | @@ -15106,12 +15060,12 @@ Compare xtile | egenmisc | | | | astile | fastxtile | gquantiles | ratio (a/g) | ratio (f/g) | varlist ------ | --------- | ---------- | ----------- | ----------- | ------- - .021 | .054 | .008 | 2.63 | 6.75 | str_12 - .023 | .035 | .01 | 2.3 | 3.5 | str_12 str_32 - .02 | .034 | .007 | 2.86 | 4.86 | double1 - .021 | .033 | .007 | 3 | 4.71 | double1 double2 - .02 | .032 | .007 | 2.86 | 4.57 | int1 - .02 | .034 | .009 | 2.22 | 3.78 | int1 int2 + .021 | .031 | .008 | 2.63 | 3.88 | str_12 + .022 | .033 | .009 | 2.44 | 3.67 | str_12 str_32 + .02 | .032 | .007 | 2.86 | 4.57 | double1 + .02 | .032 | .008 | 2.5 | 4 | double1 double2 + .022 | .042 | .007 | 3.14 | 6 | int1 + .021 | .033 | .009 | 2.33 | 3.67 | int1 int2 @@ -15133,16 +15087,16 @@ Compare xtile | | egenmisc | | | N | astile | fastxtile | gquantiles | ratio (a/g) | ratio (f/g) ------------ | ------ | --------- | ---------- | ----------- | ----------- - 1,000 | .006 | .007 | .005 | 1.2 | 1.4 - 2,000 | .006 | .008 | .006 | 1 | 1.33 - 3,000 | .006 | .01 | .005 | 1.2 | 2 - 4,000 | .008 | .014 | .006 | 1.33 | 2.33 - 5,000 | .017 | .013 | .011 | 1.55 | 1.18 - 6,000 | .011 | .013 | .007 | 1.57 | 1.86 - 7,000 | .012 | .015 | .007 | 1.71 | 2.14 - 8,000 | .013 | .016 | .007 | 1.86 | 2.29 - 9,000 | .014 | .018 | .007 | 2 | 2.57 - 10,000 | .016 | .019 | .008 | 2 | 2.38 + 1,000 | .005 | .007 | .005 | 1 | 1.4 + 2,000 | .006 | .008 | .005 | 1.2 | 1.6 + 3,000 | .006 | .009 | .006 | 1 | 1.5 + 4,000 | .008 | .01 | .006 | 1.33 | 1.67 + 5,000 | .009 | .011 | .005 | 1.8 | 2.2 + 6,000 | .01 | .012 | .006 | 1.67 | 2 + 7,000 | .011 | .013 | .006 | 1.83 | 2.17 + 8,000 | .013 | .016 | .008 | 1.63 | 2 + 9,000 | .015 | .018 | .009 | 1.67 | 2 + 10,000 | .016 | .02 | .007 | 2.29 | 2.86 @@ -15166,15 +15120,15 @@ Compare xtile nq | astile | fastxtile | gquantiles | ratio (a/g) | ratio (f/g) ------ | ------ | --------- | ---------- | ----------- | ----------- 2 | .018 | .02 | .007 | 2.57 | 2.86 - 4 | .019 | .023 | .007 | 2.71 | 3.29 - 6 | .019 | .028 | .007 | 2.71 | 4 - 8 | .02 | .032 | .007 | 2.86 | 4.57 - 10 | .023 | .034 | .007 | 3.29 | 4.86 - 12 | .021 | .037 | .007 | 3 | 5.29 - 14 | .021 | .039 | .007 | 3 | 5.57 - 16 | .022 | .042 | .007 | 3.14 | 6 - 18 | .021 | .045 | .007 | 3 | 6.43 - 20 | .022 | .047 | .007 | 3.14 | 6.71 + 4 | .018 | .023 | .007 | 2.57 | 3.29 + 6 | .019 | .026 | .007 | 2.71 | 3.71 + 8 | .019 | .031 | .007 | 2.71 | 4.43 + 10 | .025 | .036 | .007 | 3.57 | 5.14 + 12 | .02 | .038 | .007 | 2.86 | 5.43 + 14 | .024 | .04 | .013 | 1.85 | 3.08 + 16 | .022 | .052 | .007 | 3.14 | 7.43 + 18 | .022 | .059 | .009 | 2.44 | 6.56 + 20 | .022 | .046 | .007 | 3.14 | 6.57 Compare _pctile @@ -15185,14 +15139,14 @@ Compare _pctile _pctile | gquantiles | ratio (_/g) | varlist ------- | ---------- | ----------- | ------- 0 | .004 | 0 | double1 (~ U(0, 1000), no missings, groups of size 10) - .001 | .003 | .333 | double3 (~ N(10, 5), many missings, groups of size 10) + 0 | .003 | 0 | double3 (~ N(10, 5), many missings, groups of size 10) 0 | .004 | 0 | ru (~ N(0, 100), few missings, unique) - .001 | .004 | .25 | int1 (discrete (no missings, many groups)) - 0 | .004 | 0 | int3 (discrete (many missings, few groups)) + .001 | .003 | .333 | int1 (discrete (no missings, many groups)) + .001 | .003 | .333 | int3 (discrete (many missings, few groups)) 0 | .004 | 0 | ix (discrete (few missings, unique)) - 0 | .004 | 0 | int1^2 + 3 * double1 () - 0 | .005 | 0 | log(double1) + 2 * int1 () - .001 | .004 | .25 | exp(double3) + int1 * double3 () + 0 | .003 | 0 | int1^2 + 3 * double1 () + 0 | .004 | 0 | log(double1) + 2 * int1 () + 0 | .004 | 0 | exp(double3) + int1 * double3 () Compare _pctile @@ -15202,14 +15156,14 @@ Compare _pctile - obs: 1,000 _pctile | gquantiles | ratio (_/g) | varlist ------- | ---------- | ----------- | ------- - 0 | .004 | 0 | double1 (~ U(0, 1000), no missings, groups of size 10) - 0 | .006 | 0 | double3 (~ N(10, 5), many missings, groups of size 10) - .001 | .006 | .167 | ru (~ N(0, 100), few missings, unique) - .001 | .006 | .167 | int1 (discrete (no missings, many groups)) - 0 | .004 | 0 | int3 (discrete (many missings, few groups)) - 0 | .004 | 0 | ix (discrete (few missings, unique)) - 0 | .004 | 0 | int1^2 + 3 * double1 () - 0 | .004 | 0 | log(double1) + 2 * int1 () + 0 | .003 | 0 | double1 (~ U(0, 1000), no missings, groups of size 10) + 0 | .003 | 0 | double3 (~ N(10, 5), many missings, groups of size 10) + 0 | .004 | 0 | ru (~ N(0, 100), few missings, unique) + 0 | .004 | 0 | int1 (discrete (no missings, many groups)) + 0 | .003 | 0 | int3 (discrete (many missings, few groups)) + .001 | .003 | .333 | ix (discrete (few missings, unique)) + .001 | .003 | .333 | int1^2 + 3 * double1 () + 0 | .003 | 0 | log(double1) + 2 * int1 () 0 | .004 | 0 | exp(double3) + int1 * double3 () @@ -15220,18 +15174,18 @@ Compare xtile - obs: 1,000 xtile | fastxtile | gquantiles | ratio (x/g) | ratio (f/g) | varlist ----- | --------- | ---------- | ----------- | ----------- | ------- - 6.0e-03 | .002 | .003 | 2 | .667 | double1 (~ U(0, 1000), no missings, groups of size 10) - 6.0e-03 | .002 | .004 | 1.5 | .5 | double3 (~ N(10, 5), many missings, groups of size 10) + 5.0e-03 | .002 | .004 | 1.25 | .5 | double1 (~ U(0, 1000), no missings, groups of size 10) + 4.0e-03 | .001 | .004 | 1 | .25 | double3 (~ N(10, 5), many missings, groups of size 10) 5.0e-03 | .002 | .004 | 1.25 | .5 | ru (~ N(0, 100), few missings, unique) - 5.0e-03 | .002 | .004 | 1.25 | .5 | int1 (discrete (no missings, many groups)) - 5.0e-03 | .002 | .003 | 1.67 | .667 | int3 (discrete (many missings, few groups)) + 5.0e-03 | .002 | .003 | 1.67 | .667 | int1 (discrete (no missings, many groups)) + 4.0e-03 | .002 | .004 | 1 | .5 | int3 (discrete (many missings, few groups)) 5.0e-03 | .002 | .004 | 1.25 | .5 | ix (discrete (few missings, unique)) (note: fastxtile failed where xtile succeeded) - 5.0e-03 | . | .005 | 1 | . | int1^2 + 3 * double1 () + 5.0e-03 | . | .004 | 1.25 | . | int1^2 + 3 * double1 () (note: fastxtile failed where xtile succeeded) - 6.0e-03 | . | .004 | 1.5 | . | log(double1) + 2 * int1 () + 5.0e-03 | . | .004 | 1.25 | . | log(double1) + 2 * int1 () (note: fastxtile failed where xtile succeeded) - 6.0e-03 | . | .004 | 1.5 | . | exp(double3) + int1 * double3 () + 5.0e-03 | . | .004 | 1.25 | . | exp(double3) + int1 * double3 () Compare pctile @@ -15241,13 +15195,13 @@ Compare pctile - obs: 1,000 pctile | gquantiles | ratio (p/g) | varlist ------ | ---------- | ----------- | ------- - .002 | .003 | .667 | double1 (~ U(0, 1000), no missings, groups of size 10) - .002 | .004 | .5 | double3 (~ N(10, 5), many missings, groups of size 10) - .002 | .003 | .667 | ru (~ N(0, 100), few missings, unique) - .002 | .004 | .5 | int1 (discrete (no missings, many groups)) - .002 | .003 | .667 | int3 (discrete (many missings, few groups)) - .001 | .004 | .25 | ix (discrete (few missings, unique)) - .002 | .004 | .5 | int1^2 + 3 * double1 () + .002 | .004 | .5 | double1 (~ U(0, 1000), no missings, groups of size 10) + .002 | .003 | .667 | double3 (~ N(10, 5), many missings, groups of size 10) + .001 | .004 | .25 | ru (~ N(0, 100), few missings, unique) + .002 | .003 | .667 | int1 (discrete (no missings, many groups)) + .002 | .004 | .5 | int3 (discrete (many missings, few groups)) + .002 | .003 | .667 | ix (discrete (few missings, unique)) + .002 | .005 | .4 | int1^2 + 3 * double1 () .002 | .004 | .5 | log(double1) + 2 * int1 () .002 | .004 | .5 | exp(double3) + int1 * double3 () @@ -15264,18 +15218,18 @@ Compare pctile Benchmark vs contract, obs = 100,000, J = 1,000 (in seconds) contract | gcontract | ratio (c/g) | varlist -------- | --------- | ----------- | ------- - .189 | .045 | 4.2 | str_12 - .194 | .055 | 3.53 | str_12 str_32 - .226 | .062 | 3.65 | str_12 str_32 str_4 - .152 | .035 | 4.34 | double1 - .202 | .04 | 5.05 | double1 double2 - .156 | .045 | 3.47 | double1 double2 double3 - .155 | .033 | 4.7 | int1 - .158 | .037 | 4.27 | int1 int2 - .222 | .091 | 2.44 | int1 int2 int3 - .217 | .072 | 3.01 | int1 str_32 double1 - .217 | .068 | 3.19 | int1 str_32 double1 int2 str_12 double2 - .289 | .1 | 2.89 | int1 str_32 double1 int2 str_12 double2 int3 str_4 double3 + .18 | .042 | 4.29 | str_12 + .19 | .055 | 3.45 | str_12 str_32 + .19 | .06 | 3.17 | str_12 str_32 str_4 + .145 | .035 | 4.14 | double1 + .157 | .115 | 1.37 | double1 double2 + .192 | .048 | 4 | double1 double2 double3 + .124 | .032 | 3.88 | int1 + .145 | .036 | 4.03 | int1 int2 + .162 | .04 | 4.05 | int1 int2 int3 + .196 | .056 | 3.5 | int1 str_32 double1 + .195 | .08 | 2.44 | int1 str_32 double1 int2 str_12 double2 + .322 | .088 | 3.66 | int1 str_32 double1 int2 str_12 double2 int3 str_4 double3 -------------------------------------------------------------------------------- bench_contract, oncollision(error) @@ -15295,18 +15249,18 @@ bench_contract, oncollision(error) Benchmark vs egen, obs = 100,000, J = 1,000 (in seconds) egen | fegen | gegen | ratio (e/g) | ratio (f/g) | varlist ---- | ----- | ----- | ----------- | ----------- | ------- - .233 | .13 | .027 | 8.63 | 4.81 | str_12 - .289 | .165 | .038 | 7.61 | 4.34 | str_12 str_32 - .347 | .213 | .067 | 5.18 | 3.18 | str_12 str_32 str_4 - .242 | .102 | .02 | 12.1 | 5.1 | double1 - .258 | .103 | .028 | 9.21 | 3.68 | double1 double2 - .229 | .114 | .03 | 7.63 | 3.8 | double1 double2 double3 - .318 | .039 | .028 | 11.4 | 1.39 | int1 - .362 | .044 | .023 | 15.7 | 1.91 | int1 int2 - .281 | .048 | .023 | 12.2 | 2.09 | int1 int2 int3 - .23 | . | .068 | 3.38 | . | int1 str_32 double1 - .403 | . | .127 | 3.17 | . | int1 str_32 double1 int2 str_12 double2 - .566 | . | .075 | 7.55 | . | int1 str_32 double1 int2 str_12 double2 int3 str_4 double3 + .267 | .145 | .026 | 10.3 | 5.58 | str_12 + .297 | .168 | .036 | 8.25 | 4.67 | str_12 str_32 + .278 | .178 | .044 | 6.32 | 4.05 | str_12 str_32 str_4 + .218 | .087 | .02 | 10.9 | 4.35 | double1 + .244 | .101 | .041 | 5.95 | 2.46 | double1 double2 + .229 | .105 | .031 | 7.39 | 3.39 | double1 double2 double3 + .249 | .038 | .021 | 11.9 | 1.81 | int1 + .24 | .045 | .024 | 10 | 1.88 | int1 int2 + .274 | .053 | .025 | 11 | 2.12 | int1 int2 int3 + .423 | . | .037 | 11.4 | . | int1 str_32 double1 + .259 | . | .055 | 4.71 | . | int1 str_32 double1 int2 str_12 double2 + .311 | . | .068 | 4.57 | . | int1 str_32 double1 int2 str_12 double2 int3 str_4 double3 -------------------------------------------------------------------------------- bench_egen, oncollision(error) @@ -15326,35 +15280,35 @@ bench_egen, oncollision(error) Benchmark vs isid, obs = 100,000, all calls include an index to ensure uniqueness (in seconds) isid | fisid | gisid | ratio (i/g) | ratio (f/g) | varlist ---- | ----- | ----- | ----------- | ----------- | ------- - .627 | .372 | .062 | 10.1 | 6 | str_12 - .756 | .358 | .042 | 18 | 8.52 | str_12 str_32 - .824 | .323 | .11 | 7.49 | 2.94 | str_12 str_32 str_4 - .324 | .146 | .019 | 17.1 | 7.68 | double1 - .356 | .154 | .027 | 13.2 | 5.7 | double1 double2 - .359 | .188 | .028 | 12.8 | 6.71 | double1 double2 double3 - .779 | .196 | .053 | 14.7 | 3.7 | int1 - .335 | .332 | .021 | 16 | 15.8 | int1 int2 - .661 | .196 | .054 | 12.2 | 3.63 | int1 int2 int3 - .608 | . | .041 | 14.8 | . | int1 str_32 double1 - .802 | . | .047 | 17.1 | . | int1 str_32 double1 int2 str_12 double2 - .793 | . | .115 | 6.9 | . | int1 str_32 double1 int2 str_12 double2 int3 str_4 double3 + .364 | .226 | .023 | 15.8 | 9.83 | str_12 + .462 | .307 | .036 | 12.8 | 8.53 | str_12 str_32 + .446 | .32 | .028 | 15.9 | 11.4 | str_12 str_32 str_4 + .288 | .123 | .019 | 15.2 | 6.47 | double1 + .294 | .13 | .032 | 9.19 | 4.06 | double1 double2 + .304 | .136 | .027 | 11.3 | 5.04 | double1 double2 double3 + .329 | .122 | .023 | 14.3 | 5.3 | int1 + .315 | .143 | .028 | 11.3 | 5.11 | int1 int2 + .348 | .159 | .038 | 9.16 | 4.18 | int1 int2 int3 + .36 | . | .025 | 14.4 | . | int1 str_32 double1 + .543 | . | .032 | 17 | . | int1 str_32 double1 int2 str_12 double2 + .496 | . | .037 | 13.4 | . | int1 str_32 double1 int2 str_12 double2 int3 str_4 double3 Benchmark vs isid, obs = 100,000, J = 1,000 (in seconds) isid | fisid | gisid | ratio (i/g) | ratio (f/g) | varlist ---- | ----- | ----- | ----------- | ----------- | ------- - .396 | .227 | .034 | 11.6 | 6.68 | str_12 - .398 | .203 | .036 | 11.1 | 5.64 | str_12 str_32 - .342 | .249 | .043 | 7.95 | 5.79 | str_12 str_32 str_4 - .259 | .111 | .022 | 11.8 | 5.05 | double1 - .348 | .237 | .058 | 6 | 4.09 | double1 double2 - .252 | .177 | .063 | 4 | 2.81 | double1 double2 double3 - .226 | .065 | .025 | 9.04 | 2.6 | int1 - .187 | .105 | .021 | 8.9 | 5 | int1 int2 - .335 | .267 | .034 | 9.85 | 7.85 | int1 int2 int3 - .179 | . | .024 | 7.46 | . | int1 str_32 double1 - .189 | . | .039 | 4.85 | . | int1 str_32 double1 int2 str_12 double2 - .479 | . | .04 | 12 | . | int1 str_32 double1 int2 str_12 double2 int3 str_4 double3 + .15 | .101 | .016 | 9.38 | 6.31 | str_12 + .155 | .149 | .021 | 7.38 | 7.1 | str_12 str_32 + .168 | .165 | .026 | 6.46 | 6.35 | str_12 str_32 str_4 + .132 | .066 | .013 | 10.2 | 5.08 | double1 + .139 | .091 | .017 | 8.18 | 5.35 | double1 double2 + .143 | .087 | .023 | 6.22 | 3.78 | double1 double2 double3 + .129 | .032 | .011 | 11.7 | 2.91 | int1 + .151 | .041 | .016 | 9.44 | 2.56 | int1 int2 + .147 | .083 | .022 | 6.68 | 3.77 | int1 int2 int3 + .152 | . | .024 | 6.33 | . | int1 str_32 double1 + .219 | . | .031 | 7.06 | . | int1 str_32 double1 int2 str_12 double2 + .213 | . | .032 | 6.66 | . | int1 str_32 double1 int2 str_12 double2 int3 str_4 double3 -------------------------------------------------------------------------------- bench_isid, oncollision(error) @@ -15374,35 +15328,35 @@ bench_isid, oncollision(error) Benchmark vs duplicates report, obs = 100,000, J = 1,000 (in seconds) duplicates | gduplicates | ratio (g/h) | varlist ---------- | ----------- | ----------- | ------- - 1.09 | .064 | 17.1 | str_12 - 1.08 | .093 | 11.7 | str_12 str_32 - .857 | .119 | 7.2 | str_12 str_32 str_4 - .71 | .203 | 3.5 | double1 - .751 | .062 | 12.1 | double1 double2 - .961 | .129 | 7.45 | double1 double2 double3 - 1.68 | .055 | 30.5 | int1 - .727 | .055 | 13.2 | int1 int2 - .975 | .067 | 14.6 | int1 int2 int3 - .727 | .072 | 10.1 | int1 str_32 double1 - .828 | .263 | 3.15 | int1 str_32 double1 int2 str_12 double2 - 1.76 | .294 | 6 | int1 str_32 double1 int2 str_12 double2 int3 str_4 double3 + .722 | .06 | 12 | str_12 + 1.01 | .08 | 12.6 | str_12 str_32 + 1.32 | .09 | 14.7 | str_12 str_32 str_4 + .786 | .052 | 15.1 | double1 + .944 | .078 | 12.1 | double1 double2 + .694 | .09 | 7.71 | double1 double2 double3 + 1.01 | .091 | 11.1 | int1 + .955 | .068 | 14 | int1 int2 + .942 | .074 | 12.7 | int1 int2 int3 + .695 | .094 | 7.39 | int1 str_32 double1 + .792 | .094 | 8.43 | int1 str_32 double1 int2 str_12 double2 + 1.1 | .152 | 7.26 | int1 str_32 double1 int2 str_12 double2 int3 str_4 double3 Benchmark vs duplicates drop, obs = 100,000, J = 1,000 (in seconds; output compared via cf) duplicates | gduplicates | ratio (g/h) | varlist ---------- | ----------- | ----------- | ------- - .906 | .09 | 10.1 | str_12 - 1.2 | .041 | 29.2 | str_12 str_32 - .333 | .047 | 7.09 | str_12 str_32 str_4 - .247 | .038 | 6.5 | double1 - .271 | .028 | 9.68 | double1 double2 - .304 | .027 | 11.3 | double1 double2 double3 - .24 | .024 | 10 | int1 - .516 | .03 | 17.2 | int1 int2 - .271 | .027 | 10 | int1 int2 int3 - .315 | .041 | 7.68 | int1 str_32 double1 - .522 | .049 | 10.7 | int1 str_32 double1 int2 str_12 double2 - .402 | .059 | 6.81 | int1 str_32 double1 int2 str_12 double2 int3 str_4 double3 + .542 | .035 | 15.5 | str_12 + .519 | .049 | 10.6 | str_12 str_32 + .587 | .053 | 11.1 | str_12 str_32 str_4 + .448 | .028 | 16 | double1 + .64 | .051 | 12.5 | double1 double2 + .561 | .044 | 12.8 | double1 double2 double3 + .912 | .085 | 10.7 | int1 + 1.15 | .065 | 17.6 | int1 int2 + 1.41 | .07 | 20.1 | int1 int2 int3 + 1.59 | .104 | 15.3 | int1 str_32 double1 + .959 | .134 | 7.16 | int1 str_32 double1 int2 str_12 double2 + 1.11 | .137 | 8.08 | int1 str_32 double1 int2 str_12 double2 int3 str_4 double3 -------------------------------------------------------------------------------- compare_duplicates, oncollision(error) benchmode @@ -15422,15 +15376,15 @@ compare_duplicates, oncollision(error) benchmode Benchmark vs levelsof, obs = 100,000, J = 100 (in seconds) levelsof | flevelsof | glevelsof | ratio (l/g) | ratio (f/g) | varlist -------- | --------- | --------- | ----------- | ----------- | ------- - .166 | .162 | .018 | 9.22 | 9 | str_12 - .196 | .299 | .046 | 4.26 | 6.5 | str_32 - .399 | .178 | .017 | 23.5 | 10.5 | str_4 - .049 | .046 | .012 | 4.08 | 3.83 | double1 - .042 | .043 | .013 | 3.23 | 3.31 | double2 - .032 | .034 | .012 | 2.67 | 2.83 | double3 - .043 | .042 | .011 | 3.91 | 3.82 | int1 - .017 | .019 | .01 | 1.7 | 1.9 | int2 - .021 | .035 | .012 | 1.75 | 2.92 | int3 + .418 | .515 | .112 | 3.73 | 4.6 | str_12 + .453 | .347 | .079 | 5.73 | 4.39 | str_32 + .205 | .251 | .018 | 11.4 | 13.9 | str_4 + .06 | .064 | .013 | 4.62 | 4.92 | double1 + .054 | .044 | .014 | 3.86 | 3.14 | double2 + .043 | .036 | .016 | 2.69 | 2.25 | double3 + .058 | .072 | .023 | 2.52 | 3.13 | int1 + .023 | .017 | .01 | 2.3 | 1.7 | int2 + .02 | .02 | .01 | 2 | 2 | int3 -------------------------------------------------------------------------------- bench_levelsof, oncollision(error) @@ -15450,35 +15404,35 @@ bench_levelsof, oncollision(error) Benchmark toplevelsof vs contract (unsorted), obs = 100,000, J = 1,000 (in seconds) gcontract | gtoplevelsof | ratio (c/t) | varlist --------- | ------------ | ----------- | ------- - .038 | .024 | 1.58 | str_12 - .05 | .033 | 1.52 | str_12 str_32 - .052 | .038 | 1.37 | str_12 str_32 str_4 - .031 | .015 | 2.07 | double1 - .032 | .019 | 1.68 | double1 double2 - .032 | .018 | 1.78 | double1 double2 double3 - .028 | .012 | 2.33 | int1 - .03 | .027 | 1.11 | int1 int2 - .038 | .019 | 2 | int1 int2 int3 - .045 | .03 | 1.5 | int1 str_32 double1 - .057 | .041 | 1.39 | int1 str_32 double1 int2 str_12 double2 - .064 | .051 | 1.25 | int1 str_32 double1 int2 str_12 double2 int3 str_4 double3 + .036 | .021 | 1.71 | str_12 + .075 | .032 | 2.34 | str_12 str_32 + .051 | .037 | 1.38 | str_12 str_32 str_4 + .029 | .014 | 2.07 | double1 + .033 | .026 | 1.27 | double1 double2 + .106 | .024 | 4.42 | double1 double2 double3 + .031 | .012 | 2.58 | int1 + .029 | .016 | 1.81 | int1 int2 + .034 | .018 | 1.89 | int1 int2 int3 + .044 | .03 | 1.47 | int1 str_32 double1 + .06 | .052 | 1.15 | int1 str_32 double1 int2 str_12 double2 + .065 | .049 | 1.33 | int1 str_32 double1 int2 str_12 double2 int3 str_4 double3 Benchmark toplevelsof vs contract (plus preserve, sort, keep, restore), obs = 100,000, J = 1,000 (in seconds) gcontract | gtoplevelsof | ratio (c/t) | varlist --------- | ------------ | ----------- | ------- - .053 | .044 | 1.2 | str_12 - .187 | .047 | 3.98 | str_12 str_32 - .075 | .037 | 2.03 | str_12 str_32 str_4 - .045 | .015 | 3 | double1 - .05 | .017 | 2.94 | double1 double2 - .082 | .027 | 3.04 | double1 double2 double3 - .059 | .013 | 4.54 | int1 - .048 | .015 | 3.2 | int1 int2 - .05 | .018 | 2.78 | int1 int2 int3 - .062 | .029 | 2.14 | int1 str_32 double1 - .076 | .042 | 1.81 | int1 str_32 double1 int2 str_12 double2 - .096 | .051 | 1.88 | int1 str_32 double1 int2 str_12 double2 int3 str_4 double3 + .053 | .038 | 1.39 | str_12 + .085 | .077 | 1.1 | str_12 str_32 + .216 | .097 | 2.23 | str_12 str_32 str_4 + .112 | .043 | 2.6 | double1 + .156 | .07 | 2.23 | double1 double2 + .187 | .044 | 4.25 | double1 double2 double3 + .125 | .033 | 3.79 | int1 + .112 | .043 | 2.6 | int1 int2 + .169 | .071 | 2.38 | int1 int2 int3 + .142 | .089 | 1.6 | int1 str_32 double1 + .242 | .135 | 1.79 | int1 str_32 double1 int2 str_12 double2 + .261 | .143 | 1.83 | int1 str_32 double1 int2 str_12 double2 int3 str_4 double3 -------------------------------------------------------------------------------- bench_toplevelsof, oncollision(error) @@ -15498,35 +15452,35 @@ bench_toplevelsof, oncollision(error) Benchmark vs unique, obs = 100,000, all calls include a unique index (in seconds) unique | funique | gunique | ratio (d/g) | ratio (u/g) | varlist ------ | ------- | ------- | ----------- | ----------- | ------- - .448 | . | .026 | 17.2 | . | str_12 - .315 | . | .035 | 9 | . | str_12 str_32 - .472 | . | .047 | 10 | . | str_12 str_32 str_4 - .267 | . | .019 | 14.1 | . | double1 - .336 | . | .019 | 17.7 | . | double1 double2 - .438 | . | .085 | 5.15 | . | double1 double2 double3 - .355 | . | .013 | 27.3 | . | int1 - .286 | . | .014 | 20.4 | . | int1 int2 - .285 | . | .018 | 15.8 | . | int1 int2 int3 - .317 | . | .034 | 9.32 | . | int1 str_32 double1 - .356 | . | .042 | 8.48 | . | int1 str_32 double1 int2 str_12 double2 - .424 | . | .049 | 8.65 | . | int1 str_32 double1 int2 str_12 double2 int3 str_4 double3 + .489 | . | .044 | 11.1 | . | str_12 + .541 | . | .074 | 7.31 | . | str_12 str_32 + .331 | . | .04 | 8.28 | . | str_12 str_32 str_4 + .292 | . | .025 | 11.7 | . | double1 + .53 | . | .086 | 6.16 | . | double1 double2 + .654 | . | .053 | 12.3 | . | double1 double2 double3 + .27 | . | .012 | 22.5 | . | int1 + .339 | . | .044 | 7.7 | . | int1 int2 + .465 | . | .018 | 25.8 | . | int1 int2 int3 + .358 | . | .048 | 7.46 | . | int1 str_32 double1 + .726 | . | .066 | 11 | . | int1 str_32 double1 int2 str_12 double2 + .433 | . | .048 | 9.02 | . | int1 str_32 double1 int2 str_12 double2 int3 str_4 double3 Benchmark vs unique, obs = 100,000, J = 1,000 (in seconds) unique | funique | gunique | ratio (u/g) | ratio (f/g) | varlist ------ | ------- | ------- | ----------- | ----------- | ------- - .163 | . | .039 | 4.18 | . | str_12 - .201 | . | .029 | 6.93 | . | str_12 str_32 - .176 | . | .041 | 4.29 | . | str_12 str_32 str_4 - .158 | . | .013 | 12.2 | . | double1 - .136 | . | .016 | 8.5 | . | double1 double2 - .154 | . | .015 | 10.3 | . | double1 double2 double3 - .123 | . | .01 | 12.3 | . | int1 - .22 | . | .019 | 11.6 | . | int1 int2 - .136 | . | .014 | 9.71 | . | int1 int2 int3 - .137 | . | .028 | 4.89 | . | int1 str_32 double1 - .177 | . | .035 | 5.06 | . | int1 str_32 double1 int2 str_12 double2 - .182 | . | .042 | 4.33 | . | int1 str_32 double1 int2 str_12 double2 int3 str_4 double3 + .148 | . | .07 | 2.11 | . | str_12 + .164 | . | .027 | 6.07 | . | str_12 str_32 + .18 | . | .034 | 5.29 | . | str_12 str_32 str_4 + .163 | . | .016 | 10.2 | . | double1 + .13 | . | .016 | 8.13 | . | double1 double2 + .131 | . | .015 | 8.73 | . | double1 double2 double3 + .144 | . | .039 | 3.69 | . | int1 + .285 | . | .055 | 5.18 | . | int1 int2 + .228 | . | .013 | 17.5 | . | int1 int2 int3 + .139 | . | .026 | 5.35 | . | int1 str_32 double1 + .162 | . | .049 | 3.31 | . | int1 str_32 double1 int2 str_12 double2 + .182 | . | .062 | 2.94 | . | int1 str_32 double1 int2 str_12 double2 int3 str_4 double3 -------------------------------------------------------------------------------- bench_unique, oncollision(error) @@ -15546,35 +15500,35 @@ bench_unique, oncollision(error) Benchmark vs distinct, obs = 100,000, all calls include a unique index (in seconds) distinct | fdistinct | gdistinct | ratio (d/g) | ratio (u/g) | varlist -------- | --------- | --------- | ----------- | ----------- | ------- - .286 | . | .039 | 7.33 | . | str_12 - .331 | . | .035 | 9.46 | . | str_12 str_32 - .361 | . | .04 | 9.03 | . | str_12 str_32 str_4 - .285 | . | .019 | 15 | . | double1 - .278 | . | .022 | 12.6 | . | double1 double2 - .332 | . | .019 | 17.5 | . | double1 double2 double3 - .26 | . | .018 | 14.4 | . | int1 - .294 | . | .014 | 21 | . | int1 int2 - .291 | . | .016 | 18.2 | . | int1 int2 int3 - .3 | . | .032 | 9.38 | . | int1 str_32 double1 - .367 | . | .044 | 8.34 | . | int1 str_32 double1 int2 str_12 double2 - .409 | . | .05 | 8.18 | . | int1 str_32 double1 int2 str_12 double2 int3 str_4 double3 + .45 | . | .026 | 17.3 | . | str_12 + .422 | . | .087 | 4.85 | . | str_12 str_32 + .378 | . | .086 | 4.4 | . | str_12 str_32 str_4 + .348 | . | .019 | 18.3 | . | double1 + .248 | . | .018 | 13.8 | . | double1 double2 + .282 | . | .07 | 4.03 | . | double1 double2 double3 + .276 | . | .013 | 21.2 | . | int1 + .269 | . | .015 | 17.9 | . | int1 int2 + .526 | . | .018 | 29.2 | . | int1 int2 int3 + .373 | . | .088 | 4.24 | . | int1 str_32 double1 + .345 | . | .041 | 8.41 | . | int1 str_32 double1 int2 str_12 double2 + .379 | . | .047 | 8.06 | . | int1 str_32 double1 int2 str_12 double2 int3 str_4 double3 Benchmark vs distinct, obs = 100,000, J = 1,000 (in seconds) distinct | fdistinct | gdistinct | ratio (u/g) | ratio (f/g) | varlist -------- | --------- | --------- | ----------- | ----------- | ------- - .161 | . | .021 | 7.67 | . | str_12 - .157 | . | .029 | 5.41 | . | str_12 str_32 - .161 | . | .032 | 5.03 | . | str_12 str_32 str_4 - .118 | . | .013 | 9.08 | . | double1 - .125 | . | .016 | 7.81 | . | double1 double2 - .16 | . | .015 | 10.7 | . | double1 double2 double3 - .138 | . | .01 | 13.8 | . | int1 - .141 | . | .016 | 8.81 | . | int1 int2 - .16 | . | .014 | 11.4 | . | int1 int2 int3 - .147 | . | .03 | 4.9 | . | int1 str_32 double1 - .179 | . | .035 | 5.11 | . | int1 str_32 double1 int2 str_12 double2 - .185 | . | .042 | 4.4 | . | int1 str_32 double1 int2 str_12 double2 int3 str_4 double3 + .244 | . | .019 | 12.8 | . | str_12 + .14 | . | .027 | 5.19 | . | str_12 str_32 + .179 | . | .041 | 4.37 | . | str_12 str_32 str_4 + .128 | . | .013 | 9.85 | . | double1 + .12 | . | .015 | 8 | . | double1 double2 + .164 | . | .015 | 10.9 | . | double1 double2 double3 + .113 | . | .01 | 11.3 | . | int1 + .121 | . | .012 | 10.1 | . | int1 int2 + .251 | . | .015 | 16.7 | . | int1 int2 int3 + .13 | . | .025 | 5.2 | . | int1 str_32 double1 + .168 | . | .036 | 4.67 | . | int1 str_32 double1 int2 str_12 double2 + .194 | . | .042 | 4.62 | . | int1 str_32 double1 int2 str_12 double2 int3 str_4 double3 -------------------------------------------------------------------------------- bench_unique, oncollision(error) distinct @@ -15585,35 +15539,35 @@ bench_unique, oncollision(error) distinct Benchmark vs gsort, obs = 10,000, J = 1,000 (in seconds; datasets are compared via cf) gsort | hashsort | ratio (g/h) | varlist ----- | -------- | ----------- | ------- - .01 | .009 | 1.11 | -str_12 - .015 | .012 | 1.25 | str_12 -str_32 - .036 | .014 | 2.57 | str_12 -str_32 str_4 - .01 | .008 | 1.25 | -double1 - .015 | .009 | 1.67 | double1 -double2 + .012 | .009 | 1.33 | -str_12 + .014 | .011 | 1.27 | str_12 -str_32 + .024 | .012 | 2 | str_12 -str_32 str_4 + 9.0e-03 | .008 | 1.13 | -double1 + .016 | .01 | 1.6 | double1 -double2 .02 | .009 | 2.22 | double1 -double2 double3 - 8.0e-03 | .008 | 1 | -int1 + 9.0e-03 | .008 | 1.13 | -int1 9.0e-03 | .01 | .9 | int1 -int2 - .017 | .01 | 1.7 | int1 -int2 int3 - .032 | .01 | 3.2 | -int1 -str_32 -double1 - .04 | .012 | 3.33 | int1 -str_32 double1 -int2 str_12 -double2 - .074 | .019 | 3.89 | int1 -str_32 double1 -int2 str_12 -double2 int3 -str_4 double3 + .017 | .009 | 1.89 | int1 -int2 int3 + .031 | .01 | 3.1 | -int1 -str_32 -double1 + .039 | .012 | 3.25 | int1 -str_32 double1 -int2 str_12 -double2 + .059 | .013 | 4.54 | int1 -str_32 double1 -int2 str_12 -double2 int3 -str_4 double3 Benchmark vs sort (stable), obs = 100,000, J = 1,000 (in seconds; datasets are compared via cf) sort | fsort | hashsort | ratio (s/h) | ratio (f/h) | varlist ---- | ----- | -------- | ----------- | ----------- | ------- - .129 | .149 | .053 | 2.43 | 2.81 | str_12 - .149 | .264 | .07 | 2.13 | 3.77 | str_12 str_32 - .153 | .23 | .073 | 2.1 | 3.15 | str_12 str_32 str_4 - .132 | .127 | .093 | 1.42 | 1.37 | double1 - .108 | .122 | .054 | 2 | 2.26 | double1 double2 - .117 | .13 | .053 | 2.21 | 2.45 | double1 double2 double3 - .1 | .083 | .079 | 1.27 | 1.05 | int1 - .13 | .087 | .072 | 1.81 | 1.21 | int1 int2 - .13 | .128 | .062 | 2.1 | 2.06 | int1 int2 int3 - .135 | . | .064 | 2.11 | . | int1 str_32 double1 - .168 | . | .092 | 1.83 | . | int1 str_32 double1 int2 str_12 double2 - .2 | . | .091 | 2.2 | . | int1 str_32 double1 int2 str_12 double2 int3 str_4 double3 + .11 | .311 | .048 | 2.29 | 6.48 | str_12 + .127 | .299 | .067 | 1.9 | 4.46 | str_12 str_32 + .188 | .314 | .089 | 2.11 | 3.53 | str_12 str_32 str_4 + .096 | .216 | .045 | 2.13 | 4.8 | double1 + .111 | .23 | .051 | 2.18 | 4.51 | double1 double2 + .12 | .233 | .054 | 2.22 | 4.31 | double1 double2 double3 + .096 | .273 | .043 | 2.23 | 6.35 | int1 + .143 | .193 | .144 | .993 | 1.34 | int1 int2 + .125 | .238 | .053 | 2.36 | 4.49 | int1 int2 int3 + .397 | . | .258 | 1.54 | . | int1 str_32 double1 + .159 | . | .097 | 1.64 | . | int1 str_32 double1 int2 str_12 double2 + .191 | . | .089 | 2.15 | . | int1 str_32 double1 int2 str_12 double2 int3 str_4 double3 -------------------------------------------------------------------------------- compare_hashsort, oncollision(error) benchmode @@ -15640,11 +15594,11 @@ Benchmark vs collapse (in seconds) collapse | fcollapse | gcollapse | ratio (c/g) | ratio (f/g) | varlist -------- | --------- | --------- | ----------- | ----------- | ------- - .274 | .113 | .051 | 5.37 | 2.22 | - .934 | .295 | .1 | 9.34 | 2.95 | str_12 str_32 str_4 - .776 | .142 | .062 | 12.5 | 2.29 | double1 double2 double3 - .76 | .172 | .09 | 8.44 | 1.91 | int1 int2 - .811 | . | .08 | 10.1 | . | int3 str_32 double1 + .32 | .12 | .051 | 6.27 | 2.35 | + .755 | .307 | .109 | 6.93 | 2.82 | str_12 str_32 str_4 + .686 | .159 | .086 | 7.98 | 1.85 | double1 double2 double3 + .72 | .119 | .064 | 11.3 | 1.86 | int1 int2 + .673 | . | .075 | 8.97 | . | int3 str_32 double1 -------------------------------------------------------------------------------- bench_collapse, oncollision(error) style(sum) vars(15) @@ -15671,11 +15625,11 @@ Benchmark vs collapse (in seconds) collapse | fcollapse | gcollapse | ratio (c/g) | ratio (f/g) | varlist -------- | --------- | --------- | ----------- | ----------- | ------- - 4.13 | .289 | .058 | 71.1 | 4.98 | - 5.86 | .328 | .09 | 65.1 | 3.64 | str_12 str_32 str_4 - 4.25 | .252 | .068 | 62.5 | 3.71 | double1 double2 double3 - 4 | .22 | .069 | 58 | 3.19 | int1 int2 - 4.94 | . | .083 | 59.5 | . | int3 str_32 double1 + 3.54 | .258 | .065 | 54.5 | 3.97 | + 5.04 | .336 | .096 | 52.5 | 3.5 | str_12 str_32 str_4 + 3.93 | .271 | .07 | 56.2 | 3.87 | double1 double2 double3 + 9.39 | .442 | .175 | 53.6 | 2.53 | int1 int2 + 5.59 | . | .084 | 66.6 | . | int3 str_32 double1 -------------------------------------------------------------------------------- bench_collapse, oncollision(error) style(ftools) vars(6) @@ -15702,11 +15656,11 @@ Benchmark vs collapse (in seconds) collapse | fcollapse | gcollapse | ratio (c/g) | ratio (f/g) | varlist -------- | --------- | --------- | ----------- | ----------- | ------- - 3.86 | .408 | .048 | 80.4 | 8.5 | - 9.9 | .683 | .074 | 134 | 9.23 | str_12 str_32 str_4 - 6.79 | .498 | .133 | 51 | 3.74 | double1 double2 double3 - 6.7 | .241 | .052 | 129 | 4.63 | int1 int2 - 5.97 | . | .084 | 71 | . | int3 str_32 double1 + 2.98 | .232 | .039 | 76.4 | 5.95 | + 5.95 | .319 | .068 | 87.5 | 4.69 | str_12 str_32 str_4 + 5 | .239 | .05 | 99.9 | 4.78 | double1 double2 double3 + 4.48 | .201 | .048 | 93.4 | 4.19 | int1 int2 + 5.32 | . | .141 | 37.8 | . | int3 str_32 double1 -------------------------------------------------------------------------------- bench_collapse, oncollision(error) style(full) vars(1) @@ -15733,11 +15687,11 @@ Benchmark vs collapse (in seconds) collapse | fcollapse | gcollapse | ratio (c/g) | ratio (f/g) | varlist -------- | --------- | --------- | ----------- | ----------- | ------- - .135 | .041 | .037 | 3.65 | 1.11 | - .697 | .137 | .065 | 10.7 | 2.11 | str_12 str_32 str_4 - .825 | .085 | .054 | 15.3 | 1.57 | double1 double2 double3 - .437 | .062 | .048 | 9.1 | 1.29 | int1 int2 - .78 | . | .201 | 3.88 | . | int3 str_32 double1 + .153 | .04 | .037 | 4.14 | 1.08 | + .793 | .142 | .065 | 12.2 | 2.18 | str_12 str_32 str_4 + .851 | .232 | .136 | 6.26 | 1.71 | double1 double2 double3 + .83 | .064 | .047 | 17.7 | 1.36 | int1 int2 + .641 | . | .058 | 11.1 | . | int3 str_32 double1 -------------------------------------------------------------------------------- bench_collapse, oncollision(error) style(sum) vars(15) @@ -15764,11 +15718,11 @@ Benchmark vs collapse (in seconds) collapse | fcollapse | gcollapse | ratio (c/g) | ratio (f/g) | varlist -------- | --------- | --------- | ----------- | ----------- | ------- - 1.69 | .144 | .045 | 37.4 | 3.2 | - 3.1 | .538 | .187 | 16.6 | 2.88 | str_12 str_32 str_4 - 2.21 | .368 | .058 | 38.1 | 6.34 | double1 double2 double3 - 1.65 | .222 | .055 | 30 | 4.04 | int1 int2 - 2.67 | . | .068 | 39.2 | . | int3 str_32 double1 + 2.98 | .148 | .057 | 52.3 | 2.6 | + 5.85 | .78 | .223 | 26.2 | 3.5 | str_12 str_32 str_4 + 3.92 | .484 | .087 | 45 | 5.56 | double1 double2 double3 + 3.05 | .589 | .159 | 19.2 | 3.7 | int1 int2 + 6.97 | . | .222 | 31.4 | . | int3 str_32 double1 -------------------------------------------------------------------------------- bench_collapse, oncollision(error) style(ftools) vars(6) @@ -15795,26 +15749,26 @@ Benchmark vs collapse (in seconds) collapse | fcollapse | gcollapse | ratio (c/g) | ratio (f/g) | varlist -------- | --------- | --------- | ----------- | ----------- | ------- - 1.24 | .127 | .032 | 38.8 | 3.97 | - 3.08 | .412 | .056 | 54.9 | 7.36 | str_12 str_32 str_4 - 2.67 | .39 | .045 | 59.3 | 8.67 | double1 double2 double3 - 2.38 | .182 | .041 | 58 | 4.44 | int1 int2 - 2.94 | . | .052 | 56.4 | . | int3 str_32 double1 + 2.08 | .361 | .088 | 23.6 | 4.1 | + 7.94 | .402 | .156 | 50.9 | 2.58 | str_12 str_32 str_4 + 3.96 | .337 | .13 | 30.5 | 2.59 | double1 double2 double3 + 3.22 | .181 | .041 | 78.6 | 4.41 | int1 int2 + 4.12 | . | .053 | 77.8 | . | int3 str_32 double1 -------------------------------------------------------------------------------- bench_collapse, oncollision(error) style(full) vars(1) -------------------------------------------------------------------------------- -End: 16:39:14 22 Jul 2018 +End: 19:33:11 23 Jul 2018 tests ran tests finished running -Start: 14:56:11 22 Jul 2018 -End: 16:39:14 22 Jul 2018 +Start: 15:31:52 23 Jul 2018 +End: 19:33:11 23 Jul 2018 name: gtools_tests - log: /home/mauricio/Documents/projects/dev/code/archive/2017/stata-gtools/build/gtools_tests_unix.log + log: /home/mauricio/gtools_tests_unix.log log type: text - closed on: 22 Jul 2018, 16:39:14 ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- + closed on: 23 Jul 2018, 19:33:11 +------------------------------------------------------------------------------------------------------------------------------------------------------------- From 53dd727f3ce847b668915e557eb688ea8980c06e Mon Sep 17 00:00:00 2001 From: Mauricio Caceres Date: Fri, 27 Jul 2018 13:54:09 -0400 Subject: [PATCH 6/6] Minor cosmetic updates to gtop --- README.md | 6 ------ build/changelog.md | 2 +- build/gtoplevelsof.ado | 10 +++++----- docs/index.md | 6 ------ src/ado/gtoplevelsof.ado | 10 +++++----- 5 files changed, 11 insertions(+), 23 deletions(-) diff --git a/README.md b/README.md index 5c57d279..c7d083e7 100644 --- a/README.md +++ b/README.md @@ -166,12 +166,6 @@ Installation I only have access to Stata 13.1, so I impose that to be the minimum. ```stata -ssc install gtools -* ssc uninstall gtools -``` - -To download the latest version -```stata local github "https://raw.githubusercontent.com" net install gtools, from(`github'/mcaceresb/stata-gtools/develop/build/) * adoupdate, update diff --git a/build/changelog.md b/build/changelog.md index 7eb9090d..fec70afb 100644 --- a/build/changelog.md +++ b/build/changelog.md @@ -25,7 +25,7 @@ passed. Final TODOs: [X] Windows with Stata 13 [X] Windows with Stata 15 [X] Linux with Stata 15 - [ ] OSX with Stata 14 + [X] OSX with Stata 14 [X] Read the documentation (Stata) [X] Read the documentation (online) diff --git a/build/gtoplevelsof.ado b/build/gtoplevelsof.ado index 8652bf98..f3435ac3 100644 --- a/build/gtoplevelsof.ado +++ b/build/gtoplevelsof.ado @@ -219,9 +219,9 @@ program gtoplevelsof, rclass if ( "`local'" != "" ) c_local `local' `"`r(levels)'"' if ( "`matrix'" != "" ) matrix `matrix' = `gmat' - if ( `c(MP)' & (`r(J)' < 20) & ("`warning'" != "nowarning") & (`:list sizeof varlist' == 1) ) { - disp as txt "(Note: {cmd:tab} can be faster than {cmd:gtop} with few groups.)" - } + * if ( `c(MP)' & (`r(J)' < 11) & ("`warning'" != "nowarning") & (`:list sizeof varlist' == 1) ) { + * disp as txt "(Note: {cmd:tab} can be faster than {cmd:gtop} with few groups.)" + * } return local levels `"`r(levels)'"' return scalar N = `r(N)' @@ -414,8 +414,8 @@ void function __gtools_parse_topmat(real scalar kvars, if ( weights ) { for (i = 1; i <= rows(gmat); i++) { - gparse[i, 1] = strtrim(sprintf("%9.3gc", gmat[i, 2])) - gparse[i, 2] = strtrim(sprintf("%9.3gc", gmat[i, 3])) + gparse[i, 1] = strtrim(sprintf("%21.3gc", gmat[i, 2])) + gparse[i, 2] = strtrim(sprintf("%21.3gc", gmat[i, 3])) } } else { diff --git a/docs/index.md b/docs/index.md index 7e4ee5a2..c3b7b259 100644 --- a/docs/index.md +++ b/docs/index.md @@ -158,12 +158,6 @@ Installation I only have access to Stata 13.1, so I impose that to be the minimum. ```stata -ssc install gtools -* ssc uninstall gtools -``` - -To download the latest version -```stata local github "https://raw.githubusercontent.com" net install gtools, from(`github'/mcaceresb/stata-gtools/master/build/) * adoupdate, update diff --git a/src/ado/gtoplevelsof.ado b/src/ado/gtoplevelsof.ado index 8652bf98..f3435ac3 100644 --- a/src/ado/gtoplevelsof.ado +++ b/src/ado/gtoplevelsof.ado @@ -219,9 +219,9 @@ program gtoplevelsof, rclass if ( "`local'" != "" ) c_local `local' `"`r(levels)'"' if ( "`matrix'" != "" ) matrix `matrix' = `gmat' - if ( `c(MP)' & (`r(J)' < 20) & ("`warning'" != "nowarning") & (`:list sizeof varlist' == 1) ) { - disp as txt "(Note: {cmd:tab} can be faster than {cmd:gtop} with few groups.)" - } + * if ( `c(MP)' & (`r(J)' < 11) & ("`warning'" != "nowarning") & (`:list sizeof varlist' == 1) ) { + * disp as txt "(Note: {cmd:tab} can be faster than {cmd:gtop} with few groups.)" + * } return local levels `"`r(levels)'"' return scalar N = `r(N)' @@ -414,8 +414,8 @@ void function __gtools_parse_topmat(real scalar kvars, if ( weights ) { for (i = 1; i <= rows(gmat); i++) { - gparse[i, 1] = strtrim(sprintf("%9.3gc", gmat[i, 2])) - gparse[i, 2] = strtrim(sprintf("%9.3gc", gmat[i, 3])) + gparse[i, 1] = strtrim(sprintf("%21.3gc", gmat[i, 2])) + gparse[i, 2] = strtrim(sprintf("%21.3gc", gmat[i, 3])) } } else {