BookmarkSubscribeRSS Feed

[SAS 활용 FAQ] PROCEDURE - FREQ

Started ‎11-01-2021 by
Modified ‎11-01-2021 by
Views 237
  • 일원 또는 이원 빈도를 생성

PROC FREQ DATA=SAS-data-set <option(s)>;

TABLES variable(s) </ option(s)> ;

RUN;

 

◀예제▶ sex, age의 각각 일원 빈도와 agesex의 이원 빈도

PROC FREQ DATA=sashelp.class NLEVELS;

TABLES sex

age

age*sex;

RUN;

⇒   NLEVELS: 빈도 대상 변수의 유일값의 개수를 표시.

 

Version history
Last update:
‎11-01-2021 11:15 PM
Updated by:
Contributors

sas-innovate-white.png

Special offer for SAS Communities members

Save $250 on SAS Innovate and get a free advance copy of the new SAS For Dummies book! Use the code "SASforDummies" to register. Don't miss out, May 6-9, in Orlando, Florida.

 

View the full agenda.

Register now!

Article Labels
Article Tags