SlideShare ist ein Scribd-Unternehmen logo
1 von 15
Visualizing PROC TRANSPOSE! An Introduction
How do I know I need to Transpose? ,[object Object],[object Object],[object Object],[object Object]
Four Questions About Your Transpose ,[object Object],[object Object],[object Object],[object Object],BY ID VAR VAR
On Base Percentage OBP = H+BB+HBP AB+BB+HBP+SF
The Data – Calculate H+BB+HBP/AB+BB+HBP+SF 2 6 SF Nick Markakis Orioles 491 637 AB Nick Markakis Orioles 3 5 HBP Nick Markakis Orioles 43 61 BB Nick Markakis Orioles 143 191 H Nick Markakis Orioles 2 2 SF Kevin Millar Orioles 430 476 AB Kevin Millar Orioles 12 8 HBP Kevin Millar Orioles 59 76 BB Kevin Millar Orioles 117 121 H Kevin Millar Orioles Value2006 Value2007 Stat Player Team
1. What should stay the same? The BY Statement PROC TRANSPOSE DATA =Base_stats  OUT =tran_stats; BY  team player;
1. What should stay the same? Visualization Nick Markakis Orioles Nick Markakis Orioles Nick Markakis Orioles Nick Markakis Orioles Nick Markakis Orioles Kevin Millar Orioles Kevin Millar Orioles Kevin Millar Orioles Kevin Millar Orioles Kevin Millar Orioles Player Team 2 6 SF 491 637 AB 3 5 HBP 43 61 BB 143 191 H 2 2 SF 430 476 AB 12 8 HBP 59 76 BB 117 121 H Value2006 Value2007 Stat
2. What goes up? The ID Statement ,[object Object],PROC TRANSPOSE DATA =Base_stats  OUT =tran_stats; BY  team player; ID  stats;
2. What goes up? Visualization H H BB HBP AB SF HBP BB AB SF Nick Markakis Orioles Nick Markakis Orioles Nick Markakis Orioles Nick Markakis Orioles Nick Markakis Orioles Kevin Millar Orioles Kevin Millar Orioles Kevin Millar Orioles Kevin Millar Orioles Kevin Millar Orioles Player Team Stat
3. What goes down? The VAR Statement ,[object Object],PROC TRANSPOSE DATA =Base_stats  OUT =tran_stats; BY  team player; ID  stats; VAR  value2007 value2006; RUN ;
3. What goes down? Visualization Value2007 Value2006 Value2007 Value2006 HBP BB AB Nick Markakis Orioles Nick Markakis Orioles Kevin Millar Orioles Kevin Millar Orioles SF H _NAME_ Player Team 2 6 491 637 3 5 43 61 143 191 2 2 430 476 12 8 59 76 117 121
4. What goes into the middle? The VAR Statement ,[object Object],PROC TRANSPOSE DATA =Base_stats  OUT =tran_stats; BY  team player; ID  stats; VAR  value2007 value2006; RUN ;
4. What goes into the middle? Visualization Value2006 Value2006 121 76 8 476 2 191 61 5 637 6 117 59 12 430 2 143 43 3 491 2 Value2007 Value2007 HBP BB AB Nick Markakis Orioles Nick Markakis Orioles Kevin Millar Orioles Kevin Millar Orioles SF H _NAME_ Player Team
Finished Product – Calculate H+BB+HBP/AB+BB+HBP+SF 2 6 2 2 SF 3 5 12 8 HBP 43 61 59 76 BB 491 637 430 476 AB 143 Value2006 Nick Markakis Orioles 191 Value2007 Nick Markakis Orioles 117 Value2006 Kevin Millar Orioles 121 Value2007 Kevin Millar Orioles H _NAME_ Player Team .351 .362 .374 .365 OBP
Questions?? Contact us at: [email_address]

Weitere ähnliche Inhalte

Was ist angesagt?

biostatstics :Type and presentation of data
biostatstics :Type and presentation of databiostatstics :Type and presentation of data
biostatstics :Type and presentation of data
naresh gill
 

Was ist angesagt? (6)

JOB INTERVIEW QUESTIONS ASKED IN CLINICAL TRIAL MANAGEMENT
JOB INTERVIEW QUESTIONS ASKED IN CLINICAL TRIAL MANAGEMENTJOB INTERVIEW QUESTIONS ASKED IN CLINICAL TRIAL MANAGEMENT
JOB INTERVIEW QUESTIONS ASKED IN CLINICAL TRIAL MANAGEMENT
 
Epidata ppt user guide
Epidata ppt user guideEpidata ppt user guide
Epidata ppt user guide
 
Maite Outcome Research
Maite Outcome ResearchMaite Outcome Research
Maite Outcome Research
 
INTRODUCTION TO STATA.pptx
INTRODUCTION TO STATA.pptxINTRODUCTION TO STATA.pptx
INTRODUCTION TO STATA.pptx
 
GCP Guideline published by Turkish Medicine and Medical Device Agency
GCP Guideline published by Turkish Medicine and Medical Device AgencyGCP Guideline published by Turkish Medicine and Medical Device Agency
GCP Guideline published by Turkish Medicine and Medical Device Agency
 
biostatstics :Type and presentation of data
biostatstics :Type and presentation of databiostatstics :Type and presentation of data
biostatstics :Type and presentation of data
 

