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
Bayesian iRT using bayesmhGood day house, please i am very new in stata, I have fitted 1PL, 2PL and 3PL logistic regression to…
Converting quarterly string to Stata date formatDear all, I have a string variable "quarter" in the following format. How do I convert into the Stat…
A question on randomizationI wonder if there is a command that can do the following: 1. I have a list of 7 numbers, say (2,5,7…
Calculating Mean by every 100 observations?Hi , I have a huge dataset with 12000 observations with sample ID running in sequence (1-12000). I …
Stata takes the first group in categorical variables as the reference group?Hi, I happened to use a categorical variable without recoding it in a logit regression and found Sta…
Subscribe to:
Post Comments (Atom)
0 Response to Stata command
Post a Comment