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
Coefficient sign flips after applying Fixed EffectsGood day everybody, I am currently writing my master thesis and I research whether family owned com…
Customising maps or aggregating lower regions to large regions on a map- regions in the EUDear Statalist I am trying to cusotmise a map in stata. I have an EU map with regions at NUTS 2 Lev…
Estimating probit on random subsample of zeroesI want to estimate a probit regression on a large dataset. In particular, a 1 refers to a positive t…
Inverse of the normal cumulative distributionHello everyone, Given a value for probability, I would like to seek that value x such that F(x, mean…
To obtain cut-offDear Experts, I want to obtain a cut-off for my aim "To determine a discriminatory value for MUAC f…
Subscribe to:
Post Comments (Atom)
0 Response to Tempfile
Post a Comment