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 help
Xtabond2 Newbie questionHi, I am a quite newbie to dynamic panels. For my project, I want to run a simple model on governmen…
Latent class analysis using gsem - Cross validationHi, I'm trying to learn LCA/LPA using gsem command in Stata by walking myself through Masyn (2013) -…
Transforming panel data with different time pointsHello, I am using data collected from 36 different hospitals over the course of 7 quarters (2015q2 -…
Averaging values from different "sum, detail outputs"Hi everyone, I was wondering if there is a chance to average "sum, detail outputs" over various mon…
Problem with Hausman test in xsmleI was estimating spatial panel data models in STATA, when I tried to perform Hausman test, the follo…
Subscribe to:
Post Comments (Atom)
0 Response to Stata command help
Post a Comment