Hi there, I am fairly new to Stata but especially new to loop commands. I am trying to replicate a loop from a tutorial video but I am not having very good luck at it. If you could help me with properly writing out the loop command so it will work, I would greatly appreciate it.
This is the code from the video, where the loop command is formatted like this:
Array
Here is my code, how can I format this like the one above? Am I simply writing it all out incorrectly? I apologize if this is extremely simple and I am just not seeing a silly error.
Array
Related Posts with How to Properly Format a Loop Command
Multiple imputation problemThis is a specific problem emerged in my previous post "Reshape wide". The data are the following: …
How to set 3 way panel and run triple difference regression?Hi everyone, I've got a dataset which varies across time, across country and across products (trade …
A Statalist glossary This is a revision of a glossary that appeared on 1 January 2011. Striking (to me any way) that mos…
Concatenating variables as a function of other variablesDear all, I have a database comprised of an id variable (siteid), two variables that indicate the l…
Coloring bars by group- asyvars alternative?I am trying to color bars based on the values of a categorical variable As described here: https://…
Subscribe to:
Post Comments (Atom)
0 Response to How to Properly Format a Loop Command
Post a Comment