Today: Lab 9ab due after lecture: CEQ Monday: Quizz 11: review Wednesday: Guest lecture – Multivariate Analysis Friday: last lecture: review – Bring questions.

Slides:



Advertisements
Similar presentations
Within Subjects Designs
Advertisements

© Department of Statistics 2012 STATS 330 Lecture 32: Slide 1 Stats 330: Lecture 32.
Log-linear and logistic models Generalised linear model ANOVA revisited Log-linear model: Poisson distribution logistic model: Binomial distribution Deviances.
Part III The General Linear Model Chapter 9 Regression.
Part V The Generalized Linear Model Chapter 16 Introduction.
EPI 809 / Spring 2008 Final Review EPI 809 / Spring 2008 Ch11 Regression and correlation  Linear regression Model, interpretation. Model, interpretation.
Lecture 23: Tues., Dec. 2 Today: Thursday:
Modeling Wim Buysse RUFORUM 1 December 2006 Research Methods Group.
1 BA 275 Quantitative Business Methods Residual Analysis Multiple Linear Regression Adjusted R-squared Prediction Dummy Variables Agenda.
Statistics 350 Lecture 16. Today Last Day: Introduction to Multiple Linear Regression Model Today: More Chapter 6.
Generalised linear models
Final Review Session.
PSYC512: Research Methods PSYC512: Research Methods Lecture 19 Brian P. Dyre University of Idaho.
Log-linear and logistic models Generalised linear model ANOVA revisited Log-linear model: Poisson distribution logistic model: Binomial distribution Deviances.
Log-linear and logistic models
Linear statistical models 2008 Count data, contingency tables and log-linear models Expected frequency: Log-linear models are linear models of the log.
Lecture 16 – Thurs, Oct. 30 Inference for Regression (Sections ): –Hypothesis Tests and Confidence Intervals for Intercept and Slope –Confidence.
Linear statistical models 2009 Count data  Contingency tables and log-linear models  Poisson regression.
Statistics 350 Lecture 17. Today Last Day: Introduction to Multiple Linear Regression Model Today: More Chapter 6.
Simple Linear Regression and Correlation
Regression Model Building Setting: Possibly a large set of predictor variables (including interactions). Goal: Fit a parsimonious model that explains variation.
Generalized Linear Models
Statistical hypothesis testing – Inferential statistics II. Testing for associations.
Review of Lecture Two Linear Regression Normal Equation
Simple Linear Regression
Lecture 6 Generalized Linear Models Olivier MISSA, Advanced Research Skills.
 Combines linear regression and ANOVA  Can be used to compare g treatments, after controlling for quantitative factor believed to be related to response.
