Department of Cognitive Science Michael J. Kalsher Adv. Experimental Methods & Statistics PSYC 4310 / COGS 6310 Dummy Coding 1 PSYC 4310/6310 Advanced.

Slides:



Advertisements
Similar presentations
General Linear Models The theory of general linear models posits that many statistical tests can be solved as a regression analysis, including t-tests.
Advertisements

The Regression Equation  A predicted value on the DV in the bi-variate case is found with the following formula: Ŷ = a + B (X1)
Multiple Regression Models: Interactions and Indicator Variables
Slide 1 Incorporating Nonmetric Data with Dummy Variables For many of the multivariate techniques we will study, it is assumed that the independent or.
1 9. Logistic Regression ECON 251 Research Methods.
Introduction to Statistics: Political Science (Class 5)
Linear Regression. PSYC 6130, PROF. J. ELDER 2 Correlation vs Regression: What’s the Difference? Correlation measures how strongly related 2 variables.
Here, pal! Regress this! presented by Miles Hamby, PhD Principle, Ariel Training Consultants MilesFlight.20megsfree.com Or, How to Use.
Predictive Analytics Software: What Statistics Can Do for You Brett Deneckere Dr. Kimberly Dodson April 26, 2011 A “Living Legend” Production.
More on ANOVA. Overview ANOVA as Regression Comparison Methods.
Additional HW Exercise (a) The breaking strength in pounds of force is being studied for two metal alloys, labeled S and T, and for different temperatures.
Problem 1: Relationship between Two Variables-1 (1)
SPSS Statistical Package for Social Sciences Multiple Regression Department of Psychology California State University Northridge
Correlation Question 1 This question asks you to use the Pearson correlation coefficient to measure the association between [educ4] and [empstat]. However,
1 COMM 301: Empirical Research in Communication Kwan M Lee Lect3_1.
Introduction to SPSS (For SPSS Version 16.0)
1 of 27 PSYC 4310/6310 Advanced Experimental Methods and Statistics © 2013, Michael Kalsher Michael J. Kalsher Department of Cognitive Science Adv. Experimental.
ICCS 2009 IDB Workshop, 18 th February 2010, Madrid Using the IEA IDB Analyzer Correlations & Regression.
Department of Cognitive Science Michael J. Kalsher Adv. Experimental Methods & Statistics PSYC 4310 / COGS 6310 Bivariate Relationships 1 PSYC 4310/6310.
Hierarchical Binary Logistic Regression
LINDSEY BREWER CSSCR (CENTER FOR SOCIAL SCIENCE COMPUTATION AND RESEARCH) UNIVERSITY OF WASHINGTON September 17, 2009 Introduction to SPSS (Version 16)
Chapter Eleven A Primer for Descriptive Statistics.
Statistics and Quantitative Analysis U4320 Segment 12: Extension of Multiple Regression Analysis Prof. Sharyn O’Halloran.
Chapter 2 Data.
The What and the Why of Statistics The Research Process Asking a Research Question The Role of Theory Formulating the Hypotheses –Independent & Dependent.
Chapter 1: The What and the Why of Statistics  The Research Process  Asking a Research Question  The Role of Theory  Formulating the Hypotheses  Independent.
ANALYSIS OF VARIANCE By ADETORO Gbemisola Wuraola.
Recap of data analysis and procedures Food Security Indicators Training Bangkok January 2009.
Introduction to Quantitative Research Analysis and SPSS SW242 – Session 6 Slides.
1 of 29 Department of Cognitive Science Adv. Experimental Methods & Statistics PSYC 4310 / COGS 6310 Mixed Model ANOVA Michael J. Kalsher PSYC 4310/6310.
SW318 Social Work Statistics Slide 1 Frequency: Nominal Variable Practice Problem This question asks the frequency of widowed respondents of the survey.
Department of Cognitive Science Michael J. Kalsher Adv. Experimental Methods & Statistics PSYC 4310 / COGS 6310 Regression 1 PSYC 4310/6310 Advanced Experimental.
Lecture 25 Summary of previous lecture Specification Bias Detection methods.
Commonly Used Statistics in the Social Sciences Chi-square Correlation Multiple Regression T-tests ANOVAs.
Categorical Independent Variables STA302 Fall 2013.
Data Lab # 4 June 16, 2008 Ivan Katchanovski, Ph.D. POL 242Y-Y.
Set-up a Data Entry Page Section 3. Set Up Columns Switch to Variable View. At the bottom left of your screen there are two tabs (Data View and Variable.
PSY6010: Statistics, Psychometrics and Research Design Professor Leora Lawton Spring 2007 Wednesdays 7-10 PM Room 204.
SW388R7 Data Analysis & Computers II Slide 1 Incorporating Nonmetric Data with Dummy Variables The logic of dummy-coding Dummy-coding in SPSS.
EKONOMETRIKA 1 FE_UB By Al Muiz almuiz 2009.
Categorical Independent Variables STA302 Fall 2015.
Using SPSS Note: The use of another statistical package such as Minitab is similar to using SPSS.
© Copyright 2000, Julia Hartman 1 An Interactive Tutorial for SPSS 10.0 for Windows © Analysis of Covariance (Regression Approach) by Julia Hartman Next.
Nonparametric Statistics STAT E-150 Statistical Methods.
Week 111 Review - Sum of Normal Random Variables The weighted sum of two independent normally distributed random variables has a normal distribution. Example.
1 of 29 Department of Cognitive Science Adv. Experimental Methods & Statistics PSYC 4310 / COGS 6310 Mixed Model ANOVA Michael J. Kalsher PSYC 4310 Advanced.
Beginners statistics Assoc Prof Terry Haines. 5 simple steps 1.Understand the type of measurement you are dealing with 2.Understand the type of question.
Analyzing Data. Learning Objectives You will learn to: – Import from excel – Add, move, recode, label, and compute variables – Perform descriptive analyses.
The Research Process First, Collect data and make sure that everything is coded properly, things are not missing. Do this for whatever program your using.
SOC 305, Southeastern Louisiana University Prof. Robert Martin.
Categorical Variables in Regression
STATISTICAL TESTS FOR SCIENCE FAIR PROJECTS
Dr. Siti Nor Binti Yaacob
Introduction to SPSS.
NATURE OF Measurement.
Learning Objectives For models with dichotomous intendant variables, you will learn: Basic terminology from ANOVA framework How to identify main effects,
Multiple Regression.
Dr. Siti Nor Binti Yaacob
Lecture 4 Statistical analysis
LINDSEY BREWER CSSCR (CENTER FOR SOCIAL SCIENCE COMPUTATION AND RESEARCH) UNIVERSITY OF WASHINGTON September 17, 2009 Introduction to SPSS (Version 16)
COM 631/731 Levels of Measurement
Soc 3306a: ANOVA and Regression Models
Categorical Data Analysis Review for Final
Soc 3306a Lecture 11: Multivariate 4
Individual Assignment 6
Performing the Runs Test Using SPSS
Chapter 13 Excel Extension: Now You Try!
Chapter 9 Excel Extension: Now You Try!
Chapter 8 Excel Extension: Now You Try!
Chapter 15 Excel Extension: Now You Try!
Presentation transcript:

Department of Cognitive Science Michael J. Kalsher Adv. Experimental Methods & Statistics PSYC 4310 / COGS 6310 Dummy Coding 1 PSYC 4310/6310 Advanced Experimental Methods and Statistics © 2011, Michael Kalsher

Dummy Coding: What is it? Linear regression works over score level variables (e.g. age; income level; weight, etc.) But … not all data are score level: –Sex (male vs. female) –Location (RPI vs. Sage vs. HVCC) –Political affiliation (Democrat, Independent, Republican) Dummy coding is a way of representing groups of people using only zeros and ones.

PSYC 4310/6310 Advanced Experimental Methods and Statistics © 2011, Michael Kalsher Nominal values as binary numbers Binary: 0 = off/absent, 1 = on/present Can treat nominal variables as presence (or absence) of features Example: Presence of maleness /presence of femaleness

PSYC 4310/6310 Advanced Experimental Methods and Statistics © 2011, Michael Kalsher Creating Dummy Variables Dummy coding produces “dummy variables” equal to N-1 (where N = the original number of categories). Consider Political Affiliation: Democrat, Independent, Republican –Here there are three categories that will be recoded into two dummy coded variables Steps: –1. Assign one category as the “Baseline” group –2. Create two variables representing the other groups: X and Y –3. X=1 if in group X; Y=1 if in group Y; both are 0 if in baseline group

PSYC 4310/6310 Advanced Experimental Methods and Statistics © 2011, Michael Kalsher Example: Presidential Ratings During class in the Fall 2010 semester, students in PSYC 4310 were asked to indicate: –Rating of President Obama’s performance (1=Strongly Disapprove; 5=Strongly Approval) –Party affiliation (1=Democrat; 2=Independent; 3=Republican) –One approach is to analyze the data using an “experimental technique” such as ANOVA. –But suppose you wanted to analyze in the context of regression with several other “predictor” variables? –Another approach is to recode Party Affiliation into Dummy Coded Variables so that we can use this variable in a regression analysis. 5

PSYC 4310/6310 Advanced Experimental Methods and Statistics © 2011, Michael Kalsher 6 President’s performance ratings as a function of party affiliation. Key Affiliation: 1 = Democrat 2= Independent 3= Republican Rating: 1= Poor Performance 5 = Great Performance

PSYC 4310/6310 Advanced Experimental Methods and Statistics © 2011, Michael Kalsher 7

8 #1: Select the Variable #2: Name the 1 st Dummy Code, then click on “Change”

PSYC 4310/6310 Advanced Experimental Methods and Statistics © 2011, Michael Kalsher 9 Next, Click on “Old and New Values”

PSYC 4310/6310 Advanced Experimental Methods and Statistics © 2011, Michael Kalsher 10 In this step, we want all “Democrats” to get a code of “1” and everyone else to get a code of “0”. To do this, we type in “1” for the “Old Value” and “1” for the “New Value”, then click on “Add”. Add “1” here

PSYC 4310/6310 Advanced Experimental Methods and Statistics © 2011, Michael Kalsher 11 #2 #3 #1 Next, we need to change the remaining groups to have a value of “0” for the first dummy variable. 1. Select “All other values”, 2. type in “0” adjacent to “Value” in the section labeled “New Value”. 3. Click on “Add”. 4. Click on “Continue” #4

PSYC 4310/6310 Advanced Experimental Methods and Statistics © 2011, Michael Kalsher 12 You should now be back at the main “Recode into Different Variables” dialogue box, then click “Ok”. Check the Data View and you will see the “Democrat Dummy Code”

PSYC 4310/6310 Advanced Experimental Methods and Statistics © 2011, Michael Kalsher Click “Reset” 2. Name the 2 nd Dummy Code (Republican). 3.Click on “Change”. 4.Click on “Old and New Values”

PSYC 4310/6310 Advanced Experimental Methods and Statistics © 2011, Michael Kalsher 14 After changing the “Old Value” of Republicans (3) to the “New Value” (1) and “All other values” to “0”, click on “Continue”, which takes you back to the main dialogue box, then click “Ok”. Check the Data View and you will see the “Republican Dummy Code”

PSYC 4310/6310 Advanced Experimental Methods and Statistics © 2011, Michael Kalsher 15 The Data View now shows the two columns of the recoded “Democrat” and “Republican” Dummy Codes.

PSYC 4310/6310 Advanced Experimental Methods and Statistics © 2011, Michael Kalsher 16 Now we can run the regression analysis using the Dummy Coded variables as predictors and Rating as the DV

PSYC 4310/6310 Advanced Experimental Methods and Statistics © 2011, Michael Kalsher 17

PSYC 4310/6310 Advanced Experimental Methods and Statistics © 2011, Michael Kalsher 18

PSYC 4310/6310 Advanced Experimental Methods and Statistics © 2011, Michael Kalsher 19