Hello,
I'm trying to merge 3 tempfiles named: part1, part2, part3. I used the following code:
use `part1', clear
foreach i of numlist 2/3 {
merge m:1 state year using `part`i''
}
However, it's only merging part1 and part2, not part3. What am i doing wrong?
Related Posts with Mergining in a loop
Using 'forvalues' when some data files are missing in betweenI'm trying to run a loop in which I append some .dta files in multiple folders. The path looks like …
Convert double variables to floatHi, I am currently "translating" a piece of SAS code to Stata. Each step, I verify that both my Sta…
error with mi estimate: factor-variable operators not allowedHi everyone, In the code below, I am trying to compare the coefficients across two regressions. Howe…
How to create a graph from mixed effect linear coefficientDear Statalisters, I am using a mixed-effect linear model and I want to plot the coefficient of the…
-logit- model excluding observations**Hi, I'm running a -logit- model on a dataset of >4000 observations, but when I get the output us…
Subscribe to:
Post Comments (Atom)
0 Response to Mergining in a loop
Post a Comment