Dear Statalists,
Running the same .do-file multiple times, without making any adjustments by hand between those runs, results each time in a different amount of observations.
After merging three datasets, the outcome of total obs. keeps changing.
Below is an example of what I do after the 1st merge with the masterfile called Example.dta
Maybe this is the reason of the strange problem.
Save Example1.dta, replace
use Likewise.dta, clear
drop useless variables
rename some variables
sort key variables
save Likewise1.dta, replace
use Example1.dta, clear
sort key variables
merge based on the key variables (of both datasets) using Likewise1.dta
4 'endresults': 29,551 obs; 29532; 29563; 29588
Running the same .do-file multiple times, without making any adjustments by hand between those runs, results each time in a different amount of observations.
After merging three datasets, the outcome of total obs. keeps changing.
Below is an example of what I do after the 1st merge with the masterfile called Example.dta
Maybe this is the reason of the strange problem.
Save Example1.dta, replace
use Likewise.dta, clear
drop useless variables
rename some variables
sort key variables
save Likewise1.dta, replace
use Example1.dta, clear
sort key variables
merge based on the key variables (of both datasets) using Likewise1.dta
4 'endresults': 29,551 obs; 29532; 29563; 29588
Comment