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
Quantile regression with factor variables and clustered errors in Stata 14.2Dear all, is it possible to conduct a quantile regression with factor variables and clustered stand…
Creating WeightsI am trying to create a weighted wage, using employment and wage. I tried the following command, but…
Lincom after xtpoisDear Statalist members, I have read that it doesn't make much sense using margins after non-linear …
identifying indirect relationshipsI have a dataset with physicians id (variable named phy_id) working in different hospitals (variable…
Including sampling weight into multilevel logistic model with imputed dataHi everyone, I am analyzing data from a large-scale survey. I used the command mi (sequential imput…
Subscribe to:
Post Comments (Atom)
0 Response to import multiple .csv into Stata
Post a Comment