You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
gunique handles no observations differently from unique. Unique return 0 for its scalars in the case of no observations, while gunique returns nothing.
Code Sample
. sysuse auto, clear
(1978 Automobile Data)
. unique foreign if make =="audi"
Number of unique values of foreign is 0
Number of records is 0
. di r(sum)
0
. di r(N)
0
. gunique foreign if make =="audi"
(no observations)
. di r(unique)
.
. di r(J)
.
. di r(N)
.
Version info
OS: Ubuntu 20.04
Version: v1.5.0
The text was updated successfully, but these errors were encountered:
Features
- Added `gglm` to estimate GLM models, including `logit`.
Bug Fixes
- Closes#78: if now passed raw/in double-quotes throughout the pipeline
- Closes#75: gunique returns 0s in r() when there are no obs
- Closes#74: gstats transform parses abbreviated targets
- Closes#72: Warning for gegen expressions without by group
- Fixed GLM issues generating de-meaned variables
- Fixed gegen nunique with multiple inputs
- Fixed bug in `gpoisson` where internal weights not copied correctly in loop.
- Various fixes to the docs.
Describe the bug
gunique handles no observations differently from unique. Unique return 0 for its scalars in the case of no observations, while gunique returns nothing.
Code Sample
Version info
The text was updated successfully, but these errors were encountered: