Answered step by step
Verified Expert Solution
Question
1 Approved Answer
he United States Bureau of Labor Statistics publishes various indexes that measure average prices of consumer goods in urban areas. The SAS data set called
he United States Bureau of Labor Statistics publishes various indexes that measure average prices of consumer goods in urban areas. The SAS data set called GAS contains data on the average price of unleaded regular gasoline per gallon for recent years by month in the United States. The variables in this file are year, month, and average gasoline price.
a Review the names, labels, and attributes of the variables in the SAS data set GAS. Record the label and variable type for GasPrice as a comment in your program.
b Identify the minimum and maximum gasoline price per year. Present the price statistics to two decimal places.
c Create a new variable that represents the quarter of the year by applying a userdefined format to the Month variable in a DATA step.
d Using the data from part c calculate the average and standard deviation of gasoline prices per quarter per year. Present the price statistics to two decimal places.
e Create a SAS data set that contains the averages and standard deviations as calculated in part d Print the data set showing only the year, quarter, average price, and standard deviation. Present the price statistics with a dollar sign and two decimal places.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started