Bay Area SUG June 2010 1 SAS ® 9.2 Implications for Biotech SAS ® 9.2 Implications for Biotech Bay Area SAS User’s Group June 7 th 2010 Sarmad Pirzada,

Slides:



Advertisements
Similar presentations
Easily retrieve data from the Baan database
Advertisements

Summary Statistics/Simple Graphs in SAS/EXCEL/JMP.
Taking the Leap - Using ODS Statistical Graphics for Data Visualization Wei Cheng, Isis Pharmaceuticals, Inc.
EViews Student Version. Today’s Workshop Basic grasp of how EViews manages data Creating Workfiles Importing data Running regressions Performing basic.
Statistical Methods Lynne Stokes Department of Statistical Science Lecture 7: Introduction to SAS Programming Language.
Copyright © 2011, SAS Institute Inc. All rights reserved. SAS 9.3, Support Options & More SHRUG User Group Meeting, Oct 28, 2011.
April 25 Exam April 27 (bring calculator with exp) Cox-Regression
What is New in SAS 9.2? Graphics and More. A Brief History of SAS Graphics 6.x 7.x = had the Output Delivery System (ODS) but it was not widely available.
Getting Started with Web Servers, PHP, and the Eclipse PDT Appendix I DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 6 th Edition.
MCDST : Supporting Users and Troubleshooting a Microsoft Windows XP Operating System Chapter 5: User Environment and Multiple Languages.
PHP Scripting Language. Introduction “PHP” is an acronym for “PHP: Hypertext Preprocessor.” It is an interpreted, server-side scripting language. Originally.
Presented By Trey Jordan Technical Account Manager Southern Area Guided Self-Service Presentation.
Slide 1 of 9 Presenting 24x7 Scheduler The art of computer automation Press PageDown key or click to advance.
DevCon ‘11 Center for Instructional Delivery. DevCon ‘11 Enrolling in Blackboard Learn for Campus Edition Alumni.
NDT Tools Tutorial: How-To setup your own NDT server Rich Carlson Summer 04 Joint Tech July 19, 2004.
SAS Lecture 5 – Some regression procedures Aidan McDermott, April 25, 2005.
P51UST: Unix and Software Tools Unix and Software Tools (P51UST) Compilers, Interpreters and Debuggers Ruibin Bai (Room AB326) Division of Computer Science.
Copyright © 2006, SAS Institute Inc. All rights reserved. Enterprise Guide 4.2 : A Primer SHRUG : Spring 2010 Presented by: Josée Ranger-Lacroix SAS Institute.
1 Experimental Statistics - week 4 Chapter 8: 1-factor ANOVA models Using SAS.
Shell Scripting Introduction. Agenda What is Shell Scripting? Why use Shell Scripting? Writing and Running a Shell Script Basic Commands -ECHO - REM.
Chapter 1 Introduction to SAS ® Enterprise Guide ®
TS02 SAS GTL - Injecting New Life into Graphs
SAS Options – Versatile Players in the Game of SAS Denise Poll, SAS Institute Inc.
ODS Statistical Graphics in SAS 9.2 January 17, 2010.
Python From the book “Think Python”
SAS lecture - week 31 Some Basics of CQUEST The operating system in the ESC lab (1046) is Linux. The operating system in RW labs (107/109 and 211) is Windows.
© 2012 Autodesk The Enterprise Guide to Autodesk Revit Harlan Brumm Program Manager - Autodesk.
Copyright © 2006, SAS Institute Inc. All rights reserved. SAS Enterprise Guide Old Proc – New Tricks? Tim Trussell Academic Program, SAS Canada world diabetes.
Linux Operations and Administration
01/20151 EPI 5344: Survival Analysis in Epidemiology SAS code and output February 24, 2015 Dr. N. Birkett, School of Epidemiology, Public Health & Preventive.
Introduction to SAS/Graph 9.2 Ken Barz Colorado Prevention Center 22Oct2009 Ken Barz Colorado Prevention Center.
WRITING REPORTS Introduction Section 0 Lecture 1 Slide 1 Lecture 6 Slide 1 INTRODUCTION TO Modern Physics PHYX 2710 Fall 2004 Intermediate 3870 Fall 2015.
Introduction to Enterprise Guide Jennifer Schmidt Rhonda Ellis Cassandra Hall.
A Baker's Dozen Tricks in a Button Thirteen Tricks of the SIR Trade Rolled into a Single Useful Application © Tom Shriver, DataVisor 2002.
Lecture 3 Topic - Descriptive Procedures Programs 3-4 LSB 4:1-4.4; 4:9:4:11; 8:1-8:5; 5:1-5.2.
STA302/ SAS lecture1 Some Basics of CQUEST The operating system in RW labs (107/109 and 211) is Windows XP. There are a few terminals in RW 213 running.
1 Stephen L. DesJardins Professor Center for the Study of Higher and Postsecondary Education School of Education and Professor, Gerald R. Ford School of.
Intermediate 2 Computing Unit 2 - Software Development.
Copyright © 2010, SAS Institute Inc. All rights reserved. SAS ® Using the SAS Grid.
We’ll now look at the relationship between a survival variable Y and an explanatory variable X; e.g., Y could be remission time in a leukemia study and.
01/20151 EPI 5344: Survival Analysis in Epidemiology Estimating S(t) from Cox models March 24, 2015 Dr. N. Birkett, School of Epidemiology, Public Health.
Chapter 8: Using Basic Statistical Procedures “33⅓% of the mice used in the experiment were cured by the test drug; 33⅓% of the test population were unaffected.
01/20141 EPI 5344: Survival Analysis in Epidemiology Estimating S(t) from Cox models April 1, 2014 Dr. N. Birkett, Department of Epidemiology & Community.
David M. Kroenke and David J. Auer Database Processing Fundamentals, Design, and Implementation Appendix I: Getting Started with Web Servers, PHP and the.
Introduction to SAS ODS Graphics September 16, 2015 Rocio Lopez.
1 EPIB 698C Lecture 1 Instructor: Raul Cruz-Cano
Introduction to Eviews Eviews Workshop September 6, :30 p.m.-3:30 p.m.
Copyright © 2006, SAS Institute Inc. All rights reserved. Company confidential - for internal use only SAS/IML Studio Ian Sedgwick.
 Prepared by: Eng. Maryam Adel Abdel-Hady
