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
egen, groupDear All, Suppose that I have this data set (the original question is here), Code: * Example genera…
Collapse and generate average valuesDear, I want to collapse the years into periods of, say, two years each. For example, if I have a p…
Robust Standard Errors how to get value for Wald Chi^2?Hello everyone! I am running panel data regressions and am using the 'robust' command as I think my…
How to create an aggregate observational unit by adding values by country and year.Hello, I have the following dataset for a number of countries. I would like to generate an aggregate…
Help - estout export to csv - a whole row is concentrated in one cellHi friends, I am trying to export a table to excel using estout. Instead of each value being put in…
Subscribe to:
Post Comments (Atom)
0 Response to Make an exception within a loop
Post a Comment