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
How to differentiate "tabulate", "table", "tabstat", "tabdisp"?I don't know which one should be used in specific cases. Many thanks in advance! …
First differences and lagged variables in panel dataHello everybody, I'm quite new to Stata and I would like to generate first differences of all my va…
Is it possible to add multiple recode commands to one newly generated variable?Hello all! I saw a few forums that were somewhat similar to this but did not answer this exact quest…
SubcontractingHey everyone! I am looking for an econometric model for my research. I will be using the CPS Conti…
marginsplot and legend labelsHello, I'm attempting to graph a margins plot, but my legend labels command doesn't change the label…
Subscribe to:
Post Comments (Atom)
0 Response to Count unique appearance of values across multiple variables in wide format
Post a Comment