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
If the -if- condition has an open or close parenthesis, gtools (gegen/gdistinct/gunique/etc) returns with error too few ')' or ']'
Code Sample
Include a code snippet to reproduce the problem; be sure to run the relevant gtools program(s) with options verbose bench(3).
These lines trigger the error:
sysuse auto
gdistinct make if !strpos(make, ")") // fails
gunique make if !strpos(make, ")") // fails
gegen x = group(foreign) if !strpos(make, "x)") // fails
Running with verbose:
. gdistinct make if make!="(", verbose bench(3)
Parsed by variables; .003 seconds
too few ')' or ']'
Version info
OS: Win10[e.g. Windows 10]
Version: 1.7.5 18Apr2020
The text was updated successfully, but these errors were encountered:
@sergiocorreia Ah, this seems to be an issue throughout my entire code pipeline. I'll have to switch up how I'm passing if and in around in a few places. Thanks for flagging!
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
If the -if- condition has an open or close parenthesis, gtools (gegen/gdistinct/gunique/etc) returns with error
too few ')' or ']'
Code Sample
Include a code snippet to reproduce the problem; be sure to run the relevant
gtools
program(s) with optionsverbose bench(3)
.These lines trigger the error:
Running with verbose:
Version info
The text was updated successfully, but these errors were encountered: