Question: Exercise 2 . Import the data file asthma _ Ex 2 . csv and write the SAS code to obtain the same output as the
Exercise Import the data file asthmaExcsv and write the SAS code to obtain the same output as the one stored in the file reportExhtml Hint: use proc print.
This is my asthmaEx data:
tablePatientWeight,Height,Age,BMI,Smoking,Asthmanever,nonever,yes,occasional noheavy smo yes,occasional yes,occasional nooccasional yes,heavy smo yes,occasional nonever,nooccasional yes,occasional yesnever,nonever,yesnever,yesoccasional no
This is my code and it not working :
proc import out Asthma
datafile vdifileshareUEMprofilesDesktopasthnmaExcsv
dbmscsv replace;
run;
title' Asthma Patients Basic Data Set';
footnote'Data from Medical Records';
proc sort data Asthma;
by patient;
run;
proc sort data Asthma;
by smoking;
run;
proc print label noobs;
by smoking;
var patient asthma age bmi;
run;
It said im missing my variable smoking. Please help me this part.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
