I'm using version 15 of stata, and I'm wondering if it is possible to make an exception within a loop. I have four variables which I currently have running through a loop. However, I've just realized that I need to pull in data from a different excel sheet for just one of the variables. Is it possible to, within the existing loop, create a command that will allow me to merge the data from this other excel sheet and use it just in the calculation of the one variable?
Related Posts with Make an exception within a loop
Formatting Several Variables using a Loop Hello I have several variables (68) consisting of strings, integers, and floats. I am trying to for…
How to match two datasets with constraints?Hello, This is my first time posting on this forum so thank you to everyone in advance. The simple…
How to resolve numeric overflow while performing xtlogit,fe in stata?Dear all, Apologies if this question seems to be a repetition of a previous question. I had made som…
How do I do two j for reshape command? Use reshape twice?Hello, I have a wide data set that contains variables: PUBID (individuals ID) startdate__njob_year …
Taking more time in loop (foreach/forvalues)?Dear All, I notice that if I run 100 regressions (using loop), and save some statistics, every regre…
Subscribe to:
Post Comments (Atom)
0 Response to Make an exception within a loop
Post a Comment