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
Trouble obtaining quarterly values from a date variableI am starting with a date_of_survey variable that is a string formatted as YYYY-MM-DD. I then run th…
Is there any case that the coefficient of variable of interest in DiD more significant when adding more variables?Considering a Difference-in-Differences equation with a dummy variable: yi=α+βDi+Xit+εi. While Xit…
Air Land TemperatureDear All, I firstly apologize for my post is not strictly related to Stata procedures, but I am mak…
What is the meaning of this Stata code and how to fix errors?Dear all, I come across a replication do-file of a study and some code in the do-file are beyond my…
sub group analysis in clinical trial and forest plot in stataKindly help with the command for a forest plot Am analysis RCT data A binary outcome with several b…
Subscribe to:
Post Comments (Atom)
0 Response to Count unique appearance of values across multiple variables in wide format
Post a Comment