Announcement

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

  • dtable & tab yielding different Ns

    I'm experimenting with the dtable command with my survey data and noticed that it yields one more observation than the tab command. Not sure how to interpret the tab command dropping one observation from the dataset. Here's my svyset for more context:

    Sampling weights: screen_wt
    VCE: linearized
    Single unit: missing
    Strata 1: <one>
    Sampling unit 1: <observations>
    FPC 1: <zero>

    My goal is to create a descriptive statistics table. Not sure if I should go with the larger/smaller N. Regardless, I'd like to figure out what's causing the drop just to make sure I'm not missing anything. Any help is much appreciated.

    UPDATE: Just realized that Stata drops it only when I use "svy: tab," not "tab."
    UPDATE: The issue has been resolved. The cause was a missing observation from "screen_wt"
    Last edited by Mary Lee; 17 Apr 2025, 12:24.
Working...
X