Combining continuous and categorical variables

Slides:



Advertisements
Similar presentations
Quantitative Methods Interactions - getting more complex.
Advertisements

Quantitative Methods Checking the models II: the other three assumptions.
Sociology 601 Class 28: December 8, 2009 Homework 10 Review –polynomials –interaction effects Logistic regressions –log odds as outcome –compared to linear.
Quantitative Methods Checking the models I: independence.
Quantitative Methods Combining continuous and categorical variables.
Analyzing quantitative data – section III Week 10 Lecture 1.
10.1 Scatter Plots and Trend Lines
FACTOR THE FOLLOWING: Opener. 2-5 Scatter Plots and Lines of Regression 1. Bivariate Data – data with two variables 2. Scatter Plot – graph of bivariate.
7/6/2015 Orthogonal Functions Chapter /6/2015 Orthogonal Functions Chapter 7 2.
Quantitative Methods Designing experiments - keeping it simple.
Solving Systems of three equations with three variables Using substitution or elimination.
Least Squares Regression
Graph the linear function What is the domain and the range of f?
Relationship of two variables
Analysing Graphs of Linear Relations Lesson 9.1. Terms  Relationship.
Sec 1.5 Scatter Plots and Least Squares Lines Come in & plot your height (x-axis) and shoe size (y-axis) on the graph. Add your coordinate point to the.
Multiple Regression BPS chapter 28 © 2006 W.H. Freeman and Company.
 Some variables are inherently categorical, for example:  Sex  Race  Occupation  Other categorical variables are created by grouping values of a.
Section 4.2 Building Linear Models from Data. OBJECTIVE 1.
Section 1-3: Graphing Data
Section Copyright © 2014, 2012, 2010 Pearson Education, Inc. Chapter 10 Correlation and Regression 10-2 Correlation 10-3 Regression.
6.EE.C.Represent and analyze quantitative relationships between dependent and independent variables. 9.Use variables to represent two quantities in a real-world.
ANSWER is 25% of what number ANSWER 40% 4.What percent of 90 is 36? ANSWER d = 4 ANSWER x = Solve:
Direct Variation Chapter 5 Section 2. Objective  Students will write and graph an equation of a direct variation.
Statistics: Scatter Plots and Lines of Fit. Vocabulary Scatter plot – Two sets of data plotted as ordered pairs in a coordinate plane Positive correlation.
Lesson 6-7 Scatter Plots and Lines of Best Fit. Scatter Plots A scatter plot is a graph that relates two different sets of data by plotting the data as.
Lecture Slides Elementary Statistics Twelfth Edition
Functions and relations
Statistics 200 Lecture #6 Thursday, September 8, 2016
CHAPTER 3 Describing Relationships
Lesson 4.5 Topic/ Objective: To use residuals to determine how well lines of fit model data. To use linear regression to find lines of best fit. To distinguish.
Day 4 – Slop-Intercept Form
1.1 Tables and Graphs of Linear Equations
Aim: How do we fit a regression line on a scatter plot?
Example 6 Voting The table shows the percent of voting-age population who voted in presidential elections for the years 1960–2004. Graph the data points,
Implicit Differentiation Implicit differentiation
General principles in building a predictive model
Direct Variation.
Objectives Fit scatter plot data using linear models with and without technology. Use linear models to make predictions.
Scatterplots A way of displaying numeric data
CHAPTER 10 Correlation and Regression (Objectives)
Functions and relations
Investigating Relationships
Chapter 13 Multiple Regression
Interactions & Simple Effects finding the differences
Correlation and Regression
Quantitative Methods What lies beyond?.
Soc 3306a: ANOVA and Regression Models
5-2 Direct Variation.
Functions Introduction.
Quantitative Methods What lies beyond?.
The Least-Squares Line Introduction
Residuals and Residual Plots
Soc 3306a Lecture 11: Multivariate 4
Find the line of best fit.
Write the equation for the following slope and y-intercept:
2-4: Writing Linear Equations Using Slope Intercept Form
Slope  4 Ways: Graph Formula Ordered Pairs Table.
Learning Targets Students will be able to: Compare linear, quadratic, and exponential models and given a set of data, decide which type of function models.
Graph Review Skills Needed Identify the relationship in the graph
Unit 2 Quantitative Interpretation of Correlation
Models, parameters and GLMs
Regression and Categorical Predictors
Objectives Compare linear, quadratic, and exponential models.
Section 1 – Solving Systems of Equations in Two Variables
Models, parameters and GLMs
Designing experiments - keeping it simple
Relations and Functions, Domain & Range
Graphing Data Section 1-3.
Presentation transcript:

