Hello. I am working with household survey dataset.
I need to find the share of diversified farm households in each districts.
I have two unique variables (xhpsu : household primary sampling unit and xhnum: household number) in each dataset with which I have been merging the datasets.
I tried using coll2(mean) by xhpsu command, it gave me the statistics that I wanted. But I am having problem merging this with my master dataset as this fails to incorporate xhnum.
So can anyone help me?
Related Posts with Stata command
New package on SSC: qualtricsloadThanks to Kit Baum, my new package qualtricsload is available from SSC. qualtricsload downloads su…
Keep only most recent measure with panel dataHello all. I have a long-format database that looks like this: id wave var1 var2 1 1 85 . 1 2…
panel logistic regression with year dummiesHi statalists, I have unbalanced panel data for a set of firms for the period that extends from (201…
Testing coefficients from two different samples using xtregDear All, I have seen several postings on the test of coefficients coming from two different xtreg m…
Firth Logit and Survey dataI am attempting to run a firth logit (rare event) using data from a nationally-representative survey…
Subscribe to:
Post Comments (Atom)
0 Response to Stata command
Post a Comment