Second Period: PROC TABULATE Jill Casey. Example 1: Simple 2D Table.

Slides:



Advertisements
Similar presentations
Aggregate Data and Statistics
Advertisements

Definitions Body Mass Index (BMI) describes relative weight for height: weight (kg)/height (m 2 ) Overweight = 25–29.9 BMI Obesity = >30 BMI.
U.S. Dept of Health and Human Services. National High Blood Pressure Education Program. Seventh Report of Joint National Committee on Prevention, Detection,
ABSTRACT CONCLUSIONS BACKGROUND Heart Rate Recovery: An Indicator of Fitness Among Middle School Children Daniel Simhaee, Roopa Gurm, Susan Aaronson, Jean.
Text books: (1)Medical Statistics A commonsense approach A commonsense approach By By Michael J. Campbell & David Machin Michael J. Campbell & David Machin.
NHANES III Prevalence of Hypertension* According to BMI
Basic Biostatistics1. 2 In Chapter 1: 1.1 What is Biostatistics? 1.2 Organization of Data 1.3 Types of Measurements 1.4 Data Quality.
Chapter 9Health Benefits of Physical Activity. Our unhealthy lifestyle We participate in work and leisure activities that are far less active than in.
Quick Data Summaries in SAS Start by bringing in data –Use permanent data set for these examples Proc Tabulate –Produces summaries very quickly and easily.
1 Cut-offs for childhood BMI in prediction of cardiovascular disease risk factors in adulthood Leah Li MRC Centre of Epidemiology for Child Health UCL.
Categorical Data Analysis: Stratified Analyses, Matching, and Agreement Statistics Biostatistics March 2007 Carla Talarico.
15b. Accessing Data: Frequencies in SAS ®. 1 Prerequisites Recommended modules to complete before viewing this module  1. Introduction to the NLTS2 Training.
3 - 1 Module 2: Types of Data This module describes the types of data typically encountered in public health applications. Recognizing and understanding.
Using SPSS for Chi Square UDP 520 Lab 5 Lin November 8 th, 2007.
Comparing means Norhafizah Ab Manan. After class, you should Understand independent t test, paired t test and ANOVA Know how to calculate the t statistics.
STAT 3130 Statistical Methods II Missing Data and Imputation.
LESSON 2.8: BODY MASS INDEX Unit 2: Nutrition & Fitness.
A Concise Display of Multiple Response Items Patrick Thornton.
SAS PROC REPORT PROC TABULATE
Low level of high density lipoprotein cholesterol in children of patients with premature coronary heart disease. Relation to own and parental characteristics.
Chapter 9 Producing Descriptive Statistics PROC MEANS; Summarize descriptive statistics for continuous numeric variables. PROC FREQ; Summarize frequency.
New FITNESSGRAM ® Healthy Fitness Zone® Standards
Niraj J. Pandya, Element Technologies Inc., NJ.  Summarize all possible combinations of class level variables even if few categories are altogether missing.
Taipei Medical University. Adolescents with Higher Althernate Healthy Eating Index For Taiwan (AHEI-T) Scores Have Lower Blood Lipid Level De-Zhi Weng,
Mrs. Watcharasa Pitug ID The Association between Waist Circumference and Renal Insufficiency among Hypertensive Patients 15/10/58 1.
Diabetes National Diabetes Control Programme
April 6 Logistic Regression –Estimating probability based on logistic model –Testing differences among multiple groups –Assumptions for model.
© 2003, Wellsource Inc. Effect of Ketogenic Diet on Lipid Levels (shown is LDL-C) In this group of 141 children followed for 6 months, a ketogenic diet.
HDL LowLess than 40 mg/dL High60 mg/dL and above LDL OptimalLess than 100 mg/dL Near Optimal mg/dL Borderline High mg/dL High mg/dL.
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.
Body Composition The body’s proportion of fat and fat free mass.
Mrs. Watcharasa Pitug ID The Association between Waist-to-Hight ratio, waist circumference,and Body Mass Index as Risk Factors for Chronic.
Lesotho STEPS Survey 2012 Fact Sheet John Nkonyana Director Disease Control.
Lesson 8 - Topics Creating SAS datasets from procedures Using ODS and data steps to make reports Using PROC RANK Programs in course notes LSB 4:11;5:3.
Warm ups: What is a normal body temperature? What is diabetes?
FORMAT statements can be used to change the look of your output –if FORMAT is in the DATA step, then the formats are permanent and stored with the dataset.
Cardiovascular Disease
Measuring the Effect of Obesity on Earnings Xiaoshu Han Department of Economcs.
Body Composition The body’s proportion of fat and fat-free mass.
BMTRY 789 Lecture9: Proc Tabulate Readings – Chapter 11 & Selected SUGI Reading Lab Problems , 11.2 Homework Due Next Week– HW6.
By: Tyler Pokrywka Athletes Seniors Children Girls and boys of any age Everybody can get involved with physical fitness There are no restrictions whatsoever.
Four way analysis Nursing home residence Gender Age Death.
Dr. Nadira Mehriban. INTRODUCTION Diabetic retinopathy (DR) is one of the major micro vascular complications of diabetes and most significant cause of.
Descriptive Statistics using R. Summary Commands An essential starting point with any set of data is to get an overview of what you are dealing with You.
Date of download: 6/26/2016 Copyright © The American College of Cardiology. All rights reserved. From: Plasma triglycerides and type III hyperlipidemia.
SAS ® 101 Based on Learning SAS by Example: A Programmer’s Guide Chapters 16 & 17 By Tasha Chapman, Oregon Health Authority.
Presented by Slyter Nutrition Consulting Services.
Date of download: 7/5/2016 Copyright © 2016 American Medical Association. All rights reserved. From: Effects of High vs Low Glycemic Index of Dietary Carbohydrate.
Descriptive statistics (2)
Figure 1.1 Prevalence of CKD by stage among NHANES participants,
From ESH 2016 | LB 3: Davide Agnoletti, MD
Raw data Log-transformed data Male age log age Female age log age
Applied Business Forecasting and Regression Analysis
Copyright © 2011 American Medical Association. All rights reserved.
Alcohol Consumption and Cardiac Biomarkers: The Atherosclerosis Risk in Communities (ARIC) Study M. Lazo, Y. Chen, J.W. McEvoy, C. Ndumele, S. Konety,
Mrs. Watcharasa Pitug ID
Comparison of baseline characteristics in participants who subsequently had an incident cardiovascular event or new-onset diabetes in the Prospective.
Copyright © 2012 American Medical Association. All rights reserved.
Clinical Guidelines on the Identification, Evaluation, and Treatment of Overweight and Obesity in Adults Risks and Assessment NHLBI Obesity Education.
Sunjoo Boo, RN, PhD, Erika Sivarajan Froelicher, RN, PhD, FAAN 
Body Mass Index, Sex, and Cardiovascular Disease Risk Factors Among Hispanic/Latino Adults: Hispanic Community Health Study/Study of Latinos by Robert.
Methods Chapter Format Sources of Data Measurements
Lecture 2 Chapter 2. Displaying and Describing Categorical Data
Relations in Categorical Data
Sunjoo Boo, RN, PhD, Erika Sivarajan Froelicher, RN, PhD, FAAN 
Producing Descriptive Statistics
A B D C Total adiponectin (μg/ml ) Hb ( g / dl ) r = p = 0.003
The prevalence of Recurrent Stroke and TIA and the related factors
Sex/Gender Differences in the Demography of Aging
Relative risk by median risk exposure for 40-year-old men.
Presentation transcript:

