Postgraduate course: Anova and Repeated measurements Day 4 (part 2 )

Similar documents
Postgraduate course: Anova and Repeated measurements Day 2 (part 2) Niels Trolle Andersen, Dept. of Biostatistics, Aarhus University, June 2009

Postgraduate course: Anova and Repeated measurements Day 2 (part 2) Mogens Erlandsen, Department of Biostatistics, Aarhus University, November 2010

Analysis of repeated measurements (KLMED8008)

Repeated Measures Analysis of Variance

ANCOVA. Psy 420 Andrew Ainsworth

ANOVA Longitudinal Models for the Practice Effects Data: via GLM

General Linear Model (Chapter 4)

Linear Modelling in Stata Session 6: Further Topics in Linear Modelling

Two Sample Problems. Two sample problems

WITHIN-PARTICIPANT EXPERIMENTAL DESIGNS

T. Mark Beasley One-Way Repeated Measures ANOVA handout

ANOVA in SPSS. Hugo Quené. opleiding Taalwetenschap Universiteit Utrecht Trans 10, 3512 JK Utrecht.

Homework Solutions Applied Logistic Regression

Repeated Measures Part 2: Cartoon data

Correlation and Simple Linear Regression

ANOVA continued. Chapter 10

1998, Gregory Carey Repeated Measures ANOVA - 1. REPEATED MEASURES ANOVA (incomplete)

Outline for Today. Review of In-class Exercise Bivariate Hypothesis Test 2: Difference of Means Bivariate Hypothesis Testing 3: Correla

ANOVA continued. Chapter 11

Psy 420 Final Exam Fall 06 Ainsworth. Key Name

T-test: means of Spock's judge versus all other judges 1 12:10 Wednesday, January 5, judge1 N Mean Std Dev Std Err Minimum Maximum

ANOVA continued. Chapter 10

sociology 362 regression

GLM Repeated Measures

Statistics in Stata Introduction to Stata

STATISTICAL ANALYSIS. Repeated Measures and (M)ANOVA designs

Analysis of repeated measurements (KLMED8008)

Group Comparisons: Differences in Composition Versus Differences in Models and Effects

ECON Introductory Econometrics. Lecture 5: OLS with One Regressor: Hypothesis Tests

Working with Stata Inference on the mean

sociology 362 regression

Outline. PubH 5450 Biostatistics I Prof. Carlin. Confidence Interval for the Mean. Part I. Reviews

Repeated-Measures ANOVA in SPSS Correct data formatting for a repeated-measures ANOVA in SPSS involves having a single line of data for each

LONGITUDINAL DATA ANALYSIS Homework I, 2005 SOLUTION. A = ( 2) = 36; B = ( 4) = 94. Therefore A B = 36 ( 94) = 3384.

1 DV is normally distributed in the population for each level of the within-subjects factor 2 The population variances of the difference scores

Topic 12. The Split-plot Design and its Relatives (Part II) Repeated Measures [ST&D Ch. 16] 12.9 Repeated measures analysis

Checking model assumptions with regression diagnostics

2.1. Consider the following production function, known in the literature as the transcendental production function (TPF).

Prepared by: Prof. Dr Bahaman Abu Samah Department of Professional Development and Continuing Education Faculty of Educational Studies Universiti

Addition of Center Points to a 2 k Designs Section 6-6 page 271

****Lab 4, Feb 4: EDA and OLS and WLS

ECON Introductory Econometrics. Lecture 17: Experiments

Research Design - - Topic 8 Hierarchical Designs in Analysis of Variance (Kirk, Chapter 11) 2008 R.C. Gardner, Ph.D.

Analysis of Longitudinal Data: Comparison Between PROC GLM and PROC MIXED. Maribeth Johnson Medical College of Georgia Augusta, GA

General Linear Model

Lecture 2 Estimating the population mean

Introductory Econometrics. Lecture 13: Hypothesis testing in the multiple regression model, Part 1

Problem Set #3-Key. wage Coef. Std. Err. t P> t [95% Conf. Interval]

