Hello,
I am struggling with the following task that already kept me bugging for hours.
This is the process step by step:
1. Import individual file (names: file2002, file2004, file2006, file2008, file2010)
2. Keep only the variables: id aa001_* aa004_* ba016_* ca001_* ea104_* eb001_* eb002_* ec023_* eh041_*. * should be replaced with 2002, 2004, 2006, 2008, 2010.
3. Join files on the first file using the id variable as key
Having spent more than 5 hours now, I didn't get far. The main problem involves the joining of multiple files. Is there a possibility to perform this task using simple code? I can imagine that there's are fairly frequently performed operations.
Thank you very much.
Sincerely,
Simon
Related Posts with Loop to open, keep variables, and join different files
Interpretation of clogithet regression (discrete choice experiment)Hi all, For my masterhtesis I've performed a discrete choice experiment. Currently I'm running diff…
Spatial Panel Data - matsize Hello everyone. hope you are fine and safe. I have Data for 134 countries from 2004 to 2018. When I…
Training sample for lasso and them making out of sample predictionsDear All I have created a loop to generate forecasts using a lasso regressions that (I hope) are co…
quantile regression with fixed effects in a panel with T=2Hello Statalist, please I would like to ask for help. I am trying to run quantile regression in my i…
Change in probablity of being downgraded as the explanatory variable change from the bottom (30%) to the top (30%) of the sampleDear all, I am sorry to bother you. I was wondering how one could calculate the change in probablit…
Subscribe to:
Post Comments (Atom)
0 Response to Loop to open, keep variables, and join different files
Post a Comment