Framingham, Exam 5 subset

Slides:



Advertisements
Similar presentations
S ORTING WITH SAS L ONG, VERY LONG AND LARGE, VERY LARGE D ATA Aldi Kraja Division of Statistical Genomics SAS seminar series June 02, 2008.
Advertisements

Exploring Microsoft Access
Introduction to SQL Session 2 Retrieving Data From Multiple Tables.
Reading – Linear Regression Le (Chapter 8 through 8.1.6) C &S (Chapter 5:F,G,H)
Introduction to SQL Session 1 Retrieving Data From a Single Table.
1 times table 2 times table 3 times table 4 times table 5 times table
Data Cleaning 101 Ron Cody, Ed.D Robert Wood Johnson Medical School Piscataway, NJ.
Topics in Data Management SAS Data Step. Combining Data Sets I - SET Statement Data available on common variables from different sources. Multiple datasets.
SAS PROC REPORT PROC TABULATE
SSDPS Engagements Put Your IT Investment to Work Streamline Deployment Experience SQL Server 2008 R2.
Saving Data Steps with the Proc SQL Self-join Yan Wang Population Health Research Unit (PHRU) Dalhousie University.
PhUSE 20141October 2014 Ziekte gebied/ Overall subject Name presenterMonth-Year Title presentation PhUSE 2014 Berber SnoeijerOct 2014 Simple and Efficient.
Mean and Standard Deviation of Grouped Data Make a frequency table Compute the midpoint (x) for each class. Count the number of entries in each class (f).
SQL Chapter Two. Overview Basic Structure Verifying Statements Specifying Columns Specifying Rows.
1 Efficient SAS Coding with Proc SQL When Proc SQL is Easier than Traditional SAS Approaches Mike Atkinson, May 4, 2005.
A SAS Macro to Calculate the C-statistic Bill O’Brien BCBSMA SAS Users Group March 10, 2015.
1 Filling in the blanks with PROC FREQ Bill Klein Ryerson University.
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.
 Deviation: The distance that two points are separated from each other.  Deviation from the mean: How far the data point is from the mean. To find this.
Performing Advanced Queries Using PROC SQL Chapter 2 1.
1 EPIB 698C Lecture 4 Raul Cruz-Cano Summer 2012.
Computing with SAS Software A SAS program consists of SAS statements. 1. The DATA step consists of SAS statements that define your data and create a SAS.
Copyright © 2004, SAS Institute Inc. All rights reserved. SASHELP Datasets A real life example Barb Crowther SAS Consultant October 22, 2004.
$100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300.
Tables Learning Support
Blood Pressure and Mean Arterial Pressure It’s all about perfusion!
Longitudinal Data Techniques: Looking Across Observations Ronald Cody, Ed.D., Robert Wood Johnson Medical School.
Session 1 Retrieving Data From a Single Table
Introduction to Graphing in SAS
Times Tables.
Basic Queries Specifying Columns
PROC SQL, Overview.
An Introduction to SQL.
Match-Merge in the Data Step
عمل الطالبة : هايدى محمد عبد المنعم حسين
Noncorrelated subquery
מדינת ישראל הוועדה לאנרגיה אטומית
Creating the Example Data
A more complex example.
Mean Absolute Deviation
Subsetting Rows with the WHERE clause
Outer Joins Inner joins returned only matching rows. When you join tables, you might want to include nonmatching rows as well as matching rows.
Demonstrating the Linear Model
Grouping Summary Results
Inner Joins.
Create a subset of DPC data
Program Testing and Performance
Dictionary Tables and Views, obtain information about SAS files
Examining model stability, an example
Combining Data Sets in the DATA step.
مديريت موثر جلسات Running a Meeting that Works
Summarizing Data with Summary Functions
5 The EXCEPT Operator Unique rows from the first result set that are not found in the second result set are selected.
3 Specifying Rows.
Example, Create an analytic file for Nhanes 1999
Trigger %macro check_trigger_run;
Unit 3 Review (Calculator)
Introduction to Subqueries, An Example
Shortcuts for Variable Lists in SAS
Appending and Concatenating Files
Fixed Effects estimate using person level data
A new keyword -- calculated
UNION Operator keywords Displays all rows from both the tables
Remerging Summary Values
3 times tables.
6 times tables.
Mean Absolute Deviation
Calculate 9 x 81 = x 3 3 x 3 x 3 x 3 3 x 3 x 3 x 3 x 3 x 3 x =
Data tmp; do i=1 to 10; output; end; run; proc print data=tmp;
Hans Baumgartner Penn State University
Presentation transcript:

Framingham, Exam 5 subset

proc contents data=fram.framexam5subset position;run;

Counts, Means, standard deviations by gender proc sql; select sex as gender, count(chol) as n, mean(chol) format=8.1 as mnchol, std(chol) as stdchol format=8.1 from fram.framexam5subset group by sex ; quit;

Average Blood Pressure for each observation proc sql outobs=17; select sex,chol, mean(sbp1, sbp2, sbp3) as mnsbp, n(sbp1,sbp2,sbp3) as nsbp from fram.framexam5subset where calculated mnsbp ne . ; quit;

proc sql; create table sbptmp as select sex, mean(sbp1, sbp2, sbp3) as mnsbp from fram.framexam5subset where calculated mnsbp ne . ; quit; proc print data=sbptmp (obs=17); run;

proc sql outobs=11; create table fram1 as select sex as gender,age,chd,chol, mean(sbp1, sbp2, sbp3) as mnsbp, weight/height**2*703 as bmi, fev1/fvc*100 as fev1pc from fram.framexam5subset where calculated mnsbp ne . ; quit;

Find Number of Observations proc sql; select count(*) from fram.framexam5subset; quit;