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
Average of Previous (x) ObservationsGood morning, At the moment I need to calculate the average of the 3 previous nmfp for each horse. …
Line break in coding returns me with error message after using Rcall packageCode: rcall: out1 <- att_gt(yname="ln_incwage", tname="year", gname="treat_1", xformla=~male + a…
Boxplotsorry, I am STATA beginner, and I cannot find a solution for a probably very easy question: I have …
Invalid syntax error after using args commandI am in the process of replicating the Stata code of some researchers. The code snippet below is fro…
Count occurences of a dummy variable by ID in panel dataHi everyone, I am working with a panel data about the living conditions of individuals in different …
Subscribe to:
Post Comments (Atom)
0 Response to Stata command help
Post a Comment