Skip to content

Commit

Permalink
Update 1.4.9
Browse files Browse the repository at this point in the history
  • Loading branch information
reifjulian committed Mar 5, 2021
1 parent 4e149e5 commit bceca72
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# REGSAVE: extract and store regression results

- Current regsave version: `1.4.8 25oct2019`
- Current regsave version: `1.4.9 4mar2021`
- Current regsave_tbl version: `1.1.8 30mar2020`
- Jump to: [`overview`](#overview) [`installation`](#installation) [`tutorial`](#tutorial) [`updates`](#update-history) [`author`](#author)

Expand Down
6 changes: 3 additions & 3 deletions src/regsave.ado
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*! regsave 1.4.9 30aug2020 by Julian Reif
*! regsave 1.4.9 4mar2021 by Julian Reif
* 1.4.9: fixed minor bug when N was stored as non-integer
* 1.4.8: added rtable option.
* 1.4.7: fixed bug that caused large scalars outside the normal integer range to be stored as missing, when using the detail() option.
Expand Down Expand Up @@ -398,8 +398,8 @@ program define regsave, rclass

* N, R^2, and regression command. Always store N as a double, to avoid rounding issues with big data.
* Note: sometimes commands like ivregress incorrectly report N as a non-integer, and it get stored as such when in double format.
if e(N)!=. {
qui gen double N = e(N)
qui if e(N)!=. {
gen double N = e(N)
if abs(round(N)-N)<c(epsfloat) replace N = round(N)
}
if e(r2)!=. qui gen `double' r2 = e(r2)
Expand Down

0 comments on commit bceca72

Please sign in to comment.