Is there a way to pull the value of a string variable into the part of a collect export command so that the value is part of the filename? In other words, say I had a string variable name with the value alpha in all records in the dataset, could I insert alpha into the filename?
The reason that I ask is that I have a collect export within a loop and I'd like one word in the filename change, depending on the value the loop iteration (1,2,3, ...).
Related Posts with Inserting value of a string in a filename when exporting
Problem with bysort command as it is always showing not sorted!Dear Stata Members I would like to calculate the industry sales growth (isg) and following is my sam…
2SLS with we use polynomial terms of birth cohort.Hello, I am trying to estimate a fuzzy RD. Fuzzy RD is equivalent to 2SLS (Hahn et al. 2001). So I …
help on stacking matricesHi, Stata gurus, this seems to be easy, once with right Mata commands. I have N matrices, same num…
ivreg2 warning covariance matrix of moment conditions not of full rankDear Stata Users, I was trying to estimate an IV regression (2SLS) I have few dummies in my model, …
Choice of regression modelMy dependent variable is interval but bounded in the interval 5 to 80. All the values are known with…
Subscribe to:
Post Comments (Atom)
0 Response to Inserting value of a string in a filename when exporting
Post a Comment