Hi,
I am importing a household data from excel, and data set does not have a proper id variable, and I am trying to generate one. My data looks like this:
ID name title
1 John household head
. Mary wife
. Sam son
3 Chris household head
. Pat mother
3 Flo household head
Sometimes it is like:
14 Kerry Household head
2 Susan wife
. Christine daughter
(Kerry, Susan, Christine are one household)
I would like to convert one household to one line. I cannot use reshape because the id does not follow what stata allows. Can you please help?
Thank you!
Related Posts with How to generate group id
ASGEN command for weighted averageHello everyone, I have to compute the weighted average of democratic scores in the destination cou…
Help to combine graph bar and connected into single graph, by group(s)Have been trying without luck to combine the two graph types (bar and connected line) to be overlaye…
[Error: icio] Missing adb tables (2001-2006)Hello everyone, I want to ask how I can contact or report issues in using the icio command. I am cur…
two graphsHello I want to combine these two graphs into one graphs please twoway (scatter ed yearofbirth) |…
ERROR Fixed effect estimation (reghdfe) : treatment variable is collinear with the fixed effectsHi all, I am conducting a study to estimate the effect of Medicaid expansion on the uninsured rate …
Subscribe to:
Post Comments (Atom)
0 Response to How to generate group id
Post a Comment