Group Processing Using the CLASS Statement
You
often want statistics for groups of observations, rather than for
the entire data set. For example, census numbers are more useful when
grouped by region than when viewed as a national total. To produce
separate analyses of grouped observations, add a CLASS statement to
the MEANS procedure.
Syntax, CLASS statement:
CLASS variable(s);
|
CLASS variables are used to categorize data. CLASS variables can be either character or numeric, but they should contain a limited number of discrete values that represent meaningful groupings. If a CLASS statement is used, then the N Obs statistic is calculated. The N Obs statistic is based ...
Get SAS Certification Prep Guide, 4th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.