Statistics 390: M1 Introductory Computing in Statistics
Hello, dear friend, you can consult us at any time if you have any questions, add WeChat: daixieit
Statistics 390: M1 Introductory Computing in Statistics
Homework Assignment No. 2 – Instructions
For SAS Programming Code: See Lecture Notes Where Indicated
When completed – upload in Canvas under Assignments No. 2
Homework Assignment no. 2:
1. To read in DATA:
INPUT INFILE Statement or PROC IMPORT (whichever allows for
reading
in of the data into the SAS software).
See lecture notes from Sept. 6, 2022 (Week 1) or Sept. 13, 2022
(Week 2).
2. Conduct: T-test
Use PROC MEANS code from Sept. 13, 2022 lecture notes (week 2) For population mean: Either calculate mean from original data set or use reference value from the previous year or in the scientific literature
3. Recode Variables: Modify Variables or Recode Two Variables (2) into Discrete Classes or Relative Frequency
Copy data to create NEW DATA SET to modify variables Use IF …THEN … .ELSE Statement to convert from continuous to
discrete i.e. RECODE each variable into discrete categories or intervals or classes;
RENAME RECODED Variables
See Lecture Notes; Sept. 13, 2022
4. Create: Cross-Tabulations
Use PROC FREQ and the * code from Sept. 13, 2022 lecture notes
(week 2).
5. Calculate Correlation: Pearson
Use PROC CORR
Note: PROC CORR Default is Pearson
6. Copy all SAS programming code and output (results) into a single Word or PDF file.
Note No. 1: To ensure that the file is readable by the TAs for grading, please copy and paste the sas programming code and the output (results) into a single Word or .PDF file.
Note No. 2: The single Word file can be uploaded into the Statistics 390: M1 Assignment no. 2 file. The TAs will use one file for scoring (total points equal 30).
7. File. Upload into Canvas Assignments No. 2.
Name the file HW2_Your Name_Student ID_File Name.
2022-09-21