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
 stack-related problem?Dear All, I found this question here. The raw data is
Code:
* Example generated by -dataex-For more… stack-related problem?Dear All, I found this question here. The raw data is
Code:
* Example generated by -dataex-For more…
 threshold model vs interactionDear all,
i hope that you are doing good
i am getting a bit confused and i would like to know if t… threshold model vs interactionDear all,
i hope that you are doing good
i am getting a bit confused and i would like to know if t…
 Generate Month and Year variablesHello everyone,
I have an example of my data here. What I have here is an ID variable, the last fou… Generate Month and Year variablesHello everyone,
I have an example of my data here. What I have here is an ID variable, the last fou…
 Avoiding confounders when sampling from a larger cohortI am trying to look at glucose level variation based on another variable (var2) to see how var2 infl… Avoiding confounders when sampling from a larger cohortI am trying to look at glucose level variation based on another variable (var2) to see how var2 infl…
 What is wrong with my Stata code for a ppml regression analysis on panel gravity data?Hi everyone,
I am currently trying to run a fixed effects model on Stata using the ppml command, bu… What is wrong with my Stata code for a ppml regression analysis on panel gravity data?Hi everyone,
I am currently trying to run a fixed effects model on Stata using the ppml command, bu…
Subscribe to:
Post Comments (Atom)
0 Response to Stata command
Post a Comment