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
if condition "name global variable == " then enter the subroutineHi, I am trying to come up with an "if condition" that would allow me to enter parts of the code if…
Import excel dataset to Stata with MM/DD/YYYY dates as 1st row / variableHi, I currently have a dataset that looks like that in Excel: Code: Code: * Example generated …
Generating unique id across variablesHello I have data in the following format where each firm is audited by either 1 or two auditors. …
Merging datasets for specific observations in a variableHi, I'm trying to merge two datasets (Disease_reshaped and DevelopmentStage) for only specific obse…
Identify variables by their order in the datasetHi, I am working with a new feed of data every week (in real time). Therefore, as real time passes …
Subscribe to:
Post Comments (Atom)
0 Response to How to Properly Format a Loop Command
Post a Comment