Hello All,
I am trying to import d.ta file and append them, what is wrong with this code? For some reason it only uses the first file from 1995, but does not continue with the subsequent years. Thanks in advance
clear all
cd "mydir"
save file_all_green, replace emptyok
forvalues i= 1995(1)2018 {
use country_partner_hsproduct6digit_year_`i',clear
keep year export_value location_code partner_code hs_product_code
append using "file_all_green"
save file_all_green,replace
}
Related Posts with Loop and Append .dta files
Display or Show joint test after estimating REGHDFEHello guys, I run the REGHDFE command to estimating this: reghdfe ly $quatre $cinq, a (cmap dveduc3…
Dots on the resultsHello everybody, this is my first topic here, i am brazilian so sorry for my english.... Well, i am…
Use cell size as weight in an OLS regression.As part of my project, I use cross-sectional data on 3 cells: education, year, and census metropolit…
Post estimation - SNEOPDear stata users, I have been trying to replicate Stewart, M.B., 2004. Semi-nonparametric estimatio…
Funnel plot with correlation coefficients as effect sizeHi, Can anybody help me draw funnel plots when effect sizes in my meta-analysis are correlation coef…
Subscribe to:
Post Comments (Atom)
0 Response to Loop and Append .dta files
Post a Comment