hw6 - STAT 506Homework 6 For most problems you will need to...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
STAT 506—Homework 6 For most problems you will need to access the data in the PRG2 folder. Use the libname statement we learned to load this each time you work on your assignments calling the library ‘orion’. I tried to bold the parts where I expect you to actually show me something in your homework solutions if it is not obvious. Do the following problems. 1. Outputting Multiple Observations The orion.prices data set contains price information for Orion Star products. Partial Listing of orion.prices (50 Total Observations) Product_ID Unit_Price Factor 210200100009 $34.70 1.01 210200100017 $40.00 1.01 210200200023 $19.80 1.01 210200600067 $67.00 1.01 210200600085 $39.40 1.01 a. Write a DATA step to create a new data set that forecasts unit prices for the next three years. This data set will contain three observations for each input observation read from orion.prices . Open file p202e01 . It reads orion.prices and creates a new data set named work.price_increase . Use explicit OUTPUT statements to forecast unit prices for the next three years, using Factor as the annual rate of increase. b. Print the new data set. Include only Product_ID , Unit_Price and Year in the report. Verify your results. Show the final code and the output showing the first ten observations from the proc print. 2. Outputting Multiple Observations The data set orion.discount contains information about various discounts that Orion Star runs on its products. Partial Listing of orion.discount Start_ Unit_Sales_ Product_ID Date End_Date Price Discount 210100100027 01MAY2007 31MAY2007 $17.99 70% 210100100030 01AUG2007 31AUG2007 $32.99 70% 210100100033 01AUG2007 31AUG2007 $161.99 70% 210100100034
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 3

hw6 - STAT 506Homework 6 For most problems you will need to...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online