Announcement

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

  • Table Creation

    Hey Statalists,
    I have data with variable named district, hospital name and total number of cases having fever. There are several cases from each hospital month wise so there is there are duplicates of districts and hospital names. I want to create a table with district hospital name and total patient. Can any one help me out with this. I used collapsed but i am searching other alternatives as data got deleted in collapse.

  • #2
    The collapse command seems like the right approach for creating the table you describe.

    Take a few moments to review the Statalist FAQ linked to from the top of the page, as well as from the Advice on Posting link on the page you used to create your post. Note especially sections 9-12 on how to best pose your question. It's particularly helpful to copy commands and output from your Stata Results window and paste them into your Statalist post using code delimiters [CODE] and [/CODE], and to use the dataex command to provide sample data, as described in section 12 of the FAQ.

    It would help to know
    • a sample of your data presented using the dataex command
    • the exact collapse command you ran presented using code delimiters [CODE] and [/CODE]
    • why the output of the collapse command is not what you want
    The more you help others understand your problem, the more likely others are to be able to help you solve your problem.

    Comment

    Working...
    X