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
How to combine two variables into one based on two criteriaHi I am a beginner in Stata. I have one panel dataset, and I want to do the following: To look up …
Simultaneous GMMCan we estimate two simultaneous equations using a single-equation technique such as GMM, instead of…
data transformationAs i am not a statistician i have a naive question. i have 50 dependent variables that i want to reg…
Creating square root scale of the household incomeHello, can anyone help me? I Need to create a square root scale of the household income (income/squa…
How to plot the below graphs after quantile regression?How to plot the below graphs after quantile regression? I have used "grqreg" but i found different p…
Subscribe to:
Post Comments (Atom)
0 Response to Tempfile
Post a Comment