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
Can you use a principal component analysis and a heckman test together?For my master thesis I am facing some issues and I would appreciate some advice. I use Stata 16 for …
foreach loop with different prefixesI need to do some data manipulation that involves variables with many different alpha prefixes (rang…
plotting confidence intervals of a regression line in panel dataDear all, I am a beginner in Stata and I am trying to find out how to plot confidence intervals of a…
Creating a new variableHello Statalist, I think I overthinking a rather simple problem with creating a new variable and I …
Variance of a ratio with unknown covariance between numerator and denominatorI have two means and their standard errors from a paper. I would like to calculate their ratio and i…
Subscribe to:
Post Comments (Atom)
0 Response to Stata command
Post a Comment