March 28, 30 Return exam Analyses of covariance 2-way ANOVA Analyses of binary outcomes.

Slides:



Advertisements
Similar presentations
1-Way Analysis of Variance
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.
Research Support Center Chongming Yang
Logistic Regression I Outline Introduction to maximum likelihood estimation (MLE) Introduction to Generalized Linear Models The simplest logistic regression.
Statistical Analysis Professor Lynne Stokes Department of Statistical Science Lecture 15 Analysis of Data from Fractional Factorials and Other Unbalanced.
Factorial ANOVA More than one categorical explanatory variable.
Statistical Analysis Professor Lynne Stokes Department of Statistical Science Lecture #19 Analysis of Designs with Random Factor Levels.
EPI 809/Spring Probability Distribution of Random Error.
Creating Graphs on Saturn GOPTIONS DEVICE = png HTITLE=2 HTEXT=1.5 GSFMODE = replace; PROC REG DATA=agebp; MODEL sbp = age; PLOT sbp*age; RUN; This will.
Some Terms Y =  o +  1 X Regression of Y on X Regress Y on X X called independent variable or predictor variable or covariate or factor Which factors.
Reading – Linear Regression Le (Chapter 8 through 8.1.6) C &S (Chapter 5:F,G,H)
Where we’ve been & where we’re going We can use data to address following questions: 1.Question:Is a mean = some number? Large sample z-test and CI Small.
Lesson #23 Analysis of Variance. In Analysis of Variance (ANOVA), we have: H 0 :  1 =  2 =  3 = … =  k H 1 : at least one  i does not equal the others.
ANalysis Of VAriance (ANOVA) Comparing > 2 means Frequently applied to experimental data Why not do multiple t-tests? If you want to test H 0 : m 1 = m.
Lesson #32 Simple Linear Regression. Regression is used to model and/or predict a variable; called the dependent variable, Y; based on one or more independent.
Chapter 11 Survival Analysis Part 2. 2 Survival Analysis and Regression Combine lots of information Combine lots of information Look at several variables.
This Week Continue with linear regression Begin multiple regression –Le 8.2 –C & S 9:A-E Handout: Class examples and assignment 3.
Lecture 5 Correlation and Regression
© Copyright 2000, Julia Hartman 1 An Interactive Tutorial for SPSS 10.0 for Windows © Analysis of Covariance (GLM Approach) by Julia Hartman Next.
Ch 10 Comparing Two Proportions Target Goal: I can determine the significance of a two sample proportion. 10.1b h.w: pg 623: 15, 17, 21, 23.
Results of Monotherapy in ALLHAT: On-treatment Analyses ALLHAT Outcomes for participants who received no step-up drugs.
Topic 28: Unequal Replication in Two-Way ANOVA. Outline Two-way ANOVA with unequal numbers of observations in the cells –Data and model –Regression approach.
 Combines linear regression and ANOVA  Can be used to compare g treatments, after controlling for quantitative factor believed to be related to response.