Programming 2 Intro to Java Machine code Assembly languages Fortran Basic Pascal Scheme CC++ Java LISP Smalltalk Smalltalk-80.
E Copyright © 2006, Oracle. All rights reserved. Using SQL Developer.
SAS ® 101 Based on Learning SAS by Example: A Programmer’s Guide Chapters 14 & 19 By Tasha Chapman, Oregon Health Authority.
03/20161 EPI 5344: Survival Analysis in Epidemiology Estimating S(t) from Cox models March 29, 2016 Dr. N. Birkett, School of Epidemiology, Public Health.
9 Copyright © 2004, Oracle. All rights reserved. Getting Started with Oracle Migration Workbench.
C Copyright © 2009, Oracle. All rights reserved. Using SQL Developer.
به نام خدای مهربان زبان تخصصی دانشجویان کامپیوتر English for Computer Students درس 3 جوانمرد Ejavanmard.blogfa.com
Kaplan-Meier Survival Plotting Macro %NEWSURV Jeffrey Meyers Mayo Clinic, Rochester, MN.
Development Environment
14 Compilers, Interpreters and Debuggers
Connect:Direct for UNIX v4.2.x Silent Installation
Linux 101 Training Module Linux Basics.
Easily retrieve data from the Baan database
The Linux Operating System
Chapter 2 First Java Programs
Chapter 8: ODS Graphics ODS graphics were not available prior to SAS 9.2 They have been implemented across a wide range of procedures Functionality isn’t.
Macrosystems EDDIE: Getting Started + Troubleshooting Tips
Click Headings Above to View Content
Automating SAS through the Power of VB Script
5/8/2019 3:20 AM bQuery-Tool 3.0 A new and elegant way to create queries and ad-hoc reports on your Baan/Infor ERP LN data. This Baan session is a query.
Presentation transcript:

Bay Area SUG June SAS ® 9.2 Implications for Biotech SAS ® 9.2 Implications for Biotech Bay Area SAS User’s Group June 7 th 2010 Sarmad Pirzada, MD, MPH Cancer Research & Biostat. Seattle WA

