-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gtools-1.11.8 (2024-06-28); greg, savecons saves w/o alphas; consest,…
… r2 w/by()
- Loading branch information
Showing
46 changed files
with
8,281 additions
and
7,147 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
version: "generic-1.11.7-{build}" | ||
version: "generic-1.11.8-{build}" | ||
|
||
environment: | ||
matrix: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
*! version 1.11.7 08Nov2023 Mauricio Caceres Bravo, [email protected] | ||
*! version 1.11.8 28Jun2024 Mauricio Caceres Bravo, [email protected] | ||
*! gtools function internals | ||
|
||
* rc 17000 | ||
|
@@ -49,6 +49,7 @@ program _gtools_internal, rclass | |
tempfile gregvcovfile | ||
tempfile gregclusfile | ||
tempfile gregabsfile | ||
tempfile greginfofile | ||
tempfile ghdfeabsfile | ||
tempfile gstatsfile | ||
tempfile gbyvarfile | ||
|
@@ -64,6 +65,7 @@ program _gtools_internal, rclass | |
GtoolsTempFile gregvcovfile | ||
GtoolsTempFile gregclusfile | ||
GtoolsTempFile gregabsfile | ||
GtoolsTempFile greginfofile | ||
GtoolsTempFile ghdfeabsfile | ||
GtoolsTempFile gstatsfile | ||
GtoolsTempFile gbyvarfile | ||
|
@@ -79,6 +81,7 @@ program _gtools_internal, rclass | |
global GTOOLS_GREGVCOV_FILE: copy local gregvcovfile | ||
global GTOOLS_GREGCLUS_FILE: copy local gregclusfile | ||
global GTOOLS_GREGABS_FILE: copy local gregabsfile | ||
global GTOOLS_GREGINFO_FILE: copy local greginfofile | ||
global GTOOLS_GHDFEABS_FILE: copy local ghdfeabsfile | ||
global GTOOLS_GSTATS_FILE: copy local gstatsfile | ||
global GTOOLS_BYVAR_FILE: copy local gbyvarfile | ||
|
@@ -727,6 +730,7 @@ program _gtools_internal, rclass | |
mata: st_numscalar("__gtools_gfile_gregvcov", strlen(st_local("gregvcovfile")) + 1) | ||
mata: st_numscalar("__gtools_gfile_gregclus", strlen(st_local("gregclusfile")) + 1) | ||
mata: st_numscalar("__gtools_gfile_gregabs", strlen(st_local("gregabsfile")) + 1) | ||
mata: st_numscalar("__gtools_gfile_greginfo", strlen(st_local("greginfofile")) + 1) | ||
mata: st_numscalar("__gtools_gfile_ghdfeabs", strlen(st_local("ghdfeabsfile")) + 1) | ||
|
||
scalar __gtools_init_targ = 0 | ||
|
@@ -1710,6 +1714,7 @@ program _gtools_internal, rclass | |
prefix(str) /// save prepending prefix | ||
PREDict(str) /// save fit in `predict' | ||
alphas(str) /// save fixed effects in `alphas' | ||
savecons /// save estimate for constant (memory-intensive) | ||
resid /// save residuals in _resid_`yvarlist' | ||
RESIDuals(str) /// save residuals in `residuals' | ||
replace /// Replace targets, if they exist | ||
|
@@ -1905,6 +1910,7 @@ program _gtools_internal, rclass | |
scalar __gtools_gregress_kvars = `:list sizeof varlist' | ||
scalar __gtools_gregress_cons = `"`constant'"' != "noconstant" | ||
scalar __gtools_gregress_consest = . | ||
scalar __gtools_gregress_savecons = `"`savecons'"' == "savecons" | ||
scalar __gtools_gregress_rss = . | ||
scalar __gtools_gregress_tss = . | ||
scalar __gtools_gregress_robust = `"`robust'"' != "" | ||
|
@@ -3454,6 +3460,7 @@ program clean_all | |
global GTOOLS_GREGVCOV_FILE | ||
global GTOOLS_GREGCLUS_FILE | ||
global GTOOLS_GREGABS_FILE | ||
global GTOOLS_GREGINFO_FILE | ||
global GTOOLS_GHDFEABS_FILE | ||
global GTOOLS_GSTATS_FILE | ||
global GTOOLS_BYVAR_FILE | ||
|
@@ -3473,6 +3480,7 @@ program clean_all | |
cap scalar drop __gtools_gfile_gregvcov | ||
cap scalar drop __gtools_gfile_gregclus | ||
cap scalar drop __gtools_gfile_gregabs | ||
cap scalar drop __gtools_gfile_greginfo | ||
cap scalar drop __gtools_gfile_ghdfeabs | ||
cap scalar drop __gtools_gfile_hdfeabs | ||
cap scalar drop __gtools_init_targ | ||
|
@@ -5019,6 +5027,7 @@ program gregress_scalars | |
scalar __gtools_gregress_kvars = 0 | ||
scalar __gtools_gregress_cons = 0 | ||
scalar __gtools_gregress_consest = . | ||
scalar __gtools_gregress_savecons = 1 | ||
scalar __gtools_gregress_rss = . | ||
scalar __gtools_gregress_tss = . | ||
scalar __gtools_gregress_robust = 0 | ||
|
@@ -5065,6 +5074,7 @@ program gregress_scalars | |
cap scalar drop __gtools_gregress_kvars | ||
cap scalar drop __gtools_gregress_cons | ||
cap scalar drop __gtools_gregress_consest | ||
cap scalar drop __gtools_gregress_savecons | ||
cap scalar drop __gtools_gregress_rss | ||
cap scalar drop __gtools_gregress_tss | ||
cap scalar drop __gtools_gregress_robust | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
*! version 1.11.1 03Apr2023 Mauricio Caceres Bravo, [email protected] | ||
*! version 1.11.8 28Jun2024 Mauricio Caceres Bravo, [email protected] | ||
*! Estimate linear regression via OLS by group and with HDFE | ||
|
||
cap program drop greg | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
*! version 1.11.1 03Apr2023 Mauricio Caceres Bravo, [email protected] | ||
*! version 1.11.8 28Jun2024 Mauricio Caceres Bravo, [email protected] | ||
*! Estimate linear regression via OLS by group and with HDFE | ||
|
||
capture program drop gregress | ||
|
@@ -376,13 +376,14 @@ end | |
capture program drop Display | ||
program Display, eclass | ||
syntax [namelist(max = 1)], [repost touse(str) *] | ||
tempname by | ||
tempname by nocoef | ||
if ( "`namelist'" == "" ) { | ||
disp as txt "Cannot display table without cached results; use option -mata()- to save" | ||
} | ||
else { | ||
mata st_numscalar("`by'", `namelist'.by) | ||
if ( `=scalar(`by')' == 0) { | ||
mata st_numscalar("`by'", `namelist'.by) | ||
mata st_numscalar("`nocoef'", (`namelist'.saveb == 0) | (`namelist'.savese == 0)) | ||
if ( (`=scalar(`by')' == 0) & (`=scalar(`nocoef')' == 0) ) { | ||
tempname colnames sel nmiss | ||
FreeMatrix b V | ||
mata st_local("caller", `namelist'.caller) | ||
|
@@ -412,7 +413,8 @@ program Display, eclass | |
_coef_table, `options' | ||
} | ||
else { | ||
disp as txt "Cannot display table with by(); use {stata mata `namelist'.print()}" | ||
if `=scalar(`by')' disp as txt "Cannot display table with by(); use {stata mata `namelist'.print()}" | ||
if `=scalar(`nocoef')' disp as txt "Cannot display table with -nob- or -nose-" | ||
} | ||
} | ||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
*! version 1.11.7 08Nov2023 Mauricio Caceres Bravo, [email protected] | ||
*! version 1.11.8 28Jun2024 Mauricio Caceres Bravo, [email protected] | ||
*! Program for managing the gtools package installation | ||
|
||
capture program drop gtools | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
v 1.11.7 | ||
v 1.11.8 | ||
d | ||
d 'GTOOLS': Faster implementation of common Stata commands optimized for large datasets | ||
d | ||
|
@@ -63,7 +63,7 @@ d | |
d Author: Mauricio Caceres Bravo | ||
d Support: email [email protected] | ||
d | ||
d Distribution-Date: 20231108 | ||
d Distribution-Date: 20240628 | ||
d | ||
f _gtools_internal.ado | ||
f _gtools_internal.mata | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.