The Chicago Guide to Writing about Multivariate Analysis, 2 nd edition. Calculating the shape of a polynomial from regression coefficients Jane E. Miller,

Slides:



Advertisements
Similar presentations
Lesson 10: Linear Regression and Correlation
Advertisements

SOLVING QUADRATICS General Form: Where a, b and c are constants.
MAT 105 SPRING 2009 Quadratic Equations
Modeling with Polynomial Functions
A second order ordinary differential equation has the general form
Ch 3.5: Repeated Roots; Reduction of Order
Section 9.1 The Square Root Property Section 9.2 The Quadratic Formula.
C82MCP Diploma Statistics School of Psychology University of Nottingham 1 Linear Regression and Linear Prediction Predicting the score on one variable.
1 Learning Objectives for Section 1.3 Linear Regression After completing this section, you will be able to calculate slope as a rate of change. calculate.
Correlation and Linear Regression
Overview 4.2 Introduction to Correlation 4.3 Introduction to Regression.
The Chicago Guide to Writing about Multivariate Analysis, 2 nd edition. Organizing data in tables and charts: Different criteria for different tasks Jane.
Logarithmic specifications Jane E. Miller, PhD The Chicago Guide to Writing about Multivariate Analysis, 2 nd edition.
Chapter 13: Inference in Regression
Linear Regression and Correlation
The Chicago Guide to Writing about Multivariate Analysis, 2 nd edition. Creating effective tables and charts Jane E. Miller, PhD.
The Chicago Guide to Writing about Multivariate Analysis, 2 nd edition. Calculating interaction patterns from logit coefficients: Interaction between two.
Comparing overall goodness of fit across models
The Chicago Guide to Writing about Numbers, 2 nd edition. Summarizing a pattern involving many numbers: Generalization, example, exception (“GEE”) Jane.
The Chicago Guide to Writing about Multivariate Analysis, 2 nd edition. Preparing speaker’s notes and practicing your talk Jane E. Miller, PhD.
The Chicago Guide to Writing about Multivariate Analysis, 2nd Edition. Implementing “generalization, example, exception”: Behind-the-scenes work for summarizing.
Writing about ratios Jane E. Miller, PhD The Chicago Guide to Writing about Numbers, 2nd Edition.
Chapter 9 Analyzing Data Multiple Variables. Basic Directions Review page 180 for basic directions on which way to proceed with your analysis Provides.
The Chicago Guide to Writing about Numbers, 2 nd edition. Basics of writing about numbers: Reporting one number Jane E. Miller, PhD.
Chapter 10 Correlation and Regression
Least Squares Regression: y on x © Christine Crisp “Teach A Level Maths” Vol. 2: A2 Core Modules.
The Chicago Guide to Writing about Multivariate Analysis, 2 nd edition. Writing prose to present results of interactions Jane E. Miller, PhD.
The Chicago Guide to Writing about Multivariate Analysis, 2nd Edition. Data structure for a discrete-time event history analysis Jane E. Miller, PhD.
Sullivan – Fundamentals of Statistics – 2 nd Edition – Chapter 4 Section 2 – Slide 1 of 20 Chapter 4 Section 2 Least-Squares Regression.
Planning how to create the variables you need from the variables you have Jane E. Miller, PhD The Chicago Guide to Writing about Numbers, 2 nd edition.
The Chicago Guide to Writing about Multivariate Analysis, 2 nd edition. Criteria for choosing a reference category Jane E. Miller, PhD.
Choosing tools to present numbers: Tables, charts, and prose Jane E. Miller, PhD The Chicago Guide to Writing about Numbers, 2nd Edition.
The Chicago Guide to Writing about Multivariate Analysis, 2 nd edition. Defining the Goldilocks problem Jane E. Miller, PhD.
The Chicago Guide to Writing about Multivariate Analysis, 2nd Edition. Conducting post-hoc tests of compound coefficients using simple slopes for a categorical.
Chapter 11 Correlation and Simple Linear Regression Statistics for Business (Econ) 1.
The Chicago Guide to Writing about Multivariate Analysis, 2 nd edition. Interpreting multivariate OLS and logit coefficients Jane E. Miller, PhD.
Standardized coefficients Jane E. Miller, PhD The Chicago Guide to Writing about Multivariate Analysis, 2 nd edition.
The Chicago Guide to Writing about Multivariate Analysis, 2 nd edition. Choosing tools to present numbers: Tables, charts, and prose Jane E. Miller, PhD.
The Chicago Guide to Writing about Numbers, 2 nd edition. Choosing a comparison group Jane E. Miller, PhD.
Copyright © 2010 Pearson Education, Inc Chapter Seventeen Correlation and Regression.
The Chicago Guide to Writing about Multivariate Analysis, 2 nd edition. Resolving the Goldilocks problem: Variables and measurement Jane E. Miller, PhD.
Correlation – Recap Correlation provides an estimate of how well change in ‘ x ’ causes change in ‘ y ’. The relationship has a magnitude (the r value)
Taking the n th Root to Solve Equations Chapter 7.1.
Introduction to testing statistical significance of interactions Jane E. Miller, PhD The Chicago Guide to Writing about Multivariate Analysis, 2nd Edition.
Testing statistical significance of differences between coefficients Jane E. Miller, PhD The Chicago Guide to Writing about Multivariate Analysis, 2nd.
The Chicago Guide to Writing about Multivariate Analysis, 2 nd edition. Visualizing shapes of interaction patterns between two categorical independent.
The Chicago Guide to Writing about Multivariate Analysis, 2nd Edition. Conducting post-hoc tests of compound coefficients using simple slopes for a categorical.
The Chicago Guide to Writing about Multivariate Analysis, 2 nd edition. Visualizing shapes of interaction patterns with continuous independent variables.
Math 3120 Differential Equations with Boundary Value Problems
The Chicago Guide to Writing about Multivariate Analysis, 2 nd edition. Resolving the Goldilocks problem: Presenting results Jane E. Miller, PhD.
The Chicago Guide to Writing about Multivariate Analysis, 2 nd edition. Creating charts to present interactions Jane E. Miller, PhD.
Approaches to testing statistical significance of interactions Jane E. Miller, PhD The Chicago Guide to Writing about Multivariate Analysis, 2nd Edition.
Chapter 14 Introduction to Regression Analysis. Objectives Regression Analysis Uses of Regression Analysis Method of Least Squares Difference between.
The Chicago Guide to Writing about Multivariate Analysis, 2 nd edition. Resolving the Goldilocks problem: Model specification Jane E. Miller, PhD.
Chapter 5: Systems of Linear Equations Section 5.1: Solving Systems of Linear Equations by Elimination.
The Chicago Guide to Writing about Multivariate Analysis, 2 nd edition. Calculating interaction effects from OLS coefficients: Interaction between 1 categorical.
Correlation and Linear Regression Chapter 13 McGraw-Hill/Irwin Copyright © 2012 by The McGraw-Hill Companies, Inc. All rights reserved.
Overview of categorical by categorical interactions: Part I: Concepts, definitions, and shapes Interactions in regression models occur when the association.
Calculating interaction effects from OLS coefficients: Interaction between two categorical independent variables Jane E. Miller, PhD As discussed in the.
Using alternative reference categories to test statistical significance of an interaction This podcast is the last in the series on testing statistical.
Creating variables and specifying models to test for interactions between two categorical independent variables This lecture is the third in the series.
Section 8.2 Solving Linear Systems by Elimination
Introduction to interactions in regression models: Concepts and equations Jane E. Miller, PhD Interactions in regression models occur when the association.
Overview of categorical by continuous interactions: Part II: Variables, specifications, and calculations Interactions in regression models occur when.
Quadratics 2 Write Equations, Match graphs and equations, describe a graph and identify parts of a graph.
Testing whether a multivariate specification can be simplified
Presentation transcript:

