{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Exercise_Week4_Answer - MATH2871 DATA MANAGEMENT FOR...

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

View Full Document Right Arrow Icon
MATH2871 DATA MANAGEMENT FOR STATISTICAL ANALYSIS SEMESTER 2, 2010 Lab exercise Week4 1. Adding permanent attributes Work.youngadult . a. Submit p105e04. Notice the format and labels stored in the descriptor portion of Work.youngadult . b. Add a LABEL and a FORMAT statement to the DATA step to create the following PROC PRINT report. The labels need to be changed for Customer_Gender, Customer_BirthDate, and Customer_Group. The format needs to be changed for Customer_BirthDate. (Not necessary because Customer_BirthDate is already in the correct format.) Hint: Do not forget the option in the PROC PRINT step that enables the labels to appear. libname orion 'P:\Math2871'; data work.youngadult; set orion.customer_dim; where Customer_Gender='F' and Customer_Age between 18 and 35 and Customer_Group contains 'Gold'; keep Customer_Name Customer_Age Customer_BirthDate Customer_Gender Customer_Group; label Customer_Gender='Customer_Gender ' Customer_Group= Customer_Group ; run ; proc contents data=work.youngadult; run ; proc print data=work.youngadult label; run ; Customer Customer_ Customer Obs _Gender Customer Name BirthDate Customer_Group Age 1 F Sandrina Stephano 09 JUL1979 Orion Club Gold members 28 2 F Cornelia Krahl
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