Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to generate appendix data

    I would like to generate appendix data similar to this table, where for each region there is the number of observations and the average of a variable for only observations in that region.
    Attached Files

  • #2
    Have you ever tried going to an on-line map site to look for driving directions to a specific location but not given any "From" information? Well, you've done the equivalent of that here. It's very clear what you want. But you don't even hint at what you have.

    When you want help with code, you have to show example data. Please use the -dataex- command to do so. If you are running version 15.1 or a fully updated version 14.2, it is already part of your official Stata installation. If not, run -ssc install dataex- to get it. Either way, run -help dataex- to read the simple instructions for using it. -dataex- will save you time; it is easier and quicker than typing out tables. It includes complete information about aspects of the data that are often critical to answering your question but cannot be seen from tabular displays or screenshots. It also makes it possible for those who want to help you to create a faithful representation of your example to try out their code, which in turn makes it more likely that their answer will actually work in your data.

    When asking for help with code, always show example data. When showing example data, always use -dataex-.

    Comment

    Working...
    X