Data  Processing  with  PC-­‐SAS   PubH  6325  

J.  Michael  Oakes,  PhD  

 

Associate  Professor   Division  of  Epidemiology   University  of  Minnesota   [email protected]  

  Lecture  4/4  

Lecture  4    

•   REFERENCING  EXTERNAL  FILES   •   ODS   •   LAG  &  RETAIN   •   ARRAYS   •   SAS  GRAPH   • MACROS   • STATA  

Referencing  External  Files   Indirectly  -­‐  If  you  want  to  reference  a  file  in  only  one   place  in  a  program  so  that  you  can  easily  change  it  for   another  job  or  a  later  run  use  a  FILENAME  statement     filename  mydata  ‘c:\temp\data.txt‘   filename  myprog  ‘c:\temp\prog.txt‘     data  weight;        infile  mydata;        input  idno  $  week1  week16;        loss=week1-­‐week16;     %include  myprog;  

Referencing  External  Files   Directly  -­‐   data  weight;        infile  ‘c:\temp\data.txt‘  ;        input  idno  $  week1  week16;        loss=week1-­‐week16;     %include  ‘c:\temp\prog.txt‘  ;    

ODS   The  Output  Delivery  System  (ODS)  is  a  new  “module”   in  SAS  v8.       It  permits  fancy  output  to  be  “printed”  to  the  output   window,  or  results  (eg,  stagsgcs)  to  be  output  into  a   SAS  dataset.     ODS  yields  three    types  of  fancy  output:        HTML      RTF      SAS  data  

RETAIN   Doing  calculagons  within  an  observagon  (ie,  subject)  is   relagvely  easy.  Calculagons  between  observagons  is  more   challenging!     How  many  days  since  last  visit  for  each  pagent  in  clinical  data   set.        Retain      lag      first.varname    last.varname      

Arrays   Arrays  permit  you  to  do  stuff  to  a  bunch  of  variables  at  the   same  gme.     Once  you  define  an  array  you  can  refer  to  the  array  itself,   which  stands  for  the  variable  list  inside.      

SAS  Graphs   Helpful,  but  also  consider  other  programs.       See  Dr.  Kleinman’s  tutorial  program    

Macros   Fundamentally,  macros  are  “tools”  for    text  subsgtugon.    

Macros  help:     Accomplish  repeggve  tasks  quickly  and   efficiently.     Provide  modular  structure  to  your    program.    

Macros   Macro  language  statements  begin  with  a  %     Macro  variables  start  with  a  &  

Inigalize  macro,  then  run  as  you  wish.    

Stata     Like  SAS,  but  arguably  bener:    

•   Certainly  easier  to  learn   •   Far  Less  expensive   •   Much  bener  Help  files   •   Acgve  Listserve  community   •   Super  graphics    

My  “Stata”  Course   PubH6617  

Pracgcal  Methods  for  Secondary  Data  Analysis     Fall  Term:  TuTh  8:30  am  –  9:15  am  

Lab  #4    

FINAL  EXAM      

Lecture 4 of 4.pdf

Page 2 of 13. Lecture 4. • REFERENCING EXTERNAL FILES. • ODS. • LAG & RETAIN. • ARRAYS. • SAS GRAPH. •MACROS. •STATA. Page 2 of 13 ...

93KB Sizes 4 Downloads 404 Views

Recommend Documents

Lectures / Lecture 4
Mar 1, 2010 - Exam 1 is next week during normal lecture hours. You'll find resources to help you prepare for the exam, which will be comprehensive, on the.

Lectures / Lecture 4
Mar 1, 2010 - course website. After lecture today, there will also be a review section. • Assignments are graded on a /–, /, /+ basis whereas exams are graded.

Lecture: 4
Page 1 ... WAP to print ASCII value of a given digit or alphabet or special character. WAP to input two ... WAP to create a Guessing game using three player.

Lecture 2 of 4.pdf
Page 1 of 40. Data Processing with PC-SAS. PubH 6325. J. Michael Oakes, PhD. Associate Professor. Division of Epidemiology. University of Minnesota.

