SlideShare a Scribd company logo
Srinivasulu Rajendran
 Centre for the Study of Regional Development (CSRD)


Jawaharlal Nehru University (JNU)
                      New Delhi
                        India
              r.srinivasulu@gmail.com
Objective of the session



      To understand two-way
      anova through software
             packages
1. What is the procedure to
perform Two-way ANOVA?
2. How do we interpret results?
Two-way ANOVA using SPSS
 The two-way ANOVA compares the mean differences
 between groups that have been split on two
 independent variables (called factors). You need two
 independent,    categorical   variables and      one
 continuous, dependent variable .
Objective
 We are interested in whether an monthly per capita
 food expenditure was influenced by their level of
 education and their gender head. Monthly per capita
 food expenditure with higher value meaning a better
 off. The researcher then divided the participants by
 gender head of HHs i.e Male head & Female head HHs
 and then again by level of education.
 In SPSS we separated the HHs into their appropriate
 groups by using two columns representing the two
 independent variables and labelled them “Head_Sex"
 and “Head_Edu". For “head_sex", we coded males as
 "1" and females as “0", and for “Head_Edu", we coded
 illiterate as "1", can sign only as "2" and can read only as
 "3“ and can read & write as “4”. Monthly per capita food
 expenditure was entered under the variable name,
 “pcmfx".
How to correctly enter your data into SPSS in order to
run a two-way ANOVA
Testing of Assumptions
 In SPSS, homogeneity of variances is tested using
 Levene's Test for Equality of Variances. This is
 included in the main procedure for running the two-
 way ANOVA, so we get to evaluate whether there is
 homogeneity of variances at the same time as we get
 the results from the two-way ANOVA.
STEP 1
Click Analyze > General Linear Model > Univariate...
on the top menu as shown below
STEP 2
You will be presented with the "Univariate" dialogue box:
STEP 3
 You need to transfer the dependent variable “pcmfx"
 into the "Dependent Variable:" box and transfer both
 independent variables, “head_sex" and “head_edu", into
 the "Fixed Factor(s)”
STEP 4
Click on the Plot button. You will be presented with the
"Univariate: Profile Plots" dialogue box
STEP 5
 Transfer        the
  independent
  variable
  “head_edu"     from
  the "Factors:" box
  into             the
  "Horizontal Axis:"
  box and transfer
  the      “head_sex"
  variable into the
  "Separate    Lines:"
  box. You will be
  presented with the
  following screen:

 [Tip:    Put  the
  independent
  variable with the
  greater number of
  levels    in  the
  "Horizontal Axis:"
  box.]
STEP 6 & 7
 Click the “add”
  button

 You will see that
  “head_edu*head
  _sex" has been
  added to the
  "Plots:" box.

 Click        the
  “continue”
  button. This will
  return you to the
  "Univariate"
  dialogue box.
STEP 8
Click the “Post Hoc..” button. You will be presented with the
  "Univariate: Post Hoc Multiple Comparisons for Observed..."
  dialogue box as shown below:
STEP 9
 Transfer “head_edu" from the "Factor(s):" box to the
 "Post Hoc Tests for:" box. This will make the "Equal
 Variances Assumed" section become active (loose the
 "grey sheen") and present you with some choices for
 which post-hoc test to use. For this example, we are going
 to select "Tukey", which is a good, all-round post-hoc test.

 [You only need to transfer independent variables that
 have more than two levels into the "Post Hoc Tests for:"
 box. This is why we do not transfer “head_sex".]

 You will finish up with the following screen

 Click the “Continue” button to return to the "Univariate"
 dialogue box
STEP 10
 Click the “option” button. This will present you with the
 "Univariate: Options" dialogue box as shown below:



 Transfer “head_sex", “head_edu" and “head_sex*head_edu"
 from the "Factor(s) and "Factor Interactions:" box into the
 "Display Means for:" box. In the "Display" section, tick the
 "Descriptive Statistics" and "Homogeneity tests" options. You
 will presented with the following screen

 Click the “continue” button to return to the "Univariate"
 dialogue box.
STEP 11
Click the “Ok” button to generate the output.
SPSS Output of Two-way ANOVA
 SPSS produces many tables in its output from a two-way
  ANOVA and we are going to start with the "Descriptives"
  table as shown below:
                                          Descriptive Statistics

 Dependent Variable:Per capita monthly food expenditure (taka)


 Head of the
 Household - Sex     (sum) head_edu               Mean             Std. Deviation    N
 Male                1                          939.8895            455.16118       245
                     2                          998.0697            491.73339       262
                     3                          858.3107            383.20545        20
                     4                          1137.9562           534.76858       571
                     Total                      1055.2881           512.60856       1098
 Female              1                          962.6195            627.75916        44
                     2                          967.0070            424.26461        41
                     4                          1205.5084           607.04529        52
                     Total                      1056.1239           574.00781       137
 Total               1                          943.3501            484.17553       289
                     2                          993.8665            482.62690       303
                     3                          858.3107            383.20545        20
                     4                          1143.5946           540.95653       623
                     Total                      1055.3809           519.52636       1235
This table is very useful as it provides
the mean and standard deviation for
the groups that have been split by
both independent variables. In
addition, the table also provides
"Total" rows, which allows means
and standard deviations for groups
only split by one independent
variable or none at all to be known.
From this table we can
                                  Levene's Test of Equality of Error Variancesa
see that we don’t have
homogeneity            of
variances      of     the
dependent        variable     Dependent Variable:Per capita monthly food expenditure
across groups. We                                     (taka)
know this as the Sig.
value is less than 0.05,           F            df1           df2           Sig.
                                 2.335           6           1228           .030
which is the level we
set for alpha. So we
have concluded that
the variance across
                            Tests the null hypothesis that the error variance of the
groups               was    dependent variable is equal across groups.
significantly different     a. Design: Intercept + head_sex + head_edu +
(unequal).                  head_sex * head_edu
Tests of Between-Subjects Effects Table
 The table shows the actual results of the two-way ANOVA as
  shown
 We are interested in the head of hhs gender, education and
  head_sex*head_edu rows of the table as highlighted above.
  These rows inform us of whether we have significant mean
  differences between our groups for our two independent
  variables, head_sex and head_edu, and for their interaction,
  head_sex*head_edu.        We     must    first    look   at   the
  head_sex*head_edu interaction as this is the most important
  result we are after. We can see from the Sig. column that we have
  a statistically NOT significant interaction at the P = .686 level.
  You may wish to report the results ofhead_sex and head_edu as
  well. We can see from the above table that there was no
  significant difference in monthly per capita food exp between
  head_sex (P = .675) but there were significant differences
  between educational levels (P < .000).
Tests of Between-Subjects Effects

                     Dependent Variable:Per capita monthly food expenditure (taka)



                  Type III Sum of
    Source           Squares                df         Mean Square             F      Sig.
Corrected Model     10669432                6           1778239              6.773    .000


   Intercept       279013110                1            279013110         1062.753   .000

   head_sex           46145                 1              46145             .176     .675

  head_edu           5527869                3             1842623            7.019    .000

  head_sex *         197900                 2              98950             .377     .686
  head_edu



     Error         322396593              1228            262538

     Total         1708644528             1235

Corrected Total    333066026              1234

More Related Content

Similar to Topic 14 two anova

Sheet1Number of Visits Per DayNumber of Status Changes Per WeekAge.docx
Sheet1Number of Visits Per DayNumber of Status Changes Per WeekAge.docxSheet1Number of Visits Per DayNumber of Status Changes Per WeekAge.docx
Sheet1Number of Visits Per DayNumber of Status Changes Per WeekAge.docx
lesleyryder69361
 
Chapter 5 anova analysis
Chapter 5 anova analysisChapter 5 anova analysis
Chapter 5 anova analysis
MOHAMED AHMED AIDEED
 
Lecture 7 guidelines_and_assignment
Lecture 7 guidelines_and_assignmentLecture 7 guidelines_and_assignment
Lecture 7 guidelines_and_assignmentDaria Bogdanova
 
LITR221 Quiz RubricExemplary LevelAccomplished L.docx
LITR221 Quiz RubricExemplary LevelAccomplished L.docxLITR221 Quiz RubricExemplary LevelAccomplished L.docx
LITR221 Quiz RubricExemplary LevelAccomplished L.docx
SHIVA101531
 
1Please write up and interpret the results for the following.docx
1Please write up and interpret the results for the following.docx1Please write up and interpret the results for the following.docx
1Please write up and interpret the results for the following.docx
eugeniadean34240
 
6MODULE 2Module 2 Problem SetEXAMPLEGrand .docx
6MODULE 2Module 2 Problem SetEXAMPLEGrand .docx6MODULE 2Module 2 Problem SetEXAMPLEGrand .docx
6MODULE 2Module 2 Problem SetEXAMPLEGrand .docx
blondellchancy
 
week 1 ScoreWeek 1.Measurement and Description - chapters 1 and 2.docx
week 1 ScoreWeek 1.Measurement and Description - chapters 1 and 2.docxweek 1 ScoreWeek 1.Measurement and Description - chapters 1 and 2.docx
week 1 ScoreWeek 1.Measurement and Description - chapters 1 and 2.docx
melbruce90096
 
Welcome to International Journal of Engineering Research and Development (IJERD)
Welcome to International Journal of Engineering Research and Development (IJERD)Welcome to International Journal of Engineering Research and Development (IJERD)
Welcome to International Journal of Engineering Research and Development (IJERD)
IJERD Editor
 
Multiplicity, how to deal with the testing of more than one hypothesis.
Multiplicity, how to deal with the testing of more than one hypothesis.Multiplicity, how to deal with the testing of more than one hypothesis.
Multiplicity, how to deal with the testing of more than one hypothesis.
Gaetan Lion
 
Dr. Tom Stein - Benchmark Analysis of Production and Financial Measures Acros...
Dr. Tom Stein - Benchmark Analysis of Production and Financial Measures Acros...Dr. Tom Stein - Benchmark Analysis of Production and Financial Measures Acros...
Dr. Tom Stein - Benchmark Analysis of Production and Financial Measures Acros...
John Blue
 
Stat 350 project erickson
Stat 350 project ericksonStat 350 project erickson
Stat 350 project erickson
John C. Erickson
 
BUSI 620Questions for Critical Thinking 3Salvatore’s Chapter.docx
BUSI 620Questions for Critical Thinking 3Salvatore’s Chapter.docxBUSI 620Questions for Critical Thinking 3Salvatore’s Chapter.docx
BUSI 620Questions for Critical Thinking 3Salvatore’s Chapter.docx
humphrieskalyn
 
Points 100Assignment 3 Part II PowerPoint PresentationCriter.docx
Points 100Assignment 3 Part II PowerPoint PresentationCriter.docxPoints 100Assignment 3 Part II PowerPoint PresentationCriter.docx
Points 100Assignment 3 Part II PowerPoint PresentationCriter.docx
LeilaniPoolsy
 
DataSalCompaMidAgeEESSERGRaiseDegGen1Gr1581.017573485805.70METhe o.docx
DataSalCompaMidAgeEESSERGRaiseDegGen1Gr1581.017573485805.70METhe o.docxDataSalCompaMidAgeEESSERGRaiseDegGen1Gr1581.017573485805.70METhe o.docx
DataSalCompaMidAgeEESSERGRaiseDegGen1Gr1581.017573485805.70METhe o.docx
theodorelove43763
 
Lecture 8 (t test, anova)
Lecture 8 (t test, anova)Lecture 8 (t test, anova)
Lecture 8 (t test, anova)
HasnainButt4
 
Galambos N Analysis Of Survey Results
Galambos N Analysis Of Survey ResultsGalambos N Analysis Of Survey Results
Galambos N Analysis Of Survey Results
Nora Galambos
 
Chi-square tests are great to show if distributions differ or i.docx
 Chi-square tests are great to show if distributions differ or i.docx Chi-square tests are great to show if distributions differ or i.docx
Chi-square tests are great to show if distributions differ or i.docx
MARRY7
 
analysis part 02.pptx
analysis part 02.pptxanalysis part 02.pptx
analysis part 02.pptx
efrembeyene4
 
Statistics for ess
Statistics for essStatistics for ess
Statistics for ess
Michael Smith
 

Similar to Topic 14 two anova (20)

Sheet1Number of Visits Per DayNumber of Status Changes Per WeekAge.docx
Sheet1Number of Visits Per DayNumber of Status Changes Per WeekAge.docxSheet1Number of Visits Per DayNumber of Status Changes Per WeekAge.docx
Sheet1Number of Visits Per DayNumber of Status Changes Per WeekAge.docx
 
Chapter 5 anova analysis
Chapter 5 anova analysisChapter 5 anova analysis
Chapter 5 anova analysis
 
Lecture 7 guidelines_and_assignment
Lecture 7 guidelines_and_assignmentLecture 7 guidelines_and_assignment
Lecture 7 guidelines_and_assignment
 
LITR221 Quiz RubricExemplary LevelAccomplished L.docx
LITR221 Quiz RubricExemplary LevelAccomplished L.docxLITR221 Quiz RubricExemplary LevelAccomplished L.docx
LITR221 Quiz RubricExemplary LevelAccomplished L.docx
 
1Please write up and interpret the results for the following.docx
1Please write up and interpret the results for the following.docx1Please write up and interpret the results for the following.docx
1Please write up and interpret the results for the following.docx
 
6MODULE 2Module 2 Problem SetEXAMPLEGrand .docx
6MODULE 2Module 2 Problem SetEXAMPLEGrand .docx6MODULE 2Module 2 Problem SetEXAMPLEGrand .docx
6MODULE 2Module 2 Problem SetEXAMPLEGrand .docx
 
week 1 ScoreWeek 1.Measurement and Description - chapters 1 and 2.docx
week 1 ScoreWeek 1.Measurement and Description - chapters 1 and 2.docxweek 1 ScoreWeek 1.Measurement and Description - chapters 1 and 2.docx
week 1 ScoreWeek 1.Measurement and Description - chapters 1 and 2.docx
 
Welcome to International Journal of Engineering Research and Development (IJERD)
Welcome to International Journal of Engineering Research and Development (IJERD)Welcome to International Journal of Engineering Research and Development (IJERD)
Welcome to International Journal of Engineering Research and Development (IJERD)
 
Multiplicity, how to deal with the testing of more than one hypothesis.
Multiplicity, how to deal with the testing of more than one hypothesis.Multiplicity, how to deal with the testing of more than one hypothesis.
Multiplicity, how to deal with the testing of more than one hypothesis.
 
Dr. Tom Stein - Benchmark Analysis of Production and Financial Measures Acros...
Dr. Tom Stein - Benchmark Analysis of Production and Financial Measures Acros...Dr. Tom Stein - Benchmark Analysis of Production and Financial Measures Acros...
Dr. Tom Stein - Benchmark Analysis of Production and Financial Measures Acros...
 
Stat 350 project erickson
Stat 350 project ericksonStat 350 project erickson
Stat 350 project erickson
 
BUSI 620Questions for Critical Thinking 3Salvatore’s Chapter.docx
BUSI 620Questions for Critical Thinking 3Salvatore’s Chapter.docxBUSI 620Questions for Critical Thinking 3Salvatore’s Chapter.docx
BUSI 620Questions for Critical Thinking 3Salvatore’s Chapter.docx
 
Points 100Assignment 3 Part II PowerPoint PresentationCriter.docx
Points 100Assignment 3 Part II PowerPoint PresentationCriter.docxPoints 100Assignment 3 Part II PowerPoint PresentationCriter.docx
Points 100Assignment 3 Part II PowerPoint PresentationCriter.docx
 
DataSalCompaMidAgeEESSERGRaiseDegGen1Gr1581.017573485805.70METhe o.docx
DataSalCompaMidAgeEESSERGRaiseDegGen1Gr1581.017573485805.70METhe o.docxDataSalCompaMidAgeEESSERGRaiseDegGen1Gr1581.017573485805.70METhe o.docx
DataSalCompaMidAgeEESSERGRaiseDegGen1Gr1581.017573485805.70METhe o.docx
 
Lecture 8 (t test, anova)
Lecture 8 (t test, anova)Lecture 8 (t test, anova)
Lecture 8 (t test, anova)
 
Galambos N Analysis Of Survey Results
Galambos N Analysis Of Survey ResultsGalambos N Analysis Of Survey Results
Galambos N Analysis Of Survey Results
 
Chi-square tests are great to show if distributions differ or i.docx
 Chi-square tests are great to show if distributions differ or i.docx Chi-square tests are great to show if distributions differ or i.docx
Chi-square tests are great to show if distributions differ or i.docx
 
analysis part 02.pptx
analysis part 02.pptxanalysis part 02.pptx
analysis part 02.pptx
 
Statistics for ess
Statistics for essStatistics for ess
Statistics for ess
 
Assement1
Assement1Assement1
Assement1
 

More from Sizwan Ahammed

Topic 21 evidence on diet diversity
Topic 21 evidence on diet diversityTopic 21 evidence on diet diversity
Topic 21 evidence on diet diversitySizwan Ahammed
 
Topic 21 diet diversity
Topic 21 diet diversityTopic 21 diet diversity
Topic 21 diet diversitySizwan Ahammed
 
Topic 21 diet diversity stata
Topic 21  diet diversity stataTopic 21  diet diversity stata
Topic 21 diet diversity stataSizwan Ahammed
 
Topic 20 anthropomeric indicators
Topic 20 anthropomeric indicatorsTopic 20 anthropomeric indicators
Topic 20 anthropomeric indicatorsSizwan Ahammed
 
Topic 20 anthro meaurement
Topic 20 anthro meaurementTopic 20 anthro meaurement
Topic 20 anthro meaurementSizwan Ahammed
 
Topic 20 anthro meaurement230312
Topic 20 anthro meaurement230312Topic 20 anthro meaurement230312
Topic 20 anthro meaurement230312Sizwan Ahammed
 
Topic 19 inequality stata
Topic 19 inequality stataTopic 19 inequality stata
Topic 19 inequality stataSizwan Ahammed
 
Topic 18 multiple regression
Topic 18 multiple regressionTopic 18 multiple regression
Topic 18 multiple regressionSizwan Ahammed
 
Topic17 regression spss
Topic17 regression spssTopic17 regression spss
Topic17 regression spssSizwan Ahammed
 
Topic 15 correlation spss
Topic 15 correlation spssTopic 15 correlation spss
Topic 15 correlation spssSizwan Ahammed
 
Topic 14 maternal education
Topic 14 maternal educationTopic 14 maternal education
Topic 14 maternal educationSizwan Ahammed
 
Topic 12 gender technology interface
Topic 12 gender technology interfaceTopic 12 gender technology interface
Topic 12 gender technology interfaceSizwan Ahammed
 
Topic 11 commercialization
Topic 11 commercializationTopic 11 commercialization
Topic 11 commercializationSizwan Ahammed
 

More from Sizwan Ahammed (20)

Topic 21 evidence on diet diversity
Topic 21 evidence on diet diversityTopic 21 evidence on diet diversity
Topic 21 evidence on diet diversity
 
Topic 21 diet diversity
Topic 21 diet diversityTopic 21 diet diversity
Topic 21 diet diversity
 
Topic 21 diet diversity stata
Topic 21  diet diversity stataTopic 21  diet diversity stata
Topic 21 diet diversity stata
 
Topic 20 anthropomeric indicators
Topic 20 anthropomeric indicatorsTopic 20 anthropomeric indicators
Topic 20 anthropomeric indicators
 
Topic 20 anthro meaurement
Topic 20 anthro meaurementTopic 20 anthro meaurement
Topic 20 anthro meaurement
 
Topic 20 anthro meaurement230312
Topic 20 anthro meaurement230312Topic 20 anthro meaurement230312
Topic 20 anthro meaurement230312
 
Topic 19 inequaltiy
Topic 19 inequaltiyTopic 19 inequaltiy
Topic 19 inequaltiy
 
Topic 19 inequality stata
Topic 19 inequality stataTopic 19 inequality stata
Topic 19 inequality stata
 
Topic 18 multiple regression
Topic 18 multiple regressionTopic 18 multiple regression
Topic 18 multiple regression
 
Topic 17 regression
Topic 17 regressionTopic 17 regression
Topic 17 regression
 
Topic17 regression spss
Topic17 regression spssTopic17 regression spss
Topic17 regression spss
 
Topic 16 poverty(ii)
Topic 16 poverty(ii)Topic 16 poverty(ii)
Topic 16 poverty(ii)
 
Topic 16 poverty(i)
Topic 16 poverty(i)Topic 16 poverty(i)
Topic 16 poverty(i)
 
Topic 15 correlation spss
Topic 15 correlation spssTopic 15 correlation spss
Topic 15 correlation spss
 
Topic 15 correlation
Topic 15 correlationTopic 15 correlation
Topic 15 correlation
 
Topic 14 maternal education
Topic 14 maternal educationTopic 14 maternal education
Topic 14 maternal education
 
Topic 13 cons pattern
Topic 13 cons patternTopic 13 cons pattern
Topic 13 cons pattern
 
Topic 12 gender technology interface
Topic 12 gender technology interfaceTopic 12 gender technology interface
Topic 12 gender technology interface
 
Topic 11 commercialization
Topic 11 commercializationTopic 11 commercialization
Topic 11 commercialization
 
Topic 10 technology
Topic 10 technologyTopic 10 technology
Topic 10 technology
 

Recently uploaded

Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdfUnlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Malak Abu Hammad
 
Pushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 daysPushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 days
Adtran
 
Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?
Nexer Digital
 
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
Neo4j
 
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
名前 です男
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
Kari Kakkonen
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance
 
Video Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the FutureVideo Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the Future
Alpen-Adria-Universität
 
20240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 202420240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 2024
Matthew Sinclair
 
Artificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopmentArtificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopment
Octavian Nadolu
 
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
SOFTTECHHUB
 
Uni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdfUni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems S.M.S.A.
 
A tale of scale & speed: How the US Navy is enabling software delivery from l...
A tale of scale & speed: How the US Navy is enabling software delivery from l...A tale of scale & speed: How the US Navy is enabling software delivery from l...
A tale of scale & speed: How the US Navy is enabling software delivery from l...
sonjaschweigert1
 
Microsoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdfMicrosoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdf
Uni Systems S.M.S.A.
 
Generative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to ProductionGenerative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to Production
Aggregage
 
Introduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - CybersecurityIntroduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - Cybersecurity
mikeeftimakis1
 
UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6
DianaGray10
 
20 Comprehensive Checklist of Designing and Developing a Website
20 Comprehensive Checklist of Designing and Developing a Website20 Comprehensive Checklist of Designing and Developing a Website
20 Comprehensive Checklist of Designing and Developing a Website
Pixlogix Infotech
 
Building RAG with self-deployed Milvus vector database and Snowpark Container...
Building RAG with self-deployed Milvus vector database and Snowpark Container...Building RAG with self-deployed Milvus vector database and Snowpark Container...
Building RAG with self-deployed Milvus vector database and Snowpark Container...
Zilliz
 
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
Neo4j
 

Recently uploaded (20)

Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdfUnlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
 
Pushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 daysPushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 days
 
Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?
 
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
 
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
 
Video Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the FutureVideo Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the Future
 
20240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 202420240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 2024
 
Artificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopmentArtificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopment
 
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
 
Uni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdfUni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdf
 
A tale of scale & speed: How the US Navy is enabling software delivery from l...
A tale of scale & speed: How the US Navy is enabling software delivery from l...A tale of scale & speed: How the US Navy is enabling software delivery from l...
A tale of scale & speed: How the US Navy is enabling software delivery from l...
 
Microsoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdfMicrosoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdf
 
Generative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to ProductionGenerative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to Production
 
Introduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - CybersecurityIntroduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - Cybersecurity
 
UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6
 
20 Comprehensive Checklist of Designing and Developing a Website
20 Comprehensive Checklist of Designing and Developing a Website20 Comprehensive Checklist of Designing and Developing a Website
20 Comprehensive Checklist of Designing and Developing a Website
 
Building RAG with self-deployed Milvus vector database and Snowpark Container...
Building RAG with self-deployed Milvus vector database and Snowpark Container...Building RAG with self-deployed Milvus vector database and Snowpark Container...
Building RAG with self-deployed Milvus vector database and Snowpark Container...
 
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
 

Topic 14 two anova

  • 1. Srinivasulu Rajendran Centre for the Study of Regional Development (CSRD) Jawaharlal Nehru University (JNU) New Delhi India r.srinivasulu@gmail.com
  • 2. Objective of the session To understand two-way anova through software packages
  • 3. 1. What is the procedure to perform Two-way ANOVA? 2. How do we interpret results?
  • 4. Two-way ANOVA using SPSS  The two-way ANOVA compares the mean differences between groups that have been split on two independent variables (called factors). You need two independent, categorical variables and one continuous, dependent variable .
  • 5. Objective  We are interested in whether an monthly per capita food expenditure was influenced by their level of education and their gender head. Monthly per capita food expenditure with higher value meaning a better off. The researcher then divided the participants by gender head of HHs i.e Male head & Female head HHs and then again by level of education.
  • 6.  In SPSS we separated the HHs into their appropriate groups by using two columns representing the two independent variables and labelled them “Head_Sex" and “Head_Edu". For “head_sex", we coded males as "1" and females as “0", and for “Head_Edu", we coded illiterate as "1", can sign only as "2" and can read only as "3“ and can read & write as “4”. Monthly per capita food expenditure was entered under the variable name, “pcmfx".
  • 7. How to correctly enter your data into SPSS in order to run a two-way ANOVA
  • 8. Testing of Assumptions  In SPSS, homogeneity of variances is tested using Levene's Test for Equality of Variances. This is included in the main procedure for running the two- way ANOVA, so we get to evaluate whether there is homogeneity of variances at the same time as we get the results from the two-way ANOVA.
  • 10. Click Analyze > General Linear Model > Univariate... on the top menu as shown below
  • 12. You will be presented with the "Univariate" dialogue box:
  • 14.  You need to transfer the dependent variable “pcmfx" into the "Dependent Variable:" box and transfer both independent variables, “head_sex" and “head_edu", into the "Fixed Factor(s)”
  • 16. Click on the Plot button. You will be presented with the "Univariate: Profile Plots" dialogue box
  • 18.  Transfer the independent variable “head_edu" from the "Factors:" box into the "Horizontal Axis:" box and transfer the “head_sex" variable into the "Separate Lines:" box. You will be presented with the following screen:  [Tip: Put the independent variable with the greater number of levels in the "Horizontal Axis:" box.]
  • 19. STEP 6 & 7
  • 20.  Click the “add” button  You will see that “head_edu*head _sex" has been added to the "Plots:" box.  Click the “continue” button. This will return you to the "Univariate" dialogue box.
  • 22. Click the “Post Hoc..” button. You will be presented with the "Univariate: Post Hoc Multiple Comparisons for Observed..." dialogue box as shown below:
  • 24.  Transfer “head_edu" from the "Factor(s):" box to the "Post Hoc Tests for:" box. This will make the "Equal Variances Assumed" section become active (loose the "grey sheen") and present you with some choices for which post-hoc test to use. For this example, we are going to select "Tukey", which is a good, all-round post-hoc test.  [You only need to transfer independent variables that have more than two levels into the "Post Hoc Tests for:" box. This is why we do not transfer “head_sex".]  You will finish up with the following screen  Click the “Continue” button to return to the "Univariate" dialogue box
  • 25.
  • 27.  Click the “option” button. This will present you with the "Univariate: Options" dialogue box as shown below:  Transfer “head_sex", “head_edu" and “head_sex*head_edu" from the "Factor(s) and "Factor Interactions:" box into the "Display Means for:" box. In the "Display" section, tick the "Descriptive Statistics" and "Homogeneity tests" options. You will presented with the following screen  Click the “continue” button to return to the "Univariate" dialogue box.
  • 28.
  • 30. Click the “Ok” button to generate the output.
  • 31. SPSS Output of Two-way ANOVA
  • 32.  SPSS produces many tables in its output from a two-way ANOVA and we are going to start with the "Descriptives" table as shown below: Descriptive Statistics Dependent Variable:Per capita monthly food expenditure (taka) Head of the Household - Sex (sum) head_edu Mean Std. Deviation N Male 1 939.8895 455.16118 245 2 998.0697 491.73339 262 3 858.3107 383.20545 20 4 1137.9562 534.76858 571 Total 1055.2881 512.60856 1098 Female 1 962.6195 627.75916 44 2 967.0070 424.26461 41 4 1205.5084 607.04529 52 Total 1056.1239 574.00781 137 Total 1 943.3501 484.17553 289 2 993.8665 482.62690 303 3 858.3107 383.20545 20 4 1143.5946 540.95653 623 Total 1055.3809 519.52636 1235
  • 33. This table is very useful as it provides the mean and standard deviation for the groups that have been split by both independent variables. In addition, the table also provides "Total" rows, which allows means and standard deviations for groups only split by one independent variable or none at all to be known.
  • 34. From this table we can Levene's Test of Equality of Error Variancesa see that we don’t have homogeneity of variances of the dependent variable Dependent Variable:Per capita monthly food expenditure across groups. We (taka) know this as the Sig. value is less than 0.05, F df1 df2 Sig. 2.335 6 1228 .030 which is the level we set for alpha. So we have concluded that the variance across Tests the null hypothesis that the error variance of the groups was dependent variable is equal across groups. significantly different a. Design: Intercept + head_sex + head_edu + (unequal). head_sex * head_edu
  • 35. Tests of Between-Subjects Effects Table  The table shows the actual results of the two-way ANOVA as shown  We are interested in the head of hhs gender, education and head_sex*head_edu rows of the table as highlighted above. These rows inform us of whether we have significant mean differences between our groups for our two independent variables, head_sex and head_edu, and for their interaction, head_sex*head_edu. We must first look at the head_sex*head_edu interaction as this is the most important result we are after. We can see from the Sig. column that we have a statistically NOT significant interaction at the P = .686 level. You may wish to report the results ofhead_sex and head_edu as well. We can see from the above table that there was no significant difference in monthly per capita food exp between head_sex (P = .675) but there were significant differences between educational levels (P < .000).
  • 36. Tests of Between-Subjects Effects Dependent Variable:Per capita monthly food expenditure (taka) Type III Sum of Source Squares df Mean Square F Sig. Corrected Model 10669432 6 1778239 6.773 .000 Intercept 279013110 1 279013110 1062.753 .000 head_sex 46145 1 46145 .176 .675 head_edu 5527869 3 1842623 7.019 .000 head_sex * 197900 2 98950 .377 .686 head_edu Error 322396593 1228 262538 Total 1708644528 1235 Corrected Total 333066026 1234