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
How to calculate Sigma (standard deviation of weekly stock return)Hello all Statalist members. I would like to calculate SIGMA (denotes standard deviation of weekly s…
Categorical Variables Hi, I'm an ultra-beginner to Stata and everything related to it. Nevertheless, I have to fix this …
entropy balancing commandsDear all, I hope you are well. I am performing entropy balancing method for PSM. I have read the pa…
Ho, ho, ho! Wild bootstrap tests for everyone!I've translated the guts of my boottest program from Mata to Julia, producing the Julia package Wild…
Generate a new variable based on the values of a second variableHi, I'm trying to generate a continuous variable using a comparative dataset where I want the count…
Subscribe to:
Post Comments (Atom)
0 Response to Inserting value of a string in a filename when exporting
Post a Comment