{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Exercise_Week12

# Exercise_Week12 - MATH2871 DATA MANAGEMENT FOR STATISTICAL...

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

MATH2871 DATA MANAGEMENT FOR STATISTICAL ANALYSIS SEMESTER 2, 2010 Lab exercise Week 12 1. Using Arrays for Repetitive Computations Monthly customer order data for the first half of the year is stored in the data set orion.orders_midyear. Orion Star Sales management is considering a 10-percent price decrease during the first three months of the upcoming year. Management wants to see how such a discount would affect this year’s sales. a. Create a data set, special_offer , including the 10-percent discount in months 1 through 3. Create a new variable , Mon , to access Month1 through Month3. Use a DO loop to adjust each customer’s monthly data to include the 10- percent discount ( Month1 through Month3 only). Create three new variables: - Total_Sales – total of current sales over the six months - Projected_Sales – the total of the adjusted sales over the six months (including the three discounted months) - Difference – the difference between Total_Sales and Projected_Sales Keep only the new variables: Total_Sales , Projected_Sales and Difference .

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

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### What students are saying

• 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.

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

• 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.

Dana University of Pennsylvania ‘17, Course Hero Intern

• 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.

Jill Tulane University ‘16, Course Hero Intern