Question
SAS program. Need help with direction on how to do report 2

Report 2. A gournet pizza restaurant is considering adding new toppings to its menu. Each month they survey ten customers about their preferences for three different toppings. They want data on several different toppings, so they do not always ask about the same three toppings. Customers rate each topping on a scale of 1 (would never order) to 5 (would order often). The raw data file Pizza.csv has variables for the respondents ID, and the ratings for five different toppings: arugula, pine nuts, squash, shrimp, and eggplant. The first one or two digits in the ID correspond to the month of the survey (that is, 1--Jan., 2- Feb. 12 Dec.). (a) Open the data set using Excel notice the presence and location of missing data. In a comment section at the beginning of your code, discuss how you might address the missing data in the file with options in the INFILE statement. Remember to close this Excel file before working with it in SAS. (b) Read the observations from the Pizza.csv file omitting the results from January (you believe they were compromised results). Name the data set pizza. (e) Use d PROCEDURE sLep w priľal Lhe dala sel. Cuuipare your uulpul Lu Llae Excel ile.
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Solutiona:

with file name statement give the location of file and

with infile statement to specify the source of data that is read by the input statement in a SAS data step.

with data step in sas create sas dataset

with proc step in sas create report.

truncover option in infile to read missing values

SAS Code:

filename mydata "C:\pizza.csv";

data pizza;

infile mydata truncover;

input ID arugula pinenuts squash shrimp eggplant;

run;

SolutionB:

SAS code:

data pizza;

set pizza;

where id ne 1;

run;

Solutionc:

SAS code:

Proc print data=pizza;

id ID

var arugula pinenuts squash shrimp eggplant;

by ID;

run;

Add a comment
Know the answer?
Add Answer to:
SAS program. Need help with direction on how to do report 2 Report 2. A gournet...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • SAS programming . Can someone help me on report 2 it’s not working and I do...

    SAS programming . Can someone help me on report 2 it’s not working and I do not know if I’m doing it right. 12.14.4.4. 2.1.2. 3.4.2 3 2 5 2 5 1 5 1 3 5 5 2 5 4 1 1 5.5 3.5.5.3.5-53-3-1, 1,3-3.12 334 3423 53533.22125253142 1 545 322142433 13451551 54514 5.4.1 4.3.3.1 5.22 201 201 009 210 201 202 013 004 005 006 997 300 009 400 400 004 ons dos 100 102 103 104 105 006...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT