I have 20 .csv files which are 2001.csv 2002.csv...... 2020.csv, and I intend to import them into Stata. The following is the command:
forvalues i=2001/2020 {
clear
import delimited 'i'.csv
save 'i'.dta,replace
}
But the command window shows that "i" is invalid. I don't know what the problem is, andI need your advice urgently. Thank you!
Related Posts with import multiple .csv into Stata
Creating a New VariableHello Statalist Folks, I have the following annual public survey data where children are being coun…
xttest3 overall significanceHi guys, I have panel data with 2Ts and 498N. I need to test the overall significance of my fixed ef…
Generate new variable pasting numbers or textHello, I'm working with U.S natality birth data, and I need to merge this data by year and county wi…
Searching for variable string content into another string variableI have interviewed heads of households and asked their fathers' names. In some cases the father is a…
Change my observations values in discrete returns stockHi everyone. I'm a student and for my master's thesis, I have to analyse commodities shocks on a fir…
Subscribe to:
Post Comments (Atom)
0 Response to import multiple .csv into Stata
Post a Comment