Andere mochten auch

Nursing informatics ppt (3)
Nursing informatics ppt (3)Nursing informatics ppt (3)
Nursing informatics ppt (3)
Anne Auta
 
ավետիք իսահակյան
ավետիք   իսահակյանավետիք   իսահակյան
ավետիք իսահակյան
vaheanush
 

Andere mochten auch (11)

Put Down That Mouse
Put Down That MousePut Down That Mouse
Put Down That Mouse
 
Virtualize your opera/ons and gain the power to shrink your carbon footprint ...
Virtualize your opera/ons and gain the power to shrink your carbon footprint ...Virtualize your opera/ons and gain the power to shrink your carbon footprint ...
Virtualize your opera/ons and gain the power to shrink your carbon footprint ...
 
Microfranqueado SP Click
Microfranqueado SP ClickMicrofranqueado SP Click
Microfranqueado SP Click
 
Certi Memmert 2009.Pdf
Certi Memmert 2009.PdfCerti Memmert 2009.Pdf
Certi Memmert 2009.Pdf
 
Tablo4
Tablo4Tablo4
Tablo4
 
Nursing informatics ppt (3)
Nursing informatics ppt (3)Nursing informatics ppt (3)
Nursing informatics ppt (3)
 
Presentation_วิทยานิพนธ์_19_09_2559_Net_Thanagon
Presentation_วิทยานิพนธ์_19_09_2559_Net_ThanagonPresentation_วิทยานิพนธ์_19_09_2559_Net_Thanagon
Presentation_วิทยานิพนธ์_19_09_2559_Net_Thanagon
 
แผนพัฒนาการศึกษา4
แผนพัฒนาการศึกษา4แผนพัฒนาการศึกษา4
แผนพัฒนาการศึกษา4
 
PHP Developer
PHP DeveloperPHP Developer
PHP Developer
 
гарик
гарикгарик
гарик
 
ավետիք իսահակյան
ավետիք   իսահակյանավետիք   իսահակյան
ավետիք իսահակյան
 

Visualizing Proc Transpose

  • 1. Visualizing PROC TRANSPOSE! An Introduction
  • 2.
  • 3.
  • 4. On Base Percentage OBP = H+BB+HBP AB+BB+HBP+SF
  • 5. The Data – Calculate H+BB+HBP/AB+BB+HBP+SF 2 6 SF Nick Markakis Orioles 491 637 AB Nick Markakis Orioles 3 5 HBP Nick Markakis Orioles 43 61 BB Nick Markakis Orioles 143 191 H Nick Markakis Orioles 2 2 SF Kevin Millar Orioles 430 476 AB Kevin Millar Orioles 12 8 HBP Kevin Millar Orioles 59 76 BB Kevin Millar Orioles 117 121 H Kevin Millar Orioles Value2006 Value2007 Stat Player Team
  • 6. 1. What should stay the same? The BY Statement PROC TRANSPOSE DATA =Base_stats OUT =tran_stats; BY team player;
  • 7. 1. What should stay the same? Visualization Nick Markakis Orioles Nick Markakis Orioles Nick Markakis Orioles Nick Markakis Orioles Nick Markakis Orioles Kevin Millar Orioles Kevin Millar Orioles Kevin Millar Orioles Kevin Millar Orioles Kevin Millar Orioles Player Team 2 6 SF 491 637 AB 3 5 HBP 43 61 BB 143 191 H 2 2 SF 430 476 AB 12 8 HBP 59 76 BB 117 121 H Value2006 Value2007 Stat
  • 8.
  • 9. 2. What goes up? Visualization H H BB HBP AB SF HBP BB AB SF Nick Markakis Orioles Nick Markakis Orioles Nick Markakis Orioles Nick Markakis Orioles Nick Markakis Orioles Kevin Millar Orioles Kevin Millar Orioles Kevin Millar Orioles Kevin Millar Orioles Kevin Millar Orioles Player Team Stat
  • 10.
  • 11. 3. What goes down? Visualization Value2007 Value2006 Value2007 Value2006 HBP BB AB Nick Markakis Orioles Nick Markakis Orioles Kevin Millar Orioles Kevin Millar Orioles SF H _NAME_ Player Team 2 6 491 637 3 5 43 61 143 191 2 2 430 476 12 8 59 76 117 121
  • 12.
  • 13. 4. What goes into the middle? Visualization Value2006 Value2006 121 76 8 476 2 191 61 5 637 6 117 59 12 430 2 143 43 3 491 2 Value2007 Value2007 HBP BB AB Nick Markakis Orioles Nick Markakis Orioles Kevin Millar Orioles Kevin Millar Orioles SF H _NAME_ Player Team
  • 14. Finished Product – Calculate H+BB+HBP/AB+BB+HBP+SF 2 6 2 2 SF 3 5 12 8 HBP 43 61 59 76 BB 491 637 430 476 AB 143 Value2006 Nick Markakis Orioles 191 Value2007 Nick Markakis Orioles 117 Value2006 Kevin Millar Orioles 121 Value2007 Kevin Millar Orioles H _NAME_ Player Team .351 .362 .374 .365 OBP
  • 15. Questions?? Contact us at: [email_address]