Announcement

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

  • Tab missing values + by

    Dear All,

    I want to tab the amount of missing values of a certain variable by some category. For example, tabmiss X by Y. I can't find this.

    Thank you all

    Joan Marc

  • #2
    It seems to me that
    Code:
    tabulate X Y if missing(X), missing
    would do what you ask. For example
    Code:
    . sysuse auto, clear
    (1978 Automobile Data)
    
    . tab rep78 foreign if missing(rep78), missing
    
        Repair |
        Record |       Car type
          1978 |  Domestic    Foreign |     Total
    -----------+----------------------+----------
             . |         4          1 |         5 
    -----------+----------------------+----------
         Total |         4          1 |         5

    Comment


    • #3
      tabmiss is from the UCLA website, as you are asked to explain.

      In addition to William's helpful answer,

      see also

      e.g. http://www.statalist.org/forums/foru...aging-missings
      and

      Code:
      net describe dm0085, from(http://www.stata-journal.com/software/sj15-4)

      Comment

      Working...
      X