The Chicago Guide to Writing about Multivariate Analysis, 2 nd edition. Calculating the shape of a polynomial from regression coefficients Jane E. Miller, PhD

The Chicago Guide to Writing about Multivariate Analysis, 2 nd edition. Overview Functional form of a polynomial Solving a polynomial for values of the independent variable Illustrative example – Calculations – Chart Spreadsheet to perform calculations

The Chicago Guide to Writing about Multivariate Analysis, 2 nd edition. Specifying a model with a polynomial To specify a polynomial function of an independent variable (IV), include linear and higher-order terms for that IV in the model. E.g., – A quadratic specification will include linear and square terms (variables): Y = β 0 + β 1 X 1 + β 2 X 1 2 – A cubic specification will include linear, square, and cubic terms: y = β 0 + β 1 X 1 + β 2 X β 3 X 1 3

The Chicago Guide to Writing about Multivariate Analysis, 2 nd edition. Example: Birth weight as a quadratic function of IPR If a birth weight model includes both income- to-poverty ratio (IPR) and IPR 2 as independent variables, it yields the following quadratic specification: Birth weight = β 0 + (β IPR × IPR) + (β IPR 2 × IPR 2 ) – β IPR is the coefficient on the linear term – β IPR 2 is the coefficient on the square term – IPR is the value of the income-to-poverty ratio variable for each case – IPR 2 is IPR-squared for each case

The Chicago Guide to Writing about Multivariate Analysis, 2 nd edition. Solving a polynomial based on βs Birth weight (grams) = β 0 + (β IPR × IPR) + (β IPR 2 × IPR 2 ) Substituting the estimated βs into the general equation gives: Birth weight (grams) = 3, (80.5  IPR) + (–9.9  IPR 2 ) Which can be solved for specific values of IPR Estimated coefficients are shown in table 9.1 of The Chicago Guide to Writing about Multivariate Analysis, 2nd Edition.