Today: Quizz 8 Friday: GLM review Monday: Exam 2.
More complicated ANOVA models: two-way and repeated measures Chapter 12 Zar Chapter 11 Sokal & Rohlf First, remember your ANOVA basics……….
April 11 Logistic Regression –Modeling interactions –Analysis of case-control studies –Data presentation.
1 Experimental Statistics - week 10 Chapter 11: Linear Regression and Correlation.
23-1 Analysis of Covariance (Chapter 16) A procedure for comparing treatment means that incorporates information on a quantitative explanatory variable,
1 Experimental Statistics - week 10 Chapter 11: Linear Regression and Correlation Note: Homework Due Thursday.
Analysis of Covariance, ANCOVA (GLM2)
Analyses of Covariance Comparing k means adjusting for 1 or more other variables (covariates) Ho: u 1 = u 2 = u 3 (Adjusting for X) Combines ANOVA and.
Testing Multiple Means and the Analysis of Variance (§8.1, 8.2, 8.6) Situations where comparing more than two means is important. The approach to testing.
GENERAL LINEAR MODELS Oneway ANOVA, GLM Univariate (n-way ANOVA, ANCOVA)
April 6 Logistic Regression –Estimating probability based on logistic model –Testing differences among multiple groups –Assumptions for model.
April 4 Logistic Regression –Lee Chapter 9 –Cody and Smith 9:F.
Analysis of Covariance adjusting for potential confounds.
The Completely Randomized Design (§8.3)
EDCI 696 Dr. D. Brown Presented by: Kim Bassa. Targeted Topics Analysis of dependent variables and different types of data Selecting the appropriate statistic.
1 Experimental Statistics - week 14 Multiple Regression – miscellaneous topics.
Analysis of Covariance Combines linear regression and ANOVA Can be used to compare g treatments, after controlling for quantitative factor believed to.
Topic 26: Analysis of Covariance. Outline One-way analysis of covariance –Data –Model –Inference –Diagnostics and rememdies Multifactor analysis of covariance.
PSYC 3030 Review Session April 19, Housekeeping Exam: –April 26, 2004 (Monday) –RN 203 –Use pencil, bring calculator & eraser –Make use of your.
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.
Irwin/McGraw-Hill © Andrew F. Siegel, 1997 and Methods and Applications CHAPTER 15 ANOVA : Testing for Differences among Many Samples, and Much.
Topic 24: Two-Way ANOVA. Outline Two-way ANOVA –Data –Cell means model –Parameter estimates –Factor effects model.
Experimental Statistics - week 3
Today: March 7 Data Transformations Rank Tests for Non-Normal data Solutions for Assignment 4.
1 Statistics 262: Intermediate Biostatistics Regression Models for longitudinal data: Mixed Models.
1 Experimental Statistics - week 13 Multiple Regression Miscellaneous Topics.
Experimental Statistics - week 9
Topic 22: Inference. Outline Review One-way ANOVA Inference for means Differences in cell means Contrasts.
Biostatistics Case Studies Peter D. Christenson Biostatistician Session 3: Missing Data in Longitudinal Studies.
Biostatistics Regression and Correlation Methods Class #10 April 4, 2000.
Factorial BG ANOVA Psy 420 Ainsworth. Topics in Factorial Designs Factorial? Crossing and Nesting Assumptions Analysis Traditional and Regression Approaches.
1 Experimental Statistics - week 11 Chapter 11: Linear Regression and Correlation.
1 Linear Regression Model. 2 Types of Regression Models.
Education 793 Class Notes ANCOVA Presentation 11.
Lesson 10 - Topics SAS Procedures for Standard Statistical Tests and Analyses Programs 19 and 20 LSB 8:16-17.
Multiple Regression.
Today: Feb 28 Reading Data from existing SAS dataset One-way ANOVA
Where we’ve been & where we’re going
ANOVA Econ201 HSTS212.
Hypothesis testing using contrasts
12 Inferential Analysis.
Least Squares ANOVA & ANCOV
Multiple Regression.
Joanna Romaniuk Quanticate, Warsaw, Poland
Experimental Statistics - Week 4 (Lab)
12 Inferential Analysis.
ANOVA: Analysis of Variance
Presentation transcript:

March 28, 30 Return exam Analyses of covariance 2-way ANOVA Analyses of binary outcomes

Exam 1 Scores N = 23 75% Q % Median 83 25% Q1 74 Mean = 83.7 SD = A 89-89B 70-79C 30% of Grade 30% Exam 2 30% Assignments 10% Project

Analysis of Variance ANOVA simultaneously tests for difference in k means Y - continuous k samples from k normal distributions each size n i, not necessarily equal each with possibly different mean each with constant variance  2

Analyses of Covariance Comparing k means adjusting for 1 or more other variables (covariates) Uses –Randomized students to adjust for an imbalance among treatments in a baseline factor. –In observational studies controlling for a confounding factor –To throw light on the nature of treatment effects in a randomized study –Improve precision of estimated differences among treatments

Analyses of Covariance Comparing k means adjusting for 1 or more other variables (covariates) Compute adjusted (or least square) means. Sometimes called ANCOVA

