I have been trying to merge a file with a tempfile. evertime stata shows "variable HHID does not uniquely identify observations in the using data" or "invalid specification". Can you tell where I did mistake in writing command?
global female_baseline "C:\Users\sehri001\OneDrive - WageningenUR\Farzana_PhD\PhD_Academic\PhD work\PhD research\ANGeL\ANGel_Data\Raw_data_Angel\Baseline_ RawData\STATA\household_female"
cd "$female_baseline"
use hh_mod_a_002.dta, clear
sort HHID
keep HHID HHTYPE A12 A13
recast double HHID
//the type of variable of HHID was int in this dataset. However, the type fo variable of HHID was double in the temfiles. So I have toc hange the type to merge datafiles.
merge 1:1 HHID using `dil_answer_2015'
Related Posts with Tempfile
Update to -moremata- available from SSCTo install the update, type Code: . ssc install moremata, replace or use the adoupdate command. T…
comparing Sem and Gsem with their AICHello, I wanted to know if it is possible to compare a sem model with a gsem model by their AIC ? I …
Vuong (1989) LR testsHi I am running a test whereby I sequentially add a group of fixed effects indicators (eg client fix…
Major update to -kmatch- now available from SSCA major update to kmatch is now available from SSC. To install the update, type Code: . ssc instal…
Cross sectional dependence testDear all, I am applying a fixed effect model, and I have used xtcsd, friedman command to see whethe…
Subscribe to:
Post Comments (Atom)
0 Response to Tempfile
Post a Comment