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
Rolling regression with pooled time series data; plotting 10 year windows with 95% CIHi everyone, I basically want to replicate figure four in Pontusson and Kwon (2010) with different …
Graphing by year?Good afternoon everyone, I am fairly new to stata and am struggling with the graphing aspect. Namel…
dummy variable conditional not working for all panel IDsDear Stata users, I have a panel data set consisting of municipalities in my country from 2000-2020…
Difference between Stir, Stmh and Stmc ?Hi, I have using these stata commands to compute overall mortality rate in a seer dataset. When usi…
Reshape long with multiple variablesHello, I have wide-structured data for answers on a 4 item scale at 2 time points. Please see data d…
Subscribe to:
Post Comments (Atom)
0 Response to Count unique appearance of values across multiple variables in wide format
Post a Comment