Hi all,
I am trying to let Stata loop over only certain files ending with _p in one folder. The files meant are named "2004_c_y_cross_pers_data_p", the year however varies 2004 2006 2008 2012 etc. till 2018. I tried adjusting the syntax by adding this part files "*_cross_eu_silc_pers_data_p.dta" but something does not work. Any clue about the right syntax? Thanks!
cd "Y:\Cross\All_countries"
local statafiles : dir . files "*.dta
foreach file of local statafiles {
tab PB020 if PY000 <0
}
Array
Related Posts with Loop over certain stata files in one folder
Query about table generationHi, I meet difficulties to generate the table I need. Can you please provide suggestions for me? Tha…
Xblc package (splines)Hi all clever people! I would like to make a smooth spline graph using the xblc package (for cox re…
Replace missing observation before first observation of sectionHi all, I want to summarize my fragility variable for different types of growth episodes, so first …
Regression with timeHello everyone, I would like to run a regression with date for example as follows: Inflation=GDP+y…
Interact a dummy against its own continuousI find that it is very hard to interpret quadratic parameters. When I can see an inflection point i…
Subscribe to:
Post Comments (Atom)
0 Response to Loop over certain stata files in one folder
Post a Comment