Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1 TOTAL POINTS 33 * WRITE YOUR NAME AND STUDENT NUMBER CLEARLY AT THE TOP OF THE FIRST PAGE. * WRITEDOWN THE DATE OF SUBMISSION,

1 TOTAL POINTS 33 * WRITE YOUR NAME AND STUDENT NUMBER CLEARLY AT THE TOP OF THE FIRST PAGE. * WRITEDOWN THE DATE OF SUBMISSION, HW NUMBER TOO. * Do not Change the original data. * Submit the relevant SAS output and SAS code. 1) 5pts DATA two; INPUT gender $ 1 age 3-4 ht 5-6 gpa 8-11; CARDS; m 2368 3.49 f 2167 3.81 f 2062 2.67 ; PROC PRINT; TITLE 'Title1'; RUN; a) Run the above SAS program and report the output. b) Is it a column or list input? c) How many variables you have ? Which one of them are numeric and which one of them are string or alphabetical? d) Change the title to a suitable one and give the output. e) What statement to be added to remove the date in the output? 2) 4pts age bodyfat 23\t28 39\t31 41\t26 49\t25 50\t31 53\t35 53\t42 54\t29 56\t33 57\t30 58\t33 58\t34 60\t41 61\t34 a) write a SAS code for reading the data in list form. b) write a SAS code for reading the data in column form. 3) 4pts DATA four; INPUT gender $ 1 age 3-5 ht 7-9 gpa; CARDS; m 23 68 3.49 f 21 67 3.81 f 20 62 2.67 ; PROC PRINT; TITLE 'Title3'; RUN; a) Run the above SAS program and report the output. b) Is it a column or list or any other input? c) How many variables you have ? Which one of them are numeric and which one of them are string or alphabetical? d) Change the title to a suitable one and give the output. 4) 12pts make price mpg rep78 weight length foreign AMC 4099 22 3 2930 186 0 AMC 4749 17 3 3350 173 0 AMC 3799 22 3 2640 168 0 Audi 9690 17 5 2830 189 1 Audi 6295 23 3 2070 174 1 BMW 9735 25 4 2650 177 1 Buick 4816 20 3 3250 196 0 Buick 7827 15 4 4080 222 0 Buick 5788 18 3 3670 218 0 Buick 4453 26 3 2230 170 0 Buick 5189 20 3 3280 200 0 Buick 10372 16 3 3880 207 0 Buick 4082 19 3 3400 200 0 Cad. 11385 14 3 4330 221 0 Cad. 14500 14 2 3900 204 0 Cad. 15906 21 3 4290 204 0 Chev. 3299 29 3 2110 163 0 Chev. 5705 16 4 3690 212 0 Chev. 4504 22 3 3180 193 0 Chev. 5104 22 2 3220 200 0 Chev. 3667 24 2 2750 179 0 Chev. 3955 19 3 3430 197 0 Datsun 6229 23 4 2370 170 1 Datsun 4589 35 5 2020 165 1 Datsun 5079 24 4 2280 170 1 Datsun 8129 21 4 2750 184 1 Above is a data set from car industry. a) Write a SAS program to read and print the data set using the list style input. b) Write a SAS program to read and print the data set using the column style input. c) Write a SAS program to read and print the data set using the mixed style input. d) Write a print statement so that it will print the data set for Buick only. e) Write a print statement so that it will print the data set for first 10 observations only. f) Write a print statement so that it will print the data set with variables make price mpg only. 5) 4pts a) Use the infile statement to read the data 'mammals.dat' after saving in your local directory. b) Use the infile statement to read the data 'mammals.dat' directly from the net. 6) 4pts a) For data sets in problem 4) use the infile statement to read it from your local directory (after saving it in the local directory). b) Give me grouped by 'make', and the group sum

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Numerical Analysis

Authors: Richard L. Burden, J. Douglas Faires

9th edition

538733519, 978-1133169338, 1133169333, 978-0538733519

More Books

Students also viewed these Mathematics questions