{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

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

Info icon This 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 01AUG2007 31AUG2007 $187.99 70%
Image of page 1

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

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

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern