ID# Score Gender Grade Gender_dummy Note A101 77 Female C155 89 Female D124 58 Male G107 92 Female A111 78 Male H166 70 Female T288 85 Male K353 90 Male K393 69 Female L234 60 Male

1 answer below »
The homework needs to be done using SAS software. Please find attached questions on word document and the relevant data to be used is on the txt file.


ID# Score Gender Grade Gender_dummy Note A101 77 Female C155 89 Female D124 58 Male G107 92 Female A111 78 Male H166 70 Female T288 85 Male K353 90 Male K393 69 Female L234 60 Male
Answered Same DayMar 10, 2021

Answer To: ID# Score Gender Grade Gender_dummy Note A101 77 Female C155 89 Female D124 58 Male G107 92 Female...

Medhini answered on Mar 11 2021
131 Votes
SAS Homework 2
First I imported text data file to SAS software by using following code
FILENAME REFFILE '/home/medh
inishetty190/New Folder/t.txt';
PROC IMPORT DATAFILE=REFFILE
DBMS=DLM
OUT=WORK.IMPORT;
GETNAMES=YES;
RUN;
Now my data file name is WORK.IMPORT
Q1. The data file Grades contains the information about students’ exam scores. If the student’s score is lower than 60, the grade is F. If the score is higher than or equal to 60 but lower than 70, the grade is D. If the score is higher than or equal to 70 but lower than 80, the grade is C. If the score is higher than or equal to 80 but lower than 90, the grade is B. If the score is higher than or equal to 90, the grade is A.
Please read the data file Grades into your SAS, and create a new variable called Grade. Paste your SAS code below and screen shoot the data set in your SAS.
Answer:-
data WORK.IMPORT;
set WORK.IMPORT;
if Score<59 then grade="F";
else if Score<69 then grade="D";
else if Score<79 then grade="C";
else if Score<=89 then grade="B";
else if Score>=90 then grade="A";
run;
Q2. Read the data file Grades, and create a dummy variable called...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here