Lecture 7: OLS with qualitative information

Sociology Exam 2 Answer Key March 30, 2012

UV Absorbance by Fish Slime

Section Least Squares Regression

ETH p. 1/21. Split Plot Designs. Large and small units Confounding main effects Repeated measures anova

SOCY5601 Handout 8, Fall DETECTING CURVILINEARITY (continued) CONDITIONAL EFFECTS PLOTS

Research Design - - Topic 12 MRC Analysis and Two Factor Designs: Completely Randomized and Repeated Measures 2010 R.C. Gardner, Ph.D.

Descriptive Statistics

Introduction to SAS proc mixed

Topic 12. The Split-plot Design and its Relatives (continued) Repeated Measures

Political Science 552

Problem Set #5-Key Sonoma State University Dr. Cuellar Economics 317- Introduction to Econometrics

Multivariate Tests. Mauchly's Test of Sphericity

df=degrees of freedom = n - 1

Multiple Regression: Inference

Introduction to SAS proc mixed

Interpreting coefficients for transformed variables

Exercices for Applied Econometrics A

Practice 2SLS with Artificial Data Part 1

ANOVA approaches to Repeated Measures. repeated measures MANOVA (chapter 3)

unadjusted model for baseline cholesterol 22:31 Monday, April 19,

Frequency table: Var2 (Spreadsheet1) Count Cumulative Percent Cumulative From To. Percent <x<=

SPSS Guide For MMI 409

Failure Time of System due to the Hot Electron Effect

Introduction to Crossover Trials

General linear models. One and Two-way ANOVA in SPSS Repeated measures ANOVA Multiple linear regression

Sociology 63993, Exam 2 Answer Key [DRAFT] March 27, 2015 Richard Williams, University of Notre Dame,

BIOL 458 BIOMETRY Lab 8 - Nested and Repeated Measures ANOVA

Lab 07 Introduction to Econometrics

Question 1a 1b 1c 1d 1e 2a 2b 2c 2d 2e 2f 3a 3b 3c 3d 3e 3f M ult: choice Points

1 Independent Practice: Hypothesis tests for one parameter:

1-Way ANOVA MATH 143. Spring Department of Mathematics and Statistics Calvin College

1: a b c d e 2: a b c d e 3: a b c d e 4: a b c d e 5: a b c d e. 6: a b c d e 7: a b c d e 8: a b c d e 9: a b c d e 10: a b c d e

Lecture 3: Analysis of Variance II

Lab 10 - Binary Variables

Analysis of Covariance

BIOSTATS 640 Spring 2018 Unit 2. Regression and Correlation (Part 1 of 2) STATA Users

Construct factor from dummy variables Group 1 Group 2 Group 3 Group 4

ECO220Y Simple Regression: Testing the Slope

" M A #M B. Standard deviation of the population (Greek lowercase letter sigma) σ 2

Testing methodology. It often the case that we try to determine the form of the model on the basis of data

One-stage dose-response meta-analysis

Variance. Standard deviation VAR = = value. Unbiased SD = SD = 10/23/2011. Functional Connectivity Correlation and Regression.

Problem Set 1 ANSWERS

Name: Biostatistics 1 st year Comprehensive Examination: Applied in-class exam. June 8 th, 2016: 9am to 1pm

Chapter 14: Repeated-measures designs

Problem set - Selection and Diff-in-Diff

Correlation and regression. Correlation and regression analysis. Measures of association. Why bother? Positive linear relationship

ANOVA: Analysis of Variation

Introduction to Power and Sample Size Analysis

8/28/2017. Repeated-Measures ANOVA. 1. Situation/hypotheses. 2. Test statistic. 3.Distribution. 4. Assumptions

Biostatistics Quantitative Data

Transcription:

