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
META ANALYSIS - meta regression -Prevalence studyHi everybody, I have to do a meta-analysis. The aim of this meta-analysis (37 studies) is THE preva…
Fixed effect, dummy, and clusteringHi I am wondering that is the difference between inserting year fixed effect and year dummy in a reg…
Error r198 when using qui { commandI'm recreating a study for my final project and I'm using the code the economists used in the study …
problems with Generalized Least SquareHi Forum! I have a problem with GLS method. I'm not sure that the Stata command "xtgls" is correct f…
extract duplicates list for which some other variable takes both possible valuesHello, I have data with 3 variables: Company_name (uniquely defined), owner_name (not uniquely defin…
Subscribe to:
Post Comments (Atom)
0 Response to Tempfile
Post a Comment