Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started