worldbank / ietoolkit

Stata commands designed for Impact Evaluations in particular, but also data work in general
https://worldbank.github.io/ietoolkit/
MIT License
216 stars 77 forks source link

`iedorep`: Runs of sub do-files seem to be recognized as loops even when they don't have loops #325

Closed luisesanmartin closed 1 year ago

luisesanmartin commented 1 year ago

See dofile.do:


do dofile2.do

and see dofile2.do:


display("Hola")

When I run iedorep dofile.do, it returns this output:

. iedorep dofile.do

Processing: dofile.do
Entering dofile.do run....
Done with dofile.do!

  +----------------------------------------------------+
  | Line | Depth | Loop | Data | Seed | Sort | Subfile |
  |------+-------+------+------+------+------+---------|
  |    2 |     0 |    1 |      |      |      |     Yes |
  +----------------------------------------------------+
.

Is it correct that it shows a value of 1 for the column Loop? I understand that it means this line is starting a loop. Shouldn't it show a zero?