Combining continuous and categorical variables Quantitative Methods Combining continuous and categorical variables

Reprise of models fitted so far Combining categorical and continuous variables Reprise of models fitted so far YIELD=FERTIL YIELDM=VARIETY VOLUME=HEIGHT MATHS=ESSAYS SPECIES2=SPECIES1 AMA=YEARS+HGHT FINALHT=INITHT+WATER WGHT=RLEG+LLEG POETSAGE=BYEAR+DYEAR LVOLUME=LDIAM+LHGHT YIELD=BLOCK+BEAN SEEDS=COLUMN+ROW+TREATMT

Reprise of models fitted so far Combining categorical and continuous variables Reprise of models fitted so far YIELD=FERTIL YIELDM=VARIETY VOLUME=HEIGHT MATHS=ESSAYS SPECIES2=SPECIES1 AMA=YEARS+HGHT FINALHT=INITHT+WATER WGHT=RLEG+LLEG POETSAGE=BYEAR+DYEAR LVOLUME=LDIAM+LHGHT YIELD=BLOCK+BEAN SEEDS=COLUMN+ROW+TREATMT ANOVA table - whether x-variables predict y-variable Coefficients table - how x-variables predict y-variable

Model formulae, model and fitted values Combining categorical and continuous variables Model formulae, model and fitted values

Model formulae, model and fitted values Combining categorical and continuous variables Model formulae, model and fitted values

Model formulae, model and fitted values Combining categorical and continuous variables Model formulae, model and fitted values

Model formulae, model and fitted values Combining categorical and continuous variables Model formulae, model and fitted values BACAFTER = BACBEF+TREATMNT (Model Formula) TREATMNT Coef 1 1 BACAFTER = m + bBACBEF + 2 2 +  3 -1 -2 (Model) TREATMNT Coef PREDICTED 1 -1.590 BACAFTER = -0.013 + 0.8831BACBEF + 2 -0.726 3 2.316 (Fitted Value Equation or Best Fit Equation)

Model formulae, model and fitted values Combining categorical and continuous variables Model formulae, model and fitted values

Model formulae, model and fitted values Combining categorical and continuous variables Model formulae, model and fitted values

Model formulae, model and fitted values Combining categorical and continuous variables Model formulae, model and fitted values

Combining categorical and continuous variables Graphs and equations

Graphs and equations Combining categorical and continuous variables FAT = m + b*WEIGHT FAT = m + SEX Coeff M g F -g FAT = m + SEX Coeff + b*WEIGHT M g F -g

Combining categorical and continuous variables Graphs and equations

Combining categorical and continuous variables Graphs and equations

Orthogonality Combining categorical and continuous variables … is a relationship that may hold between two x-variables The general concept is that two x-variables are orthogonal if you can’t predict one when you know the other.

Combining categorical and continuous variables Orthogonality

Combining categorical and continuous variables Orthogonality

Combining categorical and continuous variables Orthogonality

Combining categorical and continuous variables Ambivalence

Combining categorical and continuous variables Ambivalence

Combining categorical and continuous variables Ambivalence

Combining categorical and continuous variables Generality of GLM

Next week: Interactions - getting more complex Combining categorical and continuous variables Last words… Continuous and categorical variables can be freely combined in a model formula Know how to construct the model Know how to construct the fitted value equation Some variables may be treated in either way The GLM encompasses many traditional tests Next week: Interactions - getting more complex Read Chapter 7 (a long one)