Postgraduate course: Anova Repeated measurements Day (part ) Postgraduate course in ANOVA Repeated Measurements Day (part ) Summarizing homework exercises. Nielrolle Andersen Dept. of Biostatistics, Aarhus University Exercise : C- reactive protein Using the MANOVA we found a significant difference between the groups with respect to changes over time p=.9). We found a statistical significant changes over time in the -group (p=.7) in the -group (p=.). Assumptions fulfilled? Exercise : C- reactive protein (ln-transformed).. Helmut. Using the MANOVA we found no significant difference between the groups with respect to changes over time p=.7). We found a statistical significant changes over time in the -group (p=.) in the -group (p=.7). We found a significant difference between levels (the distance between the parel curves) in the groups (p=.). Assumptions fulfilled? Univariate Repeated Measurements ANOVA:original data anova creac_p group/id group time time*group, repeated(time) Parts of the output: Lowest b.s.e. variable: id Between-subjects error term: id group Levels: ( df) Covariance pooled over: group (for repeated variable) Repeated variable: time Huynh-Feldt epsilon =. Greenhouse-Geisser epsilon =.7 Box's conservative epsilon =. time..... time*group 7....7. Residual We found a significant difference between the groups with respect to changes over time p<. or =.).

Postgraduate course: Anova Repeated measurements Day (part ) Univariate Repeated Measurements ANOVA (ln-tansformed data): anova lcreac_p group/id group time time*group, repeated(time) Parts of the output: Between-subjects error term: id group Lowest b.s.e. variable: id Levels: ( df) Covariance pooled over: group (for repeated variable) Repeated variable: time Huynh-Feldt epsilon =.7 *Huynh-Feldt epsilon reset to. Greenhouse-Geisser epsilon =.79 Box's conservative epsilon =. time..... time*group..... Residual Vo significant difference between the groups with respect to changes over time p>. or. anova lcreac_p group/id group time, repeated(time) Parts of output Source Partial SS df MS F Prob > F Model.77.9.. group 7.7 7.7..9 id group..777 time.9979.97.9. Residual 7.7. Total.779 7.9 time.9.... Residual We found a statistical significant changes over time (p<.) We found a significant difference between levels (the distance between the apel curves) in the groups (p=.) Just as before. See next slide: The t test for comparing the sum between the groups:. generate float lcreac_p_sum= lcreac_p+lcreac_p+lcreac_p+lcreac_p. ttest lccreac_p_sum, by(group) 7 Estimates of the stard deviations correlations: Original data MS id con..7...7..979 Correlation. Group Obs Mean Std. Err. Std. Dev. [9% Conf. Interval].7.9. 9..9.7..7...9.7.79.7.79.77.9.7.7.9..9..7.7. combined.7.97.97.79.9 Ln transformed data MS id con Correlation diff -..79 -.79 -.97..9...79.97.. Degrees of freedom: Ho: mean() - mean() = diff = Ha: diff < Ha: diff!= Ha: diff >..7..7.79.7.7..77..9.7..9.7.7 t = -.97 t = -.97 t = -.97 P < t =. P > t =.9 P > t =.99 The differences between the groups becomes smer using the transformed data

Postgraduate course: Anova Repeated measurements Day (part ) 9 The probability plots for group : d_ - - - - dif d_ - - - - dif The probability plots for group : d_ - - - - dif - - - - Inv ers e N o r m al d_ - - - - dif - - - Inv er se N o r m al - - Inv erse N o rm al - - - dif d_ - - d_ - - dif d_ - - - - - - Inv ers e N o r m al d_ - - - - - - - - - Inv er se N o r m al ld_ ld_ -. - -. - -.. -. - - - - Inv erse N o rm al dif. -. -.. - -. -. -. - -. -. ld_ ld_ - -. - -. - -.. - - - dif - -.. dif -. -. - ld_ - -.. ld_ - -. - -.. dif -. -. -. -. Inv erse N o r m al -. - -.. Inv erse N o r m al ld_ - -.. ld_ - -. - -. dif - -.. Inv er se N o rm al dif - -. - -. Inv er se N o rm al The changes for each group : d_ - - - -.... G r ou p d_ - - - -.... G r o up Sum/difference plots, here -: No association between sum difference (changes) or between variation of changes sum in the ln-transformed data but maybe in original Yes, large change in group in the original data d_ - - ld_ - -.. ld_ - -. - -...... G r ou p.... G rou p.... G rou p ld_ ld_ d_ - - -. - -. - -.. -.... G r o up.... G ro up.... G ro up d_ - - c r ea c _p _ s u m ld_ - -. - -. c r ea c _ p_ s u m Conclusion: Use the ln-transforme data;the assumptions for MANOVA (almost) fulfilled for

