22
Part V The Generalized Linear Model Chapter 16 Introduction

Part V The Generalized Linear Model

  • Upload
    jayden

  • View
    136

  • Download
    6

Embed Size (px)

DESCRIPTION

Part V The Generalized Linear Model. Chapter 16 Introduction. GENERAL LINEAR MODELS. ε ~ Normal. R: lm(). ANOVA. Multiple Linear Regression. t-test. Simple Linear Regression. ANCOVA. GENERALIZED LINEAR MODELS. Linear combination of parameters . R: glm(). Multinomial. Binomial. - PowerPoint PPT Presentation

Citation preview

Page 1: Part V The Generalized  Linear Model

Part VThe Generalized Linear Model

Chapter 16 Introduction

Page 2: Part V The Generalized  Linear Model

t-testANOVA

Simple Linear Regression

Multiple Linear Regression

ANCOVA

GENERAL LINEAR MODELSε ~ Normal R: lm()

Page 3: Part V The Generalized  Linear Model

t-testANOVA

Simple Linear Regression

Multiple Linear Regression

ANCOVA

PoissonBinomial

Negative Binomial Gamma

Multinomial

GENERALIZED LINEAR MODELS

Inverse Gaussian

Exponential

GENERAL LINEAR MODELSε ~ Normal

Linear combination of parameters

R: lm()

R: glm()

Page 4: Part V The Generalized  Linear Model

Generalized Linear Model (GzLM)Introduction

• Assumptions of GLM not always met using biological data

Page 5: Part V The Generalized  Linear Model

Generalized Linear Model (GzLM)Introduction

Page 6: Part V The Generalized  Linear Model

Generalized Linear Model (GzLM)Introduction

Page 7: Part V The Generalized  Linear Model

Generalized Linear Model (GzLM)Introduction

• Assumptions of GLM not always met using biological data– Transformations typically recommended– We can randomize…• Assumes parameter estimates (means, slopes, etc.) are

correct– But a few large counts or many zeros will influence skew our

estimates

Page 8: Part V The Generalized  Linear Model

Generalized Linear Model (GzLM)Introduction

Page 9: Part V The Generalized  Linear Model

Generalized Linear Model (GzLM)Introduction

Page 10: Part V The Generalized  Linear Model

Generalized Linear Model (GzLM)Introduction

• Assumptions of GLM not always met using biological data– Transformations typically recommended– We can randomize…• Assumes parameter estimates (means, slopes, etc.) are

correct– But a few large counts or many zeros will influence skew our

estimates

– Best to use an appropriate error structure under the Generalized Linear Model framework

Page 11: Part V The Generalized  Linear Model

Generalized Linear Model (GzLM)Introduction

Poisson error structure

Page 12: Part V The Generalized  Linear Model

Generalized Linear Model (GzLM)Introduction

Binomial error structure

Page 13: Part V The Generalized  Linear Model

Generalized Linear Model (GzLM)Advantages

• Assumptions more evident• Decouples assumptions• Improves quality• Greater flexibility

Page 14: Part V The Generalized  Linear Model

Generalized Linear Model (GzLM)Advantages

• Assumptions more evident• Decouples assumptions• Improves quality• Greater flexibility

Page 15: Part V The Generalized  Linear Model

Part VThe Generalized Linear Model

Chapter 16.1 Goodness of Fit

Page 16: Part V The Generalized  Linear Model

Goodness of Fit - The Chi-square statistic

• Have to learn a new concept to apply GzLM:– Goodness of Fit

• Chi-square statistic• G-statistic

Page 17: Part V The Generalized  Linear Model

Classic Chi-square Statistic Example

Gregor Mendel’s Peas

Purple: White:

χ 2=∑ (𝑜𝑏𝑠𝑒𝑟𝑣𝑒𝑑−𝑒𝑥𝑝𝑒𝑐𝑡𝑒𝑑 )2𝑒𝑥𝑝𝑒𝑐𝑡𝑒𝑑

Page 18: Part V The Generalized  Linear Model

χ2 = 0.3907df = 1p = 0.532

Classic Chi-square Statistic Example

Gregor Mendel’s Peas

Page 19: Part V The Generalized  Linear Model

χ2 = 0.3907df = 1p = 0.532

Classic Chi-square Statistic Example

Gregor Mendel’s Peas

• Deviation from genetic model (3:1) not significant

Page 20: Part V The Generalized  Linear Model

Goodness of Fit - The G-statistic

• Can deal with complex models• Based in likelihood

Page 21: Part V The Generalized  Linear Model

Goodness of Fit - The G-statistic

Smaller deviation smaller G-statistic

G-statistic p-value = 0.53

Page 22: Part V The Generalized  Linear Model

Improvement in Fit - ΔG

• Next time we will…– Compare G values (ΔG) to assess improvement in

fit of one model over another