Original Use Fisher (1941) the Y were yields of tea bushes in an experiment. But the luck of the draw, some treatments will have been allotted to a more productive set of bushes than other treatments Use as an adjustment variable the yields of the bushes in the previous year.

Adjusted Means Computation YBAR i = Mean of Y for group I XBAR i = Mean of X for group I XBAR = Mean of X for all groups combined  =Regression slope of X with Y YBAR(A) i = Adjusted mean for group I YBAR(A) i = YBAR i –  XBAR i – XBAR) Adjustment

Adjusted Means Computation Observations YBAR(A) i = YBAR i –  XBAR i – XBAR) 1)If  then adjusted mean equals unadjusted mean 2)If mean of X is same for all group then adjusted mean equals unadjusted mean

Adjusted Mean Interpretation The mean of Y for the group if the mean of X for the group was at the overall mean. Uses a model to make the mean of X the same for all groups What would the means have been if all groups had the same mean of X?

Example from TOMHS Compare 12-month visit mean serum cholesterol between diuretic group and placebo group. 12-mo Avg.Baseline Avg. Diuretic Placebo Diff: Note: Diuretic group started out with higher cholesterols so may want to adjust for this difference.

Computing the Adjusted Means 12-mo Avg.Baseline Avg. Diuretic Placebo Total227.0  =0.894Regression slope of 12-month cholesterol on baseline cholesterol YBAR(A) (Diur)= – (230.7 – 227.0) = – (3.7) = YBAR(A) (Plac)= – (224.9 – 227.0) = – (-3.7) =

SAS Code PROC GLM; CLASS group; MODEL chol12 = group cholbl/SS3 SOLUTION; MEANS group; LSMEANS group; ESTIMATE ‘Adjusted Mean Dif' group 1 -1; RUN;

SAS GLM Output Source DF Type III SS Mean Square F Value Pr > F GROUP cholbl <.0001 Standard Parameter Estimate Error t Value Pr > |t| Intercept B GROUP B GROUP B... cholbl <.0001 Regression slope SOLUTION

SAS GLM Output Level of CHOL cholbl GROUP N Mean Std Dev Mean Std Dev Least Squares Means CHOL12 GROUP LSMEAN Standard Parameter Estimate Error t Value Pr > |t| dif LSMEANS group; ESTIMATE 'dif' group 1 -1; dif

Two-Way ANOVA Two categorical factors related to a continuous outcome (Factor A and factor B). If factors are allocated randomly to all combinations of A and B then design called factorial design Questions asked –Overall is A related to Y –Overall is B related to Y –Does the effect of A on Y depend on level of B Example –A = Race; B = BP drug; Y = BP response –A = Vitamin E (y/n); aspirin use (y/n)

Factorial Design Example Aspirin + Vitamin E Aspirin + Placebo for Vitamin E Placebo for Aspirin + Vitamin E Placebo for Aspirin + Placebo for Vitamin E A = Aspirin use (yes or no) B = Vitamin E use (yes or no) Placebo for aspirin and placebo for Vitamin E

TOMHS Example Question: Do certain BP medications differ in lowering blood pressure in blacks compared to whites? Change in SBP (mm Hg) Diuretic  Blocker Blacks Whites Difference Is the difference –2.2 significantly different from +9.1

SAS Code LIBNAME tomhs 'C:\my documents\ph5415\'; DATA temp; SET tomhs.bpstudy; * Choose diuretic and alpha blocker groups; * Variable black = 1 or 2; if group in(3,4); sbpdif = sbp12 - sbpbl; RUN; PROC GLM DATA=temp; CLASS black group; MODEL sbpdif = black group black*group; MEANS black*group; RUN; Tests for interaction

SAS OUTPUT The GLM Procedure Level of Level of sbpdif GROUP BLACK N Mean Std Dev

SAS OUTPUT The GLM Procedure Dependent Variable: sbpdif Sum of Source DF Squares Mean Square F Value Pr > F Model Error Corrected Total Source DF Type III SS Mean Square F Value Pr > F GROUP <.0001 BLACK GROUP*BLACK

Your Turn Using TOMHS data test