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
Computing st. deviations per yearHi all, For the firms in my sample, I need to calculate the volatility of earnings. However, I keep…
Malformed notes section with 'outreg2' tex output (caused by commas)I am using 'outreg2' to make latex outputs of several regressions. I want to add a lengthy note at t…
gaps in paneldata - tsfill and _n-1Dear all, for my master's thesis I am running a panelanalysis. I used the reshape-command to transf…
Clustering or Fixed Effects on firm & industry levelsDear Statalisters, I face the following issue: I have a cross-sectional dataset where the observat…
Monte Carlo Simulation with IV 2SLSHi, I'm working on a Monte Carlo simulation with an endogenous x, so that I need to do 2SLS in my l…
Subscribe to:
Post Comments (Atom)
0 Response to Inserting value of a string in a filename when exporting
Post a Comment