Steak (R and SAS Problem).zip - (519.23 KB)**[**

Steak (R and SAS Problem)/Question.txt

Steak (R and SAS Problem)/Steak (R and SAS Problem) CODES.docx

Steak (R and SAS Problem)/Steak (R and SAS Problem).docx

Steak (R and SAS Problem)/Steak (R and SAS Problem).jpg

Steak (R and SAS Problem)/Steaks DATA.jpg**]**

How Americans like their Steak (R and SAS Problem)

Are risk-averse people more likely to order their steak well-done? A survey was conducted that asked individuals a series of questions about risk and how the individual prefers their steak (if at all). In particular,one question asked respondents, “Consider the following hypothetical situations: In Lottery A, you have a 50 percent chance of success, with a payout of $100. In Lottery B, you have a 90 percent chance of success, with a payout of $20. Assuming you have $10 to bet, would you play Lottery A or Lottery B?” Raw data from 412 American steak eaters are presented in our StatCrunch Group. The data set is called “Steaks.” Load the data set in both SAS and R.

a) Using the variable named “Preference”, produce a bar chart in R. The y-axis should present proportions. Please properly label axes and provide a meaningful title and copy it into your document.

b) Using the variable “Preference”, produce a Pareto chart in SAS. Properly title and label your graph and copy it into your document.

c) Using the variable “Preference”, produce a Pie Chart in both R and SAS. Add an appropriate title and copy this entire graph into your document.

d) Use the all the graphs to answer the question: Which steak preference is most popular? Write your answer in one sentence.

e) Create a grouped bar chart in SAS (to copy to your document) for the variable “Lottery” and group it by “Preference.” Place the bars side by side and title the graph clearly.

f) Create a Spinogram in R for the situation in (e) and copy it to your document.

g) Create a grouped bar chart in SAS for the graph the variable “Preference” and group by “Lottery.” Title these graphs clearly.

h) Are risk-averse people more likely to order their steak well-done? Use the graphs in (e) – (g) to help you answer this question in one or two sentences.