PROC FREQ 1SHRUG November 28, 2014. What good is Proc FREQ It Counts! Answers question how many Display data (error checks), descriptive Analyze categorical.

Slides:



Advertisements
Similar presentations
I OWA S TATE U NIVERSITY Department of Animal Science Using Basic Graphical and Statistical Procedures (Chapter in the 8 Little SAS Book) Animal Science.
Advertisements

Three or more categorical variables
Comparing Two Proportions (p1 vs. p2)
Simple Logistic Regression
Logit & Probit Regression
Departments of Medicine and Biostatistics
1 Contingency Tables: Tests for independence and homogeneity (§10.5) How to test hypotheses of independence (association) and homogeneity (similarity)
Overview of Logistics Regression and its SAS implementation
1 If we live with a deep sense of gratitude, our life will be greatly embellished.
1 STA 517 – Introduction: Distribution and Inference 1.5 STATISTICAL INFERENCE FOR MULTINOMIAL PARAMETERS  Recall multi(n, =( 1,  2, …,  c ))  Suppose.
Header= Verdana 28 pt., Red 1 STA 517 – Chapter 3: Inference for Contingency Tables 3. Inference for Contingency Tables 3.1 Confidence Intervals for Association.
1 Experimental design and analyses of experimental data Lesson 6 Logistic regression Generalized Linear Models (GENMOD)
Descriptive Statistics In SAS Exploring Your Data.
EPI 809/Spring Multiple Logistic Regression.
Testing for differences between 2 means Does the mean weight of cats in Toledo differ from the mean weight of cats in Cleveland? Do the mean quiz scores.
Logistic Regression Biostatistics 510 March 15, 2007 Vanessa Perez.
Categorical Data Analysis: Stratified Analyses, Matching, and Agreement Statistics Biostatistics March 2007 Carla Talarico.
Notes on Logistic Regression STAT 4330/8330. Introduction Previously, you learned about odds ratios (OR’s). We now transition and begin discussion of.
15b. Accessing Data: Frequencies in SAS ®. 1 Prerequisites Recommended modules to complete before viewing this module  1. Introduction to the NLTS2 Training.
Chapter 11: Inference for Distributions
Data Cleaning 101 Ron Cody, Ed.D Robert Wood Johnson Medical School Piscataway, NJ.
SW318 Social Work Statistics Slide 1 Estimation Practice Problem – 1 This question asks about the best estimate of the mean for the population. Recall.
SAS Lecture 5 – Some regression procedures Aidan McDermott, April 25, 2005.
Lecture 8 Chi-Square STAT 3120 Statistical Methods I.
Estimation and Hypothesis Testing Faculty of Information Technology King Mongkut’s University of Technology North Bangkok 1.
Social Science Research Design and Statistics, 2/e Alfred P. Rovai, Jason D. Baker, and Michael K. Ponton Binomial Test PowerPoint Prepared by Alfred P.
Review of Econ424 Fall –open book –understand the concepts –use them in real examples –Dec. 14, 8am-12pm, Plant Sciences 1129 –Vote Option 1(2)
Chapter 9 Producing Descriptive Statistics PROC MEANS; Summarize descriptive statistics for continuous numeric variables. PROC FREQ; Summarize frequency.
Proportions for the Binomial Distribution ©2005 Dr. B. C. Paul.
USING SAS PROCEDURES SAS System Options OPTIONS Statement
Proc freq: Five secrets* *Okay, well, lesser known facts.
Quantify the Example Data First, code and quantify the data (assign column locations & variable names) Use the sample data to create a data set from the.
April 6 Logistic Regression –Estimating probability based on logistic model –Testing differences among multiple groups –Assumptions for model.
Different Distributions David Purdie. Topics Application of GEE to: Binary outcomes: – logistic regression Events over time (rate): –Poisson regression.
Social Science Research Design and Statistics, 2/e Alfred P. Rovai, Jason D. Baker, and Michael K. Ponton Chi-Square Goodness-of-Fit Test PowerPoint Prepared.
Categorical Data Analysis: When life fits in little boxes AnnMaria DeMars, PhD.
Using Weighted Data Donald Miller Population Research Institute 812 Oswald Tower, December 2008.
April 4 Logistic Regression –Lee Chapter 9 –Cody and Smith 9:F.
The binomial applied: absolute and relative risks, chi-square.
1 Topic 2 LOGIT analysis of contingency tables. 2 Contingency table a cross classification Table containing two or more variables of classification, and.
Today - Messages Additional shared lab hours in A-269 –M, W, F 2:30-4:25 –T, Th 4:00-5:15 First priority is for PH5452. No TA or instructor Handouts –
AnnMaria De Mars, Ph.D. The Julia Group Santa Monica, CA Categorical data analysis: For when your data DO fit in little boxes.
ANOVA: Analysis of Variance.
1 STA 617 – Chp11 Models for repeated data Analyzing Repeated Categorical Response Data  Repeated categorical responses may come from  repeated measurements.
Lesson 4 - Topics Creating new variables in the data step SAS Functions.
Why this is useful  Failure as a statistician/ analyst often is failure to clearly communicate  Need to communicate results to non-technical decision-
1 STA 617 – Chp10 Models for matched pairs Summary  Describing categorical random variable – chapter 1  Poisson for count data  Binomial for binary.
1 EPIB 698C Lecture 4 Raul Cruz-Cano Summer 2012.
Copyright © 2010, SAS Institute Inc. All rights reserved. SAS ® Using the SAS Grid.
1 G Lect 7a G Lecture 7a Comparing proportions from independent samples Analysis of matched samples Small samples and 2  2 Tables Strength.
Lecture 4 Ways to get data into SAS Some practice programming
Applied Epidemiologic Analysis - P8400 Fall 2002 Labs 6 & 7 Case-Control Analysis ----Logistic Regression Henian Chen, M.D., Ph.D.
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.
1 Say good things, think good thoughts, and do good deeds.
1 Week 3 Association and correlation handout & additional course notes available at Trevor Thompson.
1 Probability and Statistics Confidence Intervals.
Chapter 1 Introduction to Statistics. Section 1.1 Fundamental Statistical Concepts.
Veronica Burt. Reading in the Data options nofmterr; data BCSC.data1; set BCSC.Dr238bs_sum_data_deid_v3_1012; run;
Statistical hypothesis Statistical hypothesis is a method for testing a claim or hypothesis about a parameter in a papulation The statement H 0 is called.
SAS ® 101 Based on Learning SAS by Example: A Programmer’s Guide Chapters 16 & 17 By Tasha Chapman, Oregon Health Authority.
Analyze Of VAriance. Application fields ◦ Comparing means for more than two independent samples = examining relationship between categorical->metric variables.
March 28 Analyses of binary outcomes 2 x 2 tables
Applied Business Forecasting and Regression Analysis
Notes on Logistic Regression
SA3202 Statistical Methods for Social Sciences
Outline READ DATA DATA STEPS MERGE DATA PROC IMPORT
Producing Descriptive Statistics
Applied Statistics Using SPSS
Applied Statistics Using SPSS
Presentation transcript:

