Initial Examination and Data Analysis of Numeric Values
In this data analysis task, various procedures are applied to examine and understand numeric data. Starting with an initial examination of data, followed by developing and running procedures to compute statistics such as minimum, maximum, mean, median, and standard deviation. The analysis continues by exploring unique values and metadata dictionaries, retrieving variable names, and performing structure examinations using PROC FREQ. Finally, the process involves screening categorical variables with no missing values and conducting crosstabs for binary variables.
Download Presentation

Please find below an Image/Link to download the presentation.
The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author.If you encounter any issues during the download, it is possible that the publisher has removed the file from their server.
You are allowed to download the files provided on this website for personal or commercial use, subject to the condition that they are used lawfully. All files are the property of their respective owners.
The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author.
E N D
Presentation Transcript
proc proc contents contents data=d.develop; run run;
Initial examination of numeric data proc proc means means data=d.develop n nmiss min max mean median std; run run;
proc proc sql describe table dictionary.columns; quit quit; sql;
Get variable names on the file into a macro variable. libname d "d:\dropbox\develop\_data"; proc proc sql sql; select name into : varnames separated by " " from dictionary.columns where libname="D" and memname="DEVELOP"; quit quit; %put &varnames; 7
Examine structure of data with proc freq ods output nlevels=d.DevelopLevels; proc proc freq freq data=d.develop nlevels; tables &varnames/noprint; run run; proc proc print print data=d.DevelopLevels; run run; 8
A simple variable screen, 0,1 categorical variables with no missing values.
Get names of 0,1 variables with no missing proc proc sql quit quit; %put &zeroone; sql; select tablevar into : zeroone separated by " " from d.DevelopLevels where NLevels=2 2 and NMissLevels=0 0 and tablevar ne "Ins" ; 10
Crosstabs for 0,1 variables ods output chisq=chisquares(where=(statistic="Chi-Square")); proc proc freq freq data=d.develop; tables (&zeroone)*ins/nocol nopercent chisq; run run; proc proc print print data=chisquares; run run; 11
Find variables to drop. proc proc sql quit quit; %put &todrop; sql; select scan(table,2 2) into : todrop separated by " " from chisquares where prob>.25 .25; ; Drop the variables and create analytic data set. data data d.develop_a; set d.develop(drop=&todrop); run run;