The Chicago Guide to Writing about Multivariate Analysis, 2 nd edition. Calculating the shape of the polynomial, holding constant all other IVs To calculate the effect of the IV in the polynomial holding constant all other independent variables in the model – The intercept (β 0 ) and the β i s related to other IVs in the model will cancel out when you subtract to calculate the difference between values. – So you don’t have to include those coefficients in these calculations.

The Chicago Guide to Writing about Multivariate Analysis, 2 nd edition. Calculating predicted values of the dependent variable (DV) for different values of the IV Solve the equation (80.5  IPR) + (–9.9  IPR 2 ) for each of several selected values of X 1. E.g., – At IPR = 1.0 Birth weight = (80.5  1.0) + (–9.9  ) = 70.6 grams – At IPR = 2.0 Birth weight = (80.5  2.0) + (–9.9  ) = grams – At IPR = 3.0 Birth weight = (80.5  3.0) + (–9.9  ) = grams β IPR = 80.5; β IPR 2 = –9.9. We ignore β 0 because it cancels out when we subtract to calculate differences across predicted values, in the next step.

The Chicago Guide to Writing about Multivariate Analysis, 2 nd edition. Selecting values of the IV for which to calculate the predicted DV Select values of the IV to solve for by picking 5 or 6 values that span the observed range of X i in your data. E.g., – The income-to-poverty ratio (IPR) ranges from 0 to 5, so plug in values at 1-unit increments across that range. – Mother’s age ranges from 15 to 49, so if your model specifies a polynomial function of age, solve it for values at 5-year increments across that range. Avoid selecting out of range values, since they were not included in the model that estimated the βs.

The Chicago Guide to Writing about Multivariate Analysis, 2 nd edition. Calculating the effect of changes in the IV on the DV Compute the difference in predicted value of the dependent variable (DV, Y) by subtracting predicted values of Y for different values of the IV (X i ). – E.g., predicted Y (X i = 2) – predicted Y (X i = 1) Important to do this for several pairs of values of the IV because when the association is specified with a polynomial, by definition, X i will not have a constant marginal effect on Y.

The Chicago Guide to Writing about Multivariate Analysis, 2 nd edition. Example: Birth weight as a quadratic function of IPR As we saw earlier: – At IPR = 1.0, predicted birth weight = 70.6 grams – At IPR = 2.0, predicted birth weight = grams – At IPR = 3.0, predicted birth weight = grams Thus the marginal effect of moving from IPR = 1.0 to IPR = 2.0 is – 70.6 = 50.8 grams IPR = 2.0 to IPR = 3.0 is – = 30.4 grams

The Chicago Guide to Writing about Multivariate Analysis, 2 nd edition. Graphing the polynomial

The Chicago Guide to Writing about Multivariate Analysis, 2 nd edition. Coefficients and shape of the quadratic In this example, the decreasing marginal positive effect of IPR on birth weight is due to the combination of – a positive β IPR – a negative β IPR 2 Recall: β IPR = 80.5; β IPR 2 = –9.9 Other combinations of positive and negative signs on the linear and squared terms will generate different shapes of the quadratic function.

The Chicago Guide to Writing about Multivariate Analysis, 2 nd edition. Using a spreadsheet to calculate pattern of a polynomial from βs Spreadsheets are well-suited to conducting repetitive, multistep calculations. Type in: – Estimated coefficients on the polynomial terms, – Selected values of the independent variable, – Formulas to calculate predicted value of the dependent variable from the βs and values of the independent variable (IV). Generalize the formulas to apply to all values of the IV. Create a chart to portray the association between the IV and DV across the observed range of the IV.

The Chicago Guide to Writing about Multivariate Analysis, 2 nd edition. Summary A regression model involving a polynomial will include separate variables for each term in the polynomial. The overall shape of the pattern can be calculated by solving the polynomial for values of: – The estimated coefficients on the polynomial terms, and – Selected values of the independent variable across its observed range in the data. A spreadsheet is an efficient way to calculate and graph the polynomial.

The Chicago Guide to Writing about Multivariate Analysis, 2 nd edition. Suggested resources Miller, J. E The Chicago Guide to Writing about Multivariate Analysis, 2nd Edition. – Chapter 10, section on polynomials – Appendix D, using a spreadsheet for calculations Podcast on – Interpreting regression coefficients Spreadsheet templates – Spreadsheet basics – Solving for a quadratic

The Chicago Guide to Writing about Multivariate Analysis, 2 nd edition. Suggested practice exercises Study guide to The Chicago Guide to Writing about Multivariate Analysis, 2nd Edition. – Suggested course extensions for chapter 10 “Applying statistics and writing” question #7. “Revising” questions #6 and 9.

The Chicago Guide to Writing about Multivariate Analysis, 2 nd edition. Contact information Jane E. Miller, PhD Online materials available at