Noob question:
I need to use a string variable in the name of other variables. I thought of something like:
gen country="EU"
gen netexport_"country"=ex_"country" - im_"country"
It is just an example to illustrate my problem. A loop would be sub-optimal.
Related Posts with String variable in Do-file
Testing if coefficients are statistically different from each otherHi, I have run the two regressions below. The method variables are different for Dry Recycling and C…
Help with Logit in panel data and measuring a time invariant independent variable.HI statalist, I'm trying to run a panel data regression where the dependent variable is a binary va…
Replacing valuesHi all, I have a dataset containing values ranging from 1 to 3. I'd like to replace all the 1 to 3,…
Instrumental Variable with binary endogenous variable and interactions and fixed effects - please help!Hello everybody, I please need your help, since I don't know how to proceed with my research. I'm…
Plotting variable around certain thresholdHi Statalist members, I am working with survey balanced panel data covering 32 waves. I am analyzin…
Subscribe to:
Post Comments (Atom)
0 Response to String variable in Do-file
Post a Comment