Virata manual

misstable

Counts the blanks (missing values) in each column.

What we have

  • misstable summarize: how many values are missing in each variable

Coming later

  • misstable patterns — accepted, but it prints the summary instead

How you write it

misstable summarize [varlist]

Square brackets mean optional. A vertical bar means choose one.

What it does

One table showing how much of each variable is absent. Missing data is the thing most likely to quietly change your answer — a regression silently drops every row with a blank anywhere in it — so it is worth knowing the scale of it before you start rather than after.

Try it

Every example below was run after sysuse vira.sample02, clear.

. misstable summarize
      Variable |     Missing     Present   % missing
---------------+------------------------------------
          wage |       1,493       4,507       24.88
The same thing in pandas and in R

R

# no R form for `misstable` yet -- see docs/r-equivalents.md

Nearby

describe codebook list count duplicates assert