PROC FREQ 1SHRUG November 28, 2014

What good is Proc FREQ It Counts! Answers question how many Display data (error checks), descriptive Analyze categorical data, statistical It is fast and easy 2SHRUG November 28, 2014

Syntax PROC FREQ; BY variables; EXACT statistic – options ; OUTPUT output-options; TABLES requests ; TEST options; WEIGHT variable ; RUN; 3SHRUG November 28, 2014

Just How Simple is it? Proc freq; Run; Proc freq data=mydata1; Tables _all_; or Tables _CHAR_; Run; 4SHRUG November 28, 2014

5

Options PROC FREQ; NLEVELS – Number of variable levels new back in version 9 ORDER= – DATA|FORMATTED|FREQ|INTERNAL 6SHRUG November 28, 2014

7

Formatting Options TABLES variables / options ; 1-way, 2-way to n–way tables MISSPRINT, MISSING CROSSLIST, LIST, NOCOL, NOCUM, NOROW, NOFREQ, CUMCOL 8SHRUG November 28, 2014

Example Proc freq data=mydata1; Tables sex*health/nocum norow nopercent; Run; Proc freq data=mydata1; Tables sex*health/crosslist; Run; 9SHRUG November 28, 2014

10SHRUG November 28, 2014

11SHRUG November 28, 2014

12SHRUG November 28, 2014

Proc freq data=mydata1; tables region*sex*health/nocum norow nopercent; run; Proc sort data=mydata1; by region; run; Proc freq data=mydata1; by region; tables sex*health/nocum norow nopercent; run; 13SHRUG November 28, 2014

14SHRUG November 28, 2014

15SHRUG November 28, 2014

Statistical Computations 16SHRUG November 28, 2014

Statistical Computations Proc freq data=mydata1; Where racer ne 3 ;/*excludes where race=other*/ Tables sex*racer/chisq agree measures nowarn; Run; 17SHRUG November 28, 2014

Statistical Computations 18SHRUG November 28, 2014

19SHRUG November 28, 2014

EXACT Alternative to asymptotic p-values (sparse, skewed or heavily tied data) Computed using network algorithms Monte Carlo estimation also available POINT – exact probability that test statistic equals the observed value 20SHRUG November 28, 2014

New in SAS 9.3 Exact conditional Confidence Limits for Risk Difference and Relative Risk Maxlevels 21SHRUG November 28, 2014

New in SAS 9.4 MIDP - mid-p-values for exact tests only half of probability of observed sample is included in tail Score confidence limits for Odds ratio and Relative Risk Supports Baher, exact mid-p, likelihood ratio and logit binomial confidence limits 22SHRUG November 28, 2014

Kara Thompson Research Methods Unit, Department of Medicine, Dalhousie University SHRUG November 28,