Question: SAS Programming Assignment. For this assignment, I want you to save each of the following datasets as .sas7bdat files (the files must have that file
SAS Programming
Assignment.
For this assignment, I want you to save each of the following datasets as .sas7bdat files (the files must have that file extension, they must not be .dat files). The code for all of them should be in one .SAS file.
This is to help understand how to create .sas7bdat files, the file structure that SAS specifically uses.
Submit the code file (as a PDF) to the Dropbox, as well as each of the resulting .sas7bdat files.
1.
data sandflies; input sex $ height n; cards; m 3 173 m 35 125 f 3 150 f 35 73 ; run;
2.
data ants; input species $ invaded $ n; cards; A no 2 A yes 13 B no 10 B no 3 ; run;
3.
data pistons; input machine site $ n; cards; 1 North 17 1 Centre 17 1 South 12 2 North 11 2 Centre 9 2 South 13 3 North 11 3 Centre 8 3 South 19 4 North 14 4 Centre 7 4 South 28 ; run;
4.
data the_pill; input caseuse $ contruse $ n; cards; Y Y 10 Y N 57 N Y 13 N N 95 ; run;
5.
data lesions; length region $8.; input site $ 1-16 n1 n2 n3; region='Keral'; n=n1; output; region='Gujarat'; n=n2; output; region='Anhara'; n=n3; output; drop n1-n3; cards; Buccal Mucosa 8 1 8 Labial Mucosa 0 1 0 Commissure 0 1 0 Gingiva 0 1 0 Hard palate 0 1 0 Soft palate 0 1 0 Tongue 0 1 0 Floor of mouth 1 0 1 Alveolar ridge 1 0 1 ; run;
6.
data bronchitis; input agegrp level $ bronch $ n; cards; 1 H Y 20 1 H N 382 1 L Y 9 1 L N 214 2 H Y 10 2 H N 172 2 L Y 7 2 L N 120 3 H Y 12 3 H N 327 3 L Y 6 3 L N 183 ; run;
7.
data fisher; input poured guess count; datalines; 1 1 3 1 2 1 2 1 1 2 2 3 ; run;
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