Bay Area SUG June ODS Graphics SAS Graph Vs. Data Graphics Procedures –PHREG –LIFETEST –SGPLOT –SAS Graph Template –SGPLOT & Related A Few Tricks SAS Installs OS Issues –32 Vs. 64 Bit –M2 Vs M3 –Win Server 2008 R2 Download Manager ODBC Driver Issues for 34 Vs. 64 Bit for Unix JAVA Applet Installs Topics for SAS Programmers and IT

Bay Area SUG June SAS/Stat PHREG Procedures < SAS9.2 Survival Curves Old Way <9.2 1.Data Step 2.Lots of SAS Code (>1,200 lines of macro code) 3.SAS Stat Proc Outputs 4.Data Step 5.SAS Graph Programs 6.Output (Not Easily Portable)

Bay Area SUG June Code Example from < SAS9.1 for Survival Curves

Bay Area SUG June SAS/Stat PHREG Procedures > SAS9.1 Survival Curves New Way ods graphics on; proc phreg data=s9321 plots(overlay=stratum)=survival; *ods select survivalplot; model surtim*surind(0)= age ; baseline covariates=ROW out=PRED survival=_all_/ROWID=ISS; run; ods graphics off; quit;

Bay Area SUG June SAS/REG Procedures SAS9.2 Other ODS Graphics New Way ods graphics on; proc reg data=sashelp.class; model weight=height; quit; run; ods graphics off; Ref: SAS/Stat® 9.2 User’s Guide: Stat Graphics Using ODS

Bay Area SUG June GTL and the SG Procedure Scatter Plot Proc Template; ods listing sge=on; proc template; define statgraph classscatter; begingraph; entrytitle 'Weight by Height'; layout overlay; scatterplot y=weight x=height; endlayout; endgraph; end; run; proc sgrender data=sashelp.class template=classscatter; run; proc sgplot data=sashelp.class; title 'Weight by Height'; scatter x=height y=weight; run; Ref: SAS/Stat® 9.2 User’s Guide: Stat Graphics Using ODS

Bay Area SUG June GTL and the SG Procedure Spline Regression Plot ods graphics on; proc transreg data=sashelp.class; model identity(weight)=spline(height); output out=class clm cli p; run; Ref: SAS/Stat® 9.2 User’s Guide: Stat Graphics Using ODS

Bay Area SUG June GTL and the SG Procedure Box Plot proc template; define statgraph classboxplot; begingraph; entrytitle 'Gender and Weight Distribution'; layout overlay; boxplot y=weight x=sex; endlayout; endgraph; end; run; proc sgrender data=sashelp.class template=classboxplot; run; Ref: SAS/Stat® 9.2 User’s Guide: Stat Graphics Using ODS

Bay Area SUG June SAS Graph Template Language (GTL)

Bay Area SUG June SAS Graph Template Language (GTL)

Bay Area SUG June SAS/Stat Survival Analysis: PROC PHREG Macros Using PROC PHREG, developed prior to SAS9.2 will run into errors if macros are using default output names Usage Note : Variable name in ParameterEstimates table changed from 'Variable' to 'Parameter' Code: Output ParameterEstimate=PE(rename=(Parameter=Variable)); This Topic covered in usage notes: In SAS9.2, Plots=Survival (CL), ODS Graphics plot does not extend the survival confidence limits to the last time for censored observations. This Topic is covered in usage notes: Macro Errors

Bay Area SUG June SAS/Stat Survival Analysis: Proc PHREG GLM Parameterization: Wald Confidence limits provided by the HAZARDRATIO might be incorrect Proc PHREG; Class Gender Group/Param=GLM; Model Duration*Censor(1)=Gender X Group X*Group; Solution: Need to Compute Custom Hazards Ratios HotFix Hazard Ratios

