***********************************************************; * Research Computing Services *; * Introduction to SAS *; ***********************************************************; ***********************************************************; * SAS Program Structure *; * *; * 1. Execute the code as is and explore the output *; * 2. Create a variable MAP (mean artherial pressure): *; * MAP=2/3*DBP + 1/3*SBP *; * 3. Check if this variable appeared in the */ * content procedure otuput */ * 4. Examine the content of the visits dataset in the */ * Work library (do not forget to close it) */ * *; ***********************************************************; * Read the input data and define new variables; DATA visits; set "Datasets\med_visits.sas7bdat"; bmi=weight/height**2 *703; map=2/3*dbp + 1/3*sbp; RUN; * Specify title for the output (will apply to all output tables; title "Medical Visits Information"; * Print content information ; * It will print the number of observations (rows) and variables (columns); * the list of all variables and their type and size (number of bytes used to store each value) ; proc contents data=visits; run; * Print dataset; proc print data=visits; run; * Get basic statistics summaries for numeric variables; proc means data=visits; var bmi map; run;