Proc Power in SAS 9.1. Outline Sample size and power calculations Customizing plots of power function ODS Tables.

Slides:



Advertisements
Similar presentations
Summary Statistics/Simple Graphs in SAS/EXCEL/JMP.
Advertisements

A. The Basic Principle We consider the multivariate extension of multiple linear regression – modeling the relationship between m responses Y 1,…,Y m and.
Bivariate Analyses.
Ch11 Curve Fitting Dr. Deshi Ye
April 25 Exam April 27 (bring calculator with exp) Cox-Regression
Descriptive Statistics In SAS Exploring Your Data.
Chapter 11 Survival Analysis Part 3. 2 Considering Interactions Adapted from "Anderson" leukemia data as presented in Survival Analysis: A Self-Learning.
GRAPHS OF MEANS How is a Graph of Means Constructed? What are Error Bars? How Can a Graph Indicate Statistical Significance?
Chapter 14 Analyzing Quantitative Data. LEVELS OF MEASUREMENT Nominal Measurement Nominal Measurement Ordinal Measurement Ordinal Measurement Interval.
Chap 9-1 Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chapter 9 Estimation: Additional Topics Statistics for Business and Economics.
Copyright © 2014 Pearson Education, Inc.12-1 SPSS Core Exam Guide for Spring 2014 The goal of this guide is to: Be a side companion to your study, exercise.
Summary of Quantitative Analysis Neuman and Robson Ch. 11
Power and Sample Size (At study design stage before doing the study): “How large a sample size do I need to have a good chance of statistically finding.
Assumption of Homoscedasticity
In SAS March 11, Mariya Cheryomina.  power (π) + β = 1  β = (1- π) = probability of accepting false Ho (ie. reject true Ha) - probability of.
Survival Analysis A Brief Introduction Survival Function, Hazard Function In many medical studies, the primary endpoint is time until an event.
The Practice of Social Research
SAS Lecture 5 – Some regression procedures Aidan McDermott, April 25, 2005.
Inferential Statistics: SPSS
How to Analyze Data? Aravinda Guntupalli. SPSS windows process Data window Variable view window Output window Chart editor window.
Overview of Meta-Analytic Data Analysis
Copyright © 2013, 2009, and 2007, Pearson Education, Inc. Chapter 14 Comparing Groups: Analysis of Variance Methods Section 14.2 Estimating Differences.
Copyright © 2012 Wolters Kluwer Health | Lippincott Williams & Wilkins Chapter 17 Inferential Statistics.
Topics: Statistics & Experimental Design The Human Visual System Color Science Light Sources: Radiometry/Photometry Geometric Optics Tone-transfer Function.
Proc freq: Five secrets* *Okay, well, lesser known facts.
Statistical Decision Making. Almost all problems in statistics can be formulated as a problem of making a decision. That is given some data observed from.
Hypothesis Testing Using the Two-Sample t-Test
Multinomial Distribution
April 6 Logistic Regression –Estimating probability based on logistic model –Testing differences among multiple groups –Assumptions for model.
A Casual Tutorial on Sample Size Planning for Multiple Regression Models D. Keith Williams M.P.H. Ph.D. Department of Biostatistics.
April 4 Logistic Regression –Lee Chapter 9 –Cody and Smith 9:F.
4 Hypothesis & Testing. CHAPTER OUTLINE 4-1 STATISTICAL INFERENCE 4-2 POINT ESTIMATION 4-3 HYPOTHESIS TESTING Statistical Hypotheses Testing.
Determination of Sample Size: A Review of Statistical Theory
1 An Introduction to SPSS for Windows Jie Chen Ph.D. 6/4/20161.
Statistical Inference for more than two groups Peter T. Donnan Professor of Epidemiology and Biostatistics Statistics for Health Research.
AnnMaria De Mars, Ph.D. The Julia Group Santa Monica, CA Categorical data analysis: For when your data DO fit in little boxes.
STATISTICAL ANALYSIS FOR THE MATHEMATICALLY-CHALLENGED Associate Professor Phua Kai Lit School of Medicine & Health Sciences Monash University (Sunway.
General Linear Model 2 Intro to ANOVA.
Categorical data analysis: An overview of statistical techniques AnnMaria De Mars The Julia Group AnnMaria De Mars The Julia Group.
11/23/2015Slide 1 Using a combination of tables and plots from SPSS plus spreadsheets from Excel, we will show the linkage between correlation and linear.
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.
Chapter Twelve The Two-Sample t-Test. Copyright © Houghton Mifflin Company. All rights reserved.Chapter is the mean of the first sample is the.
STAT 3120 Statistical Methods I Statistical Power.
1 STA 617 – Chp10 Models for matched pairs Summary  Describing categorical random variable – chapter 1  Poisson for count data  Binomial for binary.
Copyright © 2013 Pearson Education, Inc. All rights reserved Chapter 9 Inferences Based on Two Samples Confidence Intervals and Tests of Hypotheses.
Introducing Communication Research 2e © 2014 SAGE Publications Chapter Seven Generalizing From Research Results: Inferential Statistics.
Topic 20: Single Factor Analysis of Variance. Outline Analysis of Variance –One set of treatments (i.e., single factor) Cell means model Factor effects.
© 2011 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license.
1 Always be mindful of the kindness and not the faults of others.
Customize SAS Output Using ODS Joan Dong. The Output Delivery System (ODS) gives you greater flexibility in generating, storing, and reproducing SAS procedure.
Outline of Today’s Discussion 1.Practice in SPSS: Scatter Plots 2.Practice in SPSS: Correlations 3.Spearman’s Rho.
Beginning Statistics Table of Contents HAWKES LEARNING SYSTEMS math courseware specialists Copyright © 2008 by Hawkes Learning Systems/Quant Systems, Inc.
Dependent Variable Discrete  2 values – binomial  3 or more discrete values – multinomial  Skewed – e.g. Poisson Continuous  Non-normal.
CRD, Strength of Association, Effect Size, Power, and Sample Size Calculations BUSI 6480 Lecture 4.
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.
ANOVA and Multiple Comparison Tests
Who Has the Power? Proc Power Kelly Guyton SAS Final Presentation.
STATISTICAL TESTS USING SPSS Dimitrios Tselios/ Example tests “Discovering statistics using SPSS”, Andy Field.
Appendix I A Refresher on some Statistical Terms and Tests.
Applied Business Forecasting and Regression Analysis
This Week Review of estimation and hypothesis testing
Microsoft Office Illustrated
Module 22: Proportions: One Sample
6-1 Introduction To Empirical Models
Introduction to ANOVA.
Inferences about Population Means
15.1 The Role of Statistics in the Research Process
Using Simulation to Evaluate Statistical Techniques.
Sample Size and Power Part II
Pearson Correlation and R2
Presentation transcript:

Proc Power in SAS 9.1

Outline Sample size and power calculations Customizing plots of power function ODS Tables

Statistical analysis covered in the power procedure t tests for means equivalence tests for means confidence intervals for means tests of binomial proportions multiple regression tests of correlation and partial correlation one-way analysis of variance rank tests for comparing two survival curves

Syntax PROC POWER ; MULTREG ; ONECORR ; ONESAMPLEFREQ ; ONESAMPLEMEANS ; ONEWAYANOVA ; PAIREDFREQ ; PAIREDMEANS ; TWOSAMPLEFREQ ; TWOSAMPLEMEANS ; TWOSAMPLESURVIVAL ; PLOT ;

Twosamplemeans statement Twosamplemeans ; Performing power and sample size analyses for two- independent-sample versions of pooled and unpooled t- tests, equivalence tests and confidence interval precision. : design, data analysis method, variability, type I Error, effect size, power, sample size.

Two sample independent mean **missing value identifies a parameter as result parameter; Proc power; twosamplemeans test=diff dist=normal meandiff = stddev= 8 to 9 by 0.5 groupweights = (1 2) power = 0.8 ntotal =.; plot y=power min=0.5 max=0.99;

Two-sample t Test for Mean Difference

Two sample independent mean Proc power; twosamplemeans meandiff = stddev=8 to 9 by 0.5 groupweights=(1 2) power =. ntotal = 249; plot x=n min=150 max=400; run;

Two-sample t Test

Twosamplefreq statement Twosamplefreq ; Do power and sample size analyses for tests of two independent proportions. Pearson’s chi-square, Fisher’s exact, and likelihood ratio chi-square tests are supported.

Fisher’s Exact Test Proc power; Twosamplefreq test=fisher Proportiondiff = 0.10 to 0.15 by 0.01 Refproportion = 0.20 npergroup=. Power = 0.85; plot y=power min=0.5 max=0.99; Run;

Fisher's Exact Conditional Test for Two Proportions

Twosamplesurvival Statement Twosamplesurvival ; Power and sample size analyses for comparing two survival curves by the log- rank, Gehan, and Tarone-Ware rank tests.

Survival analysis proc power; twosamplesurvival test = logrank groupmedsurtimes = (16 22) accrualtime = 6 totaltime = 18 groupns = 40 | 60 power =. ; run;

Log-Rank Test for Two Survival Curves

Customizing Plots

Adding reference lines Axis Options in Plot statement: XOPTS: specify plot characteristics pertaining to the x-axis. - REF=number-list : specifies locations for reference lines extending from the x-axis across the entire plotting region. -CROSSREF=YES or NO: specifies whether the reference lines defined by REF should be crossed with a reference line on y-axis that indicates the solution point on the curve. YOPTS

Adding reference lines *add reference lines to highlight power=0.8 and power=0.9; Proc power plotonly; twosamplemeans meandiff = 3 4 stddev=8 9 power =. ntotal = 100; plot x=n min=20 max=500 yopts=(ref= ); run;

plot x=n min=20 max=500 yopts=(ref= )

yopts=(ref= crossref=yes)

yopts=(ref=0.9) xopts=(ref=100 crossref=yes)

Linking plot features to parameters Vary (feature... Feature Specify how plot features should be linked to Varying analysis parameters. Available features are color, linestyle, panel and symbol.

Linking plot features to parameters Proc power plotonly; twosamplemeans meandiff = 3 4 stddev=8 9 power = 0.9 ntotal =.; plot y=power min=0.5 max=0.95; run;

vary (linestyle by meandiff, symbol by stddev)

vary (symbol by meandiff, color by stddev);

Choosing Legend Styles using “Key” option Proc power plotonly; twosamplemeans meandiff = 3 4 stddev=8 9 power = 0.9 ntotal =.; plot y=power min=0.5 max=0.95 key = bycurve; run;

key = byfeature

key = byfeature (pos=inset)

key = bycurve

key = bycurve (numbers=off pos=inset)

key = oncurves

ODS Tables

ODS tables FixedElements: including all single-value Analysis parameters Output: showing all input and computed analysis parameters, error descriptions PlotContent: data contained in plots including analysis and parameters and indices identifying plot features

ODS path names The ODS path names are created as follows. - Power..FixedElements - Power..Output - Power..PlotContent