Model Answer
Answer [1 of 4]:
Data Demo;
Length ID $ 6 Race $ 9 Gender $ 6;
Input ID $ Race $ Gender $ Age;
Datalines;
APP001 Black Male 30
APP002 Caucasian Female 25
APP003 Asian Male 24
APP004 Black Female 32
APP005 Caucasian Female 26
;
Run;
Answer [2 of 4]:
Data Grocery2;
Set Grocery;
Price2 = Price * (1 - discount/100);
Price3 = Round(Price2, 0.01);
Run;
Answer [3 of 4]:
Proc Sort Data=Drinks;
By Type Descending Fat;
Run;
Answer [4 of 4]:
Proc Univariate Data=Ticket normal;
Var Mprice;
Run;
Data Demo;
Length ID $ 6 Race $ 9 Gender $ 6;
Input ID $ Race $ Gender $ Age;
Datalines;
APP001 Black Male 30
APP002 Caucasian Female 25
APP003 Asian Male 24
APP004 Black Female 32
APP005 Caucasian Female 26
;
Run;
Answer [2 of 4]:
Data Grocery2;
Set Grocery;
Price2 = Price * (1 - discount/100);
Price3 = Round(Price2, 0.01);
Run;
Answer [3 of 4]:
Proc Sort Data=Drinks;
By Type Descending Fat;
Run;
Answer [4 of 4]:
Proc Univariate Data=Ticket normal;
Var Mprice;
Run;