Postgraduate course: Anova Repeated measurements Day (part ) Univariate Repeated Measurements ANOVA? bysort group: correlate lcreac_p lcreac_p lcreac_p lcreac_p, means -> group = (obs=) -- lcreac_p.97.777.9.9 lcreac_p.9.7..7979 lcreac_p.99.99.77.77 lcreac_p.77..7.97 lcreac~ lcreac~ lcreac~ lcreac~ -------------+------------------------------------ lcreac_p. lcreac_p.. lcreac_p..7. lcreac_p..7.7. group = (obs=) -- lcreac_p...97.9 lcreac_p..7..9 lcreac_p.7.79.9.79 lcreac_p..97.99.97 lcreac~ lcreac~ lcreac~ lcreac~ -------------+------------------------------------ lcreac_p. lcreac_p.7. lcreac_p... lcreac_p.... bysort group: correlate ld_ ld_ ld_, means -> group = (obs=) -- ld_ -.7.79 -.979. ld_ -.9.7 -.797. ld_ -.79. -.9 -.9 ld_ ld_ ld_ -------------+--------------------------- ld_. ld_.7. ld_.7.7. -> group = (obs=) -- ld_ -.997.77 -.9 ld_ -.77. -.9. ld_ -.77.97 -.9 -.7 ld_ ld_ ld_ -------------+--------------------------- ld_. ld_.9. ld_.7.7. It seems that Univariate Repeated Measurements ANOVA can be used. The C- reactive protein example. Result: We may describe the data with a figure showing the geomtric means (+/- sd from the ln-transformed data) with a table stating the three stard deviations (or coefficient of variation) the correlation for the two groups separately. SD CV.79.77...9..97.9.7.9..9...9... Correla -tion..7.7 correlat ion..7.7

Postgraduate course: Anova Repeated measurements Day (part ) At baseline: In the -group the geometric mean was.7 (9%CI.,., CV=.) in the sham group. (9%CI.,.7 CV=.). The ratio between the geometric means was.7 (9%CI.,. ) which was statisticy significant different from (p=.9). ttest lcreac_p, by(group) Group Obs Mean Std. Err. Std. Dev. [9% Conf. Interval].97.779.777.7.9..7..97. diff -.. -.99 -.99 Degrees of freedom: t = -.997 P > t =. Using the MANOVA we found no significant difference between the groups with respect to changes over time p=.). We found a common statistical significant changes over time(p<.), we estimated the ratio between the levels.7 (9%CI.,. ) which was statisticy significant different from (p=.)... ttest lccreac_p_sum, by(group) Divided by! diff -..79 -.79 -.97 Degrees of freedom: t = -.97 P > t =.9 Change from from baseline to end of study: In the -group the geometric mean increased by a factor. (9%CI.,.9) in the sham group the increase was. (9%CI.9,.). The ratio between the increases was. (9%CI.,.9) which was not statisticy significant different from (p=.). ttest ld_, by(group) Group Obs Mean Std. Err. Std. Dev. [9% Conf. Interval] -.79.7. -. -.9 -.77.79.97 -.7 -.7 diff.9.799 -..797 Degrees of freedom: t =.7 P > t =.9 If we use the Univariate Repeated Measurements ANOVA to estimate ratio s between the levels the common increase: The ratio between the levels is estimated to.7 (9%CI.7,. ) which was statisticy significant different from (p=.). (before:.7 (9%CI.,. ) p=.. ) The geometric means in both groups are estimated to increase by a factor. (9%CI.9,.9 ) which is statistical significant different from (p<.) (:. (9%CI.,.9), :. (9%CI.9,.).