Hello!
It has been a while since I have used Stata and I need a bit of help.
I have a wide dataset with variables activ1-active27. Across these variables, the values I am interested in are 3001-3008 (these values represent specific categories of activities a participant has engaged in).
I would like to count:
1) the unique appearance of 3001-3008 across activ1-active27 for each idpriv
2) the total count of any value within the range 3001-3008 across activ1-activ27 for each idpriv
I have tried a number of loops without success. While I would love to try -egenmore-, I cannot add packages because I am working on a disconnected server.
Related Posts with Count unique appearance of values across multiple variables in wide format
Problem with a parametic survival analysisHi! Sorry, this will probably end long, but I really need som help. I am doing a reliability analy…
Writing results to file when model fails to convergeHello list users. I am hoping someone has tired to do something all the lines of the following. I am…
Omitted variable due to CollinearityHi guys, I am trying to find which coefficient beta 1 or 2 has a greater effect on child mortality.…
Invalid SyntaxWe wanted to create an do-file for a coefficient-estimation for the previos 36 months for each fund …
Manipulating string -- Delete everything after space Code: +--------------------------------------------------------+ | sex age …
Subscribe to:
Post Comments (Atom)
0 Response to Count unique appearance of values across multiple variables in wide format
Post a Comment