Second Period: PROC TABULATE Jill Casey

Example 1: Simple 2D Table

Simple 2D Table : PROC TABULATE DATA=FINAL FORMAT=PCT.; CLASS HYPER REGION; WEIGHT PWGTQ; TABLES HYPER, REGION="Region of Residence"*PCTN =“ “ ; RUN;

Simple 2D Table : Example 1: Hypertension Risk by Region ( showing column percent) Region of Residence WesternEasternNorthernCentral Hypertensive Risk Factor 73%65%68%74% No Yes27%35%32%26%

Example 2: A Little More Complicated …

Table with Nested Class Variables : PROC TABULATE DATA=FINAL FORMAT=PCT.; CLASS BMICAT SEX AGEGRP; WEIGHT PWGTQ ; TABLES SEX=""*AGEGRP=""*PCTN ="", BMICAT="BMI Distribution“ ; RUN;

Table with Nested Class Variables : BMI Distribution Under Wt.Normal Wt.OverweightObese Female18-344%53%22%21% %40%28%29% 65+5%38%33%24% Male18-341%46%34%20% %24%46%29% 65+2%33%47%18% Example 2: Body Mass Index Distribution by Sex and Age Group (showing row percent)

Example 3: Multiple Statistics

Table with Multiple Statistics : PROC TABULATE DATA=FINAL FORMAT=8.1; CLASS REGION; VAR CHOL LDL HDL TRIG; WEIGHT PWGTC; TABLES REGION*(MIN MAX MEAN MEDIAN), CHOL LDL HDL TRIG ; RUN;

Example 3: Blood Lipids Statistics by Region Chol Result (mmol/L) LDL Result (mmol/l) HDL Result (mmol/l) Triglyceride Result (mmol/l) HEALTH REGION WHERE RESPONDENT LIVES WesternMin Max Mean Median EasternMin Max Mean Median Table with Multiple Statistics:

Example 4: Adding Subtotals

Table with Subtotals : PROC TABULATE DATA=FINAL FORMAT=PCT.; CLASS REGION AGEGRP CVDRISK; WEIGHT PWGTC; TABLES (REGION ALL="Nova Scotia")* (AGEGRP="" ALL="Region Total")* PCTN ="“, CVDRISK="Cardiovascular Disease Risk" ; RUN;

Example 4: Adding Subtotals Cardiovascular Disease Risk Low Risk Moderate Risk High Risk HEALTH REGION WHERE RESPONDENT LIVES 73%19%8% Northern %36%27% %39%30% Region Total46%32%23% Eastern %23%6% %40%26% %39%29% Region Total44%35%21% Nova Scotia %20%8% %37%24% %38%29% Region Total48%32%20%

Advantages  Include data from many variables  Compute a variety of statistics in one table (all the basic stats available in Proc Means)  Compute summary statistics for categorical variables (N, NMISS, PCTN)

For More Information:  Proc Tabulate by Example, by Lauren E. Haworth  SUGI and SAS Global Forum Proceedings (