Lecture 3 of 4.pdf
Page 1 of 34. Data Processing with PC-SAS. PubH 6325. J. Michael Oakes, PhD. Associate Professor. Division of Epidemiology. University of Minnesota.

lecture 4: linear algebra - GitHub
Inverse and determinant. • AX=I and solve with LU (use inv in linalg). • det A=L00. L11. L22 … (note that Uii. =1) times number of row permutations. • Better to compute ln detA=lnL00. +lnL11. +…

Lecture 4: Bayes' Law
If a rat dies in the first experiment, it diminishes the probability he survives ... The red oval represent the event A that the sum of the two dice is 7 or 8. It contains ...

Lecture # 4 Data Resource Management.pdf
Connect more apps... Try one of the apps below to open or edit this item. Lecture # 4 Data Resource Management.pdf. Lecture # 4 Data Resource Management.

EE 396: Lecture 4
where Id : U→U is the identity map, and so if u1,u2 ∈ U, then .... Recall from signal processing, that if we have a linear system that is also shift-invariant (some-.

Lecture 4-Principles of Environmental Control and Micro-climate .pdf ...
Lecture 4-Principles of Environmental Control and Micro-climate .pdf. Lecture 4-Principles of Environmental Control and Micro-climate .pdf. Open. Extract.

pdf-1490\record-of-agard-lecture-series-lecture ...
... the apps below to open or edit this item. pdf-1490\record-of-agard-lecture-series-lecture-series-i ... unne-j-c-north-atlantic-treaty-organization-vannucci.pdf.

SE-Lecture Notes-Unit-4.pdf
never be required to type operating system commands from within application software). Design for direct interaction with objects that appear on the screen.

Lecture 4 Big Data Storage and Processing
A collection of large and complex data sets which are difficult to process using common database management tools or traditional data processing applications. Big data is not just about size. ▫ Finds insights from complex, noisy, heterogeneous, str

SE-Lecture Notes-Unit-4.pdf
Retrying... SE-Lecture Notes-Unit-4.pdf. SE-Lecture Notes-Unit-4.pdf. Open. Extract. Open with. Sign In. Main menu. Displaying SE-Lecture Notes-Unit-4.pdf.

Lecture 7
Nov 22, 2016 - Faculty of Computer and Information Sciences. Ain Shams University ... A into two subsequences A0 and A1 such that all the elements in A0 are ... In this example, once the list has been partitioned around the pivot, each sublist .....

LECTURE - CHECKLIST
Consider hardware available for visual aids - Computer/ Laptop, LCD ... Decide timing- 65 minutes for lecture and 10 minutes for questions and answers.

Lecture 3
Oct 11, 2016 - request to the time the data is available at the ... If you want to fight big fires, you want high ... On the above architecture, consider the problem.

Prize Lecture slides
Dec 8, 2011 - Statistical Model for government surplus net-of interest st st = ∞. ∑ ... +R. −1 bt+1,t ≥ 0. Iterating backward bt = − t−1. ∑ j=0. Rj+1st+j−1 + Rtb0.

Lecture Note_Spectrophotometry.pdf
Aug 18, 2016 - ... rival UV‐Visible spectrometry. for its simplicity simplicity, versatility versatility, speed, accuracy accuracy and. cost‐effectiveness. Page 1 of 34 ...

Lecture 9
Feb 15, 2016 - ideological content have persisted among the American public from 1987 to 2012.2 ... That is, learning is social and takes place within the individuals' ... independent network structures, deriving always consensus results.

Lectures / Lecture 7
Apr 5, 2010 - Contents. 1 Introduction (0:00–5:00). 2. 2 Security (5:00–112:00). 2 .... use it to distribute pornography, you don't have to pay for disk space or bandwidth, but you might make money off ... requests—the more of a threat you pose

Inaugural lecture
Jan 31, 2001 - Contemporary global capitalism results from interactions between economics, finance, and technology. Any number of ... the form of software, but in the creation of images, and symbols. You could view it as a .... formal structures, rul