Skip to content

Commit

Permalink
fixes for paring on comma bug in syntax: if inrange(,,), ...
Browse files Browse the repository at this point in the history
  • Loading branch information
remlapmot committed Sep 12, 2021
1 parent 8e07e62 commit 5a6310e
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions ivmsmm.ado
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@ program ivmsmm, eclass

local cmdline `0'

tokenize `"`0'"', parse(",")
local cmdbeforeopts `1'
syntax [anything] [if] [in] [aw fw iw pw] [, noIRR LOG *]

syntax [anything] [, noIRR LOG *]

if "`irr'" == "" local irr "irr"
else local irr ""
local comma ""
if "`options'" == "" & "`irr'" == "" & "`log'" == "" local comma ","

if "`log'" == "" local nolog "nolog"
else local nolog ""

ivpoisson gmm `cmdbeforeopts', multiplicative `nolog' `irr' `options'
qui ivpoisson gmm `cmdbeforeopts', multiplicative `nolog' `options' // so r(table) not exponentiated
if "`irr'" == "" local irr "irr"
else local irr ""

ivpoisson gmm `cmdline' `comma' multiplicative `nolog' `irr'
qui ivpoisson gmm `cmdline' `comma' multiplicative `nolog' `irr' // so r(table) not exponentiated

end
exit

0 comments on commit 5a6310e

Please sign in to comment.