Hello,
I've got a panel dataset with 195 countries and various explanatory variable for each state. I'm trying to create a simple table that shows the states that are missing one or more observations.
I've created a binary "missID" variable, but when I use the code below, I get a long table with nations repeating (since it's country-year is the unit of analysis).
In addition, because it's not an estimation, I am unable to output this using Outreg2.
I'm sure there's an easy way to create a .CSV that lists the missing nations, but I can't seem to find it from searching online. Does anyone have some code they can share?
Thanks in advance!
-nick
. list cname if missID == .
+--------------------------------+
| cname |
|--------------------------------|
9. | Bahamas, The |
10. | Bahamas, The |
11. | Bahamas, The |
12. | Bahamas, The |
13. | Cuba |
|--------------------------------|
14. | Cuba |
15. | Cuba |
16. | Cuba |
17. | Haiti |
20. | Haiti |
etc...
I've got a panel dataset with 195 countries and various explanatory variable for each state. I'm trying to create a simple table that shows the states that are missing one or more observations.
I've created a binary "missID" variable, but when I use the code below, I get a long table with nations repeating (since it's country-year is the unit of analysis).
In addition, because it's not an estimation, I am unable to output this using Outreg2.
I'm sure there's an easy way to create a .CSV that lists the missing nations, but I can't seem to find it from searching online. Does anyone have some code they can share?
Thanks in advance!
-nick
. list cname if missID == .
+--------------------------------+
| cname |
|--------------------------------|
9. | Bahamas, The |
10. | Bahamas, The |
11. | Bahamas, The |
12. | Bahamas, The |
13. | Cuba |
|--------------------------------|
14. | Cuba |
15. | Cuba |
16. | Cuba |
17. | Haiti |
20. | Haiti |
etc...
Comment