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
How to replace inconsistent identity code with the majority identity within 6 years?I have 140,000 firms for 2010-2015. I want to check whether the industrial code (indcode) is consist…
Panel data - dropping all observations after a switchHi everyone, I have panel data below (just one id shown), it is sorted by id and date I want to be …
Creating a dummy based on a combinationHi all, I am trying to create a dummy variable based on the particular combination of two other dum…
Name variableHello, I have a dataset with a variable called "Country". I would like to know the code to know the…
Seeking a way to examine the sensitivity of one variable with respect to another (both a time series)Hi, this maybe a very rookie question, but many thanks for any help. I have a data like this Sta…
Subscribe to:
Post Comments (Atom)
0 Response to How to Properly Format a Loop Command
Post a Comment