This preview shows pages 1–2. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: proc format; value $gender 'M' = 'Male' 'F' = 'Female' ' ' = 'Not entered' other = 'Miscoded'; value age low-29 = 'Less than 30' 30-50 = '30 to 50' 51-high = '51+'; value $likert '1' = 'Strongly disagree' '2' = 'Disagree' '3' = 'No opinion' '4' = 'Agree' '5' = 'Strongly agree'; run; r *Adding a FORMAT statement in PROC PRINT; title2 "Data Set SURVEY with Formatted Values"; proc print data=sasdata.survey; id ID; var Gender Age Salary Ques1-Ques5; format Gender $gender. Age age. Ques1-Ques5 $likert. Salary dollar11.; run; r title "PROC FREQ with all the Defaults"; proc freq data=sasdata.survey; format Gender $gender. Age age. Ques1-Ques5 $likert. Salary dollar11.2; run; r title2 "Adding a TABLES statement to PROC FREQ"; proc freq data=sasdata.survey; tables Gender Ques1 / nocum; format Gender $gender. Ques1 $likert.; run; r...
View Full Document
This note was uploaded on 06/06/2011 for the course STAT 4360 taught by Professor Park during the Spring '11 term at University of Georgia Athens.
- Spring '11