Announcement

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

  • Commands to summarize a dataset (i.e., alternatives to codebook, describe, and sum, or ones that combine several of these outputs)

    Hi,
    I once saw either a Stata conference presentation or a Stata Journal article that had a series of commands that provided multiple types of information such as the number of distinct levels, labels if present for the variable and the categories, distinct values, mean, median.. and so on. I cannot locate this now, but would like to use for teaching. I know how to obtain these individually, but does anyone know any commands that one could run on a list or all variables to see this type or similar information?
    Thank you, Michael

  • #2
    The -codebook- command provides all of the things you mention except the median. I'm not aware of any single command that gives all of that plus the median. Perhaps there is something user-written, but nothing I know about.

    Comment


    • #3
      I found this finally. It was the "metadata" command in the matrixtools package.

      This was the Stata conference presentation from the 2018 Nordic and Baltic presentation titled "Literate programming: Using log2markup, basetable, and matrixtools" by Niels Henrik Bruun

      https://www.stata.com/meeting/nordic-and-baltic18/

      https://www.stata.com/meeting/nordic...ic18_Bruun.pdf

      Comment

      Working...
      X