HOW TO run a frequencies in SPSS / SAS

In SPSS:

GET

     SAS DATA='D:\DATA\data.sas7bdat'.
DATASET NAME CC WINDOW=FRONT.

FREQ var .

In SAS

Libname data 'd:\data\sas\';
options fmtsearch=(data);

proc freq data= data.example;
table var;
run;

In SAS, it can require more commands due to more speifications are being made, such as: creating a library, specifying where is the format of the data, and then asking for the frequency .

Aditionally,  one can ask for the same table, including the missing values:

proc freq data= data.example;
table var/ missing;
run;

Or can ask for the same table in an html format to be exported:

ods html;
proc freq data=ccalum.ccalumnos;
table i2/ missing;
run;
ods html close;

0 comments:

Post a Comment