To compute weighted quantiles, use QMETHOD=OS in the PROC
statement.
PROC TABULATE will not compute MODE when a weight variable
is active. Instead, try using PROC UNIVARIATE when MODE needs
to be computed and a weight variable is active.
Interaction
If you use the WEIGHT= option in a VAR statement to specify a
weight variable, then PROC TABULATE uses this variable instead to
weight those VAR statement variables.
Tip
When you use the WEIGHT statement, consider which value of the
VARDEF= option is appropriate. See the discussion of
“VARDEF=divisor ” on page 1804 and the calculation of weighted
statistics in the “Keywords and Formulas” on ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.