Bay Area SUG June SAS/Stat Survival Analysis: Proc PHREG Other Changes Estimation Method: Default method for estimating survival function has changed to Cumulative Hazards from Product Limit (Method=CH Vs. Method=PL). Implication: If default method has been used in the past, the option needs to be changed for reproducing the same results. More memory for survival analysis (Usage Notes: 37830) Where statements may lead to syntax error Example: Proc Phreg(where(age=1 or age=2) and x=‘B’ data=a; Fix: Proc Phreg Data=a(where=((age=1 or age=2) and x=‘B’)); On the Good Side: A Class Option in Phreg!

Bay Area SUG June ERROR: The Java proxy is not responding. ERROR: Unable to load the Java Virtual Machine. Please see the installation instructions or system administrator. IT/Install Related: Most Common ODS Graphics Error proc options option=appletloc; run; proc options option=jreoptions; run; proc javainfo; run; Error Log: Investigate under Win32/64:

Bay Area SUG June Investigations and s for SAS Tech Support! 1. Check to see if you have this a jvm.dll file here C:\Program Files\Java\JRE1.5.0_12\bin\client\jvm.dll 2. Open a command prompt and go to C:\Program Files\Java\JRE1.5.0_12\bin\ Issue the following at the prompt: java -version Save results for Tech Support: 3. Check your config file: c:\program files\sas\sasfoundation\9.2\nls\en\sasv9.cfg Search for the -jreoptions line Review every thing that you see on the -jreoptions line 4. Review the logs in the following folder: C:\Documents and Settings\userid\Application Data\SAS\LOGS Steps for checking JRE Version

Bay Area SUG June ERROR: The Java proxy is not responding. ERROR: Unable to load the Java Virtual Machine. Please see the installation instructions or system administrator. IT/Install Related: Most Common ODS Graphics Error %put %sysget(JAVA_HOME) ; %put %sysget(LD_LIBRARY_PATH) ; %put %sysget(LD_LIBRARY_PATH_32) ; %put %sysget(LD_LIBRARY_PATH_64) ; proc javainfo ; run ; proc javainfo picklist 'graph/graph.txt'; run; proc options option=jreptions ; run ; Modify JREOPTIONS value /opt/sas/SAS_9.2/SASFoundation/9.2/sasv9_local.cfg Add - Dsas.app.repository.path=/opt/sas/SAS_9.2/SASVersionedJarRepository/9.2/(machine name) Good SAS Tech Support Contact: Tim Braam SAS Technical Support/Unix Systems Error Log: Investigate under Unix/Solaris:

Bay Area SUG June IT/Install Related DBC Drivers for Oracle 32 Vs. 64 Bit Issues (Notes) #--- This line assumes that ODBC is located in a directory other than /usr/local # LD_LIBRARY_PATH=$SYBASE/$SYBASE_OCS/lib:$ODBCHOME/lib/sparcv9:$ODBCHOME/lib:/usr/lib/sparcv9:/usr/lib:$ ORACLE_HOME/lib:$ORACLE_HOME/lib32 oracle 64 _____________________________________________ #!/bin/bash # IMPORTANT !!! # This script moves 32 bit modules to the executables # so that 32 bit ODBC drivers will work # Must be applied following all Service packs # #set -x VERS="9_2" OUT="/opt/sas/odbc9.2_change.""`date +'%Y%b%d'`"".log" OUTZIP="/opt/sas/odbc_bkup.""`date +'%Y%b%d%H%M'`"".zip" SASHOME=/opt/sas/SAS_9.2/SASFoundation/9.2 echo '****************************************' > $OUT echo 'starting bin/ODBC_9.2.bash ' >> $OUT echo '****************************************' >> $OUT function move_and_link {while read fn do echo " " >> $OUT fn2=${fn%_u} echo ". zipping $fn2 to zip file ">> $OUT zip $OUTZIP $fn $fn2 echo ".. moving $fn2 to $fn2.orig64 ">> $OUT mv -i $fn2 $fn2.orig64 echo "... linking $fn to $fn2" >> $OUT ln -s $fn $fn2 echo " " >> $OUT done } cd $SASHOME find $SASHOME -name '*_u' -print >/tmp/sas_odbc_files move_and_link < /tmp/sas_odbc_files rm /tmp/sas_odbc_files

Bay Area SUG June Summary SAS9.2 has major changes in its graphics capabilities that are worth changing your code to Challenges for IT in terms of 32 Vs. 64 Bit Operating Systems Graph Template Language is a Powerful Tool for Programmers Portable Graphics Check your Essential Macros Prior to Migrating to 9.2M3 Thank You!