Fixed vs. Random Effects Fixed effect –we are interested in the effects of the treatments (or blocks) per se –if the experiment were repeated, the levels.
Today: Quizz 8 Friday: GLM review Monday: Exam 2.
Part IV The General Linear Model. Multiple Explanatory Variables Chapter 13.3 Fixed *Random Effects Paired t-test.
Chapter 3: Generalized Linear Models 3.1 The Generalization 3.2 Logistic Regression Revisited 3.3 Poisson Regression 1.
Chapter 12 Multiple Linear Regression Doing it with more variables! More is better. Chapter 12A.
ALISON BOWLING THE GENERAL LINEAR MODEL. ALTERNATIVE EXPRESSION OF THE MODEL.
Excepted from HSRP 734: Advanced Statistical Methods June 5, 2008.
Statistics: Unlocking the Power of Data Lock 5 STAT 101 Dr. Kari Lock Morgan Multiple Regression SECTIONS 9.2, 10.1, 10.2 Multiple explanatory variables.
Generalized Linear Models All the regression models treated so far have common structure. This structure can be split up into two parts: The random part:
General Linear Models; Generalized Linear Models Hal Whitehead BIOL4062/5062.
Multiple Regression I 4/9/12 Transformations The model Individual coefficients R 2 ANOVA for regression Residual standard error Section 9.4, 9.5 Professor.
Linear Model. Formal Definition General Linear Model.
Copyright © 2013, 2009, and 2007, Pearson Education, Inc. Chapter 13 Multiple Regression Section 13.3 Using Multiple Regression to Make Inferences.
Multiple Regression BPS chapter 28 © 2006 W.H. Freeman and Company.
Generalized Linear Models (GLMs) & Categorical Data Analysis (CDA) in R Hong Tran, April 21, 2015.
Inference for Distributions of Categorical Variables (C26 BVD)
1 STA 617 – Chp10 Models for matched pairs Summary  Describing categorical random variable – chapter 1  Poisson for count data  Binomial for binary.
1 Follow the three R’s: Respect for self, Respect for others and Responsibility for all your actions.
Statistics: Unlocking the Power of Data Lock 5 STAT 101 Dr. Kari Lock Morgan 11/20/12 Multiple Regression SECTIONS 9.2, 10.1, 10.2 Multiple explanatory.
Math 4030 Final Exam Review. Probability (Continuous) Definition of pdf (axioms, finding k) Cdf and probability (integration) Mean and variance (short-cut.
Statistics……revisited
Statistics 2: generalized linear models. General linear model: Y ~ a + b 1 * x 1 + … + b n * x n + ε There are many cases when general linear models are.
Remembering way back: Generalized Linear Models Ordinary linear regression What if we want to model a response that is not Gaussian?? We may have experiments.
Dependent Variable Discrete  2 values – binomial  3 or more discrete values – multinomial  Skewed – e.g. Poisson Continuous  Non-normal.
Analysis of Covariance KNNL – Chapter 22. Analysis of Covariance Goal: To Compare treatments (1-Factor or Multiple Factors) after Controlling for Numeric.
Chapter 11: Categorical Data n Chi-square goodness of fit test allows us to examine a single distribution of a categorical variable in a population. n.
Data Screening. What is it? Data screening is very important to make sure you’ve met all your assumptions, outliers, and error problems. Each type of.
Analysis of variance approach to regression analysis … an (alternative) approach to testing for a linear association.
 Naïve Bayes  Data import – Delimited, Fixed, SAS, SPSS, OBDC  Variable creation & transformation  Recode variables  Factor variables  Missing.
Statistical Modelling
A priori violations In the following cases, your data violates the normality and homoskedasticity assumption on a priori grounds: (1) count data  Poisson.
B&A ; and REGRESSION - ANCOVA B&A ; and
Generalized Linear Models
Generalized Linear Models
Introduction to logistic regression a.k.a. Varbrul
Quantitative Methods What lies beyond?.
Regression Models - Introduction
Quantitative Methods What lies beyond?.
Chapter 3 : Random Variables
Regression, Part B: Going a bit deeper Assaf Oron, May 2008
Generalized Linear Models
Analysis of Covariance
Generalized Additive Model
Presentation transcript:

Today: Lab 9ab due after lecture: CEQ Monday: Quizz 11: review Wednesday: Guest lecture – Multivariate Analysis Friday: last lecture: review – Bring questions DEC 8 – 9am FINAL EXAM EN 2007

Biology 4605 / 7220Name ________________ Quiz #10a19 November What are the 2 main differences between general linear models and generalized linear models? 2. A generalized linear model links a response variable to one or more explanatory variables Xi according to a link function.

Biology 4605 / 7220Name ________________ Quiz #10a19 November What are the 2 main differences between general linear models and generalized linear models? Most common answers: A. Non –normal ε B. ANODEV instead of ANOVA table C. Link function 2. A generalized linear model links a response variable to one or more explanatory variables Xi according to a link function. conceptual implementation

GLM, GzLM, GAM A few concepts and ideas

GLM Model based statistics – we define the response and the explanatory without worrying about the name of the test

GLM t-test ANOVA Simple Linear Regression Multiple Linear Regression ANCOVA GENERAL LINEAR MODELS ε ~ Normal R: lm()

GLM An example from Lab 9

GLM Do fumigants (treatments) decrease the number of wire worms? #ww = β 0 + β treatment treatment + β row row + β column column treatment  fixed row  random column  random N=25

GLM N=25

GLM N=25

GLM N=25

GLM N=25

GLM p-value borderline Normality assumption not met

GLM N=25 p-value borderline Normality assumption not met n<30 Given that we do not violate the homogeneity assumption, randomizing will likely not change our decision… or will it? Let’s try  p rand = ( randomizations)

GLM Parameters: Means with 95% CI Anything wrong with this analysis?

GLM Response variable? Counts

GzLM Poisson error #ww = e μ + ε μ = β 0 + β treatment treatment + β row row + β column column

GzLM Poisson error #ww = e μ + ε μ = β 0 + β treatment treatment + β row row + β column column ALL fits > 0

GzLM Poisson error

t-test ANOVA Simple Linear Regression Multiple Linear Regression ANCOVA Poisson Binomial Negative Binomial Gamma Multinomial GENERALIZED LINEAR MODELS Inverse Gaussian Exponential GENERAL LINEAR MODELS ε ~ Normal Linear combination of parameters R: lm() R: glm() GzLM

#ww = e μ + ε μ = β 0 + β treatment treatment + β row row + β column column Generalized linear models have 3 components: Systematic Random Link function

GzLM #ww = e μ + ε μ = β 0 + β treatment treatment + β row row + β column column Generalized linear models have 3 components: Systematic linear predictor Random Link function

GzLM #ww = e μ + ε μ = β 0 + β treatment treatment + β row row + β column column Generalized linear models have 3 components: Systematic linear predictor Random probability distribution  poisson error Link function

GzLM #ww = e μ + ε μ = β 0 + β treatment treatment + β row row + β column column Generalized linear models have 3 components: Systematic linear predictor Random probability distribution  poisson error Link function log

GzLM

GLM An example from Lab 6

GLM Do movements of juvenile cod depend on time of day? distance = β 0 + β period period period  categorical

GLM

Anything wrong with this analysis?

GAM

t-test ANOVA Simple Linear Regression Multiple Linear Regression ANCOVA Poisson Binomial Negative Binomial Gamma Multinomial GENERALIZED LINEAR MODELS Inverse Gaussian Exponential Non-linear effect of covariates GENERALIZED ADDITIVE MODELS GENERAL LINEAR MODELS ε ~ Normal Linear combination of parameters R: lm() R: glm() R: gam() GAM

Generalized case of generalized linear models where the systematic component is not necessarily linear distance ~ s(period) y ~ s(x 1 ) + s(x 2 ) + x 3 + …. s: smooth function Spline functions are concerned with good approximation of functions over the whole of a region, and behave in a stable manner

GAM Smoothing - concept

Degree of smoothness -+ GAM How much smoothing?

GAM

t-test ANOVA Simple Linear Regression Multiple Linear Regression ANCOVA GENERAL LINEAR MODELS ε ~ Normal R: lm()

t-test ANOVA Simple Linear Regression Multiple Linear Regression ANCOVA Poisson Binomial Negative Binomial Gamma Multinomial GENERALIZED LINEAR MODELS Inverse Gaussian Exponential GENERAL LINEAR MODELS ε ~ Normal Linear combination of parameters R: lm() R: glm() Non-normal ε Link function

t-test ANOVA Simple Linear Regression Multiple Linear Regression ANCOVA Poisson Binomial Negative Binomial Gamma Multinomial GENERALIZED LINEAR MODELS Inverse Gaussian Exponential Non-linear effect of covariates GENERALIZED ADDITIVE MODELS GENERAL LINEAR MODELS ε ~ Normal Linear combination of parameters R: lm() R: glm() R: gam() Linear predictor involves sums of smooth functions of covariates