I'm pretty new to STATA and this is probably a silly question, but I can't seem to find the answer anywhere and have been playing with it for a while.
I have geographic zones where surveys were completed. I was able to sort my table by zone, but I want to sort it so that the ones with the highest percent of "Yes" responses come first. I essentially want to summarize which zones were the most responsive. You can view my table below.
Further, if you have advice on how to better present the most responsive zones in a succinct table, I would love the input
Thanks
tab zone revsurveycompleted, row
+----------------+
| Key |
|----------------|
| frequency |
| row percentage |
+----------------+
| Survey completed
Zone | Yes Missing | Total
-----------+----------------------+----------
1 | 3 6 | 9
| 33.33 66.67 | 100.00
-----------+----------------------+----------
2 | 4 12 | 16
| 25.00 75.00 | 100.00
-----------+----------------------+----------
3 | 2 21 | 23
| 8.70 91.30 | 100.00
Related Posts with Ordering table by percent "yes"
Replace "statsby" by "runby" to save timeHi, I am currently running regressions by group and saving coefficients using "statsby". It turns o…
Prevalence with multiple variablesHello, I am analyzing a hospital dataset which provides demographic, diagnostic, and procedural data…
Estimation of Markov Switching modelsHi, I am estimating a Markov Switching models using the mswitch command. This code runs for country …
"No room to add more variables": Stata tries to load empty spreadsheetHi, I am trying to import an Excel spreadsheet the usual way but I am getting an error: Code: . im…
Bootstrapped SEs for quantile regressionHi, I have a standard difference-in-differences setup where a reform is introduced in one region in…
Subscribe to:
Post Comments (Atom)
0 Response to Ordering table by percent "yes"
Post a Comment