SlideShare ist ein Scribd-Unternehmen logo
1 von 31
DEPARTMENT OF DEMOGRAPHY & SOCIAL STATISTICS
OBAFEMI AWOLOWO UNIVERSITY, ILE-IFE
NIGERIA
WORKSHOP ON BASIC MULTIVARIATE
ANALYSES
Samson Olusina Bamiwuye (PhD)
bamiwuye@oauife.edu.ng
bamiwuye2001@yahoo.com
(+234 703 598 4242) May, 2016
WORKSHOP
EXPECTATIONS
FAQ
• Which relevant statistical method can I use?
• How do I interpret the odd ratio?
• How is the logistic regression coefficient different
from the odd ratio?
• How do I select my choice of reference category in
logistic regression?
• What is this about collinearity issues in regression?
• Logit regression vs logistic regression: any
difference?
• Some Stata commands though correct but return
error messages on my Stata software. Why?
• How do I install user written commands in Stata?
• What Stata command produces stepwise regression?
Our Learning Objectives
• To present an overview of different statistical
methods at the multivariate level ;
• To provide guidance in the choice of appropriate
multivariate statistical techniques ; and
• Build capacity in the use of basic statistical
procedures and interpretation at the
multivariate level
4
If I have seen further, it is by
standing on the shoulders of
giants
NEWTON, 1676; LETTER TO ROBERT HOOKE]
• Many slides were obtained from multiple sources
• Model data and Individual Recode
Data(NGIR6AFL.DTA) from MEASURE DHS :
www.measuredhs.com
• Special Thanks to the Head of Demography & Social
Statistics and to PG Anchor
• Many Thanks to PG students
Acknowledgements
OUTLINE OF PRESENTATION
• Overview of Multivariate Analysis Techniques
• Practical Sessions with Selected Multivariate
Analytical Techniques using the Stata Software
MODE OF PRESENTATION
• Hands-on
• Group work/Assignment
• PowerPoint slides
• Data from DHS (demonstrated)
• Other datafiles: discrim2.dta; etc
Some factors to consider:
• Research design
• Number of groups
• Number of variables
• Level of measurement
(nominal, ordinal, interval/ratio)
• Normality
Choosing the Appropriate Statistic
Choice of relevant statistical methods
• Single categorical variable (nominal /ordinal)
• Single numeric variable (count/continuous)
• Two categorical variables
• Two numeric variables
• One categorical and one numeric
• One categorical +2 or more numeric
• One numeric + 2 or more categorical
• One numeric + 2 or more numeric
• 3 or more categorical variables
Single Categorical Variable (1)
• Type :Nominal
• Example: Residence (Rural/Urban)
• Statistic/graph:
– Frequency tabulation
– Bar chart
– Pie chart
– Histogram X ???? Use only for numeric variable
– Mean X ???? Use only for numeric variable
– Median X: ????? use only for numeric variable
Single Numeric Variable(2)
• Type: continuous
• Example: Age; weight; height; income
• Statistic/Graph
– Mean
– Median (use only if distribution is not normal)
– Mode
– Frequency tabulation (use only when grouped)
– Histogram
– Bar Chart (only when grouped)
– Pie Chart (only when grouped)
Research Question:
1. What is the average income of respondents engaged in impulse
buying?
2. What is the median age at first marriage of women who
experienced domestic violence?
Single Numeric Variable(3)
• Type: Count
• Example: CEB; crime rate;
• Statistic/graph
– Mean
– Median
– Mode
– Frequency tabulation (if grouped)
– Histogram
– Bar chart (If grouped)
– Pie chart (if grouped)
Research question: What is the mean CEB of women who
married before age 18?; above age 35?
Two variables (4)
• One numeric, one categorical
• Numeric dependent variable
• Statistic
– Independent t-test (with two categories)
– One way anova (with more than 2 categories)
• Mean of dependent variable compared across levels of
categorical variable
• Research Question: Is age at marriage in rural area significantly
higher than in urban area(independent t-test)
• Are there differences in mean age at first intercourse by levels of
education(4 levels)? (one-way anova)
Two variables (5)
• Two categorical variables
Statistic:
• Chi square test
• To test whether there is an association between
two categorical variables
Research questions: Is there any relationship
between residence and contraceptive use?
• Is marital stability independent of education?
Two variables (6)
• Both variables are numeric
• Example: age and CEB; age at marriage and number
of sexual partner
Statistic
• Simple linear regression (one variable is dep)
• Pearson correlation (both variables independent)
Research questions: Is there any relationship between
age at marriage and number of CEB?
• Does number of sexual partners depend on age at
marriage?
Multivariate Level of Analysis
• Involve employing relationship among three or more
variables
• Few Basic Examples are:
– Analysis of variance
– Multiple Regression
– Logistic Regression (binary, multinomial, Ordinal….)
– Probit Regression (biprobit, oprobit….)
– Poisson Regression
– Recursive Models (Path Analysis)
– Factor analysis
– Discriminant analysis etc
– Analysis of covariance
– Cluster Analysis 17
CASE1
One numeric ; two or more categorical (1)
• Numeric dependent variable:
Statistic:
• N way anova
• Compare mean differences across levels of
categorical independent variables
Research questions: are there significant differences
in the mean number of children by education and
residence?
• What are the effects of education and ethnicity on
number of children ever born?
• Stata command: anova ceb education ethnicity
CASE 2
3 or more variables – all continuous
• Continuous dependent variable + 2 or more continuous
ind var:
Statistic:
• Multiple Regression
• Effects of 2 or more independent vars on a single
dependent variable
• Research Question: what are the effects Age of
mother, age at marriage, age at first sex on age at first
birth?
• Stata Command: regress depvar indvar1 indvar2
indpvar3
CASE 2(contd)
MEASURING RELATIVE IMPORTANCE
• There are two types of regression coefficients
– Unstandardized regression coefficients
– Standardized Regression coefficients
• BETA COEFFICENT is the standardized coefficients
and is a measure of relative Importance
Stata Command
regress y x1 x2 x3, beta
CASE 3
One numeric count variable + 2 or more numeric
/categorical variables
• Count dependent variable:
Statistic:
• Poisson Regression
• Effects of two or more independent variables on
count dependent variable
Research question: What are the effects of age of
mother, age at marriage and residence on number of
children ever born?
Stata Command:
xi: poisson ceb age agemar i.residence
CASE 4
One numeric continuous variable + 2 or more
categorical variables
• Continuous dependent variable:
• Statistic:
• Multiple Regression with dummy categorical
variables
• Effects of two or more categorical independent
variables on continuous dependent variable
Research question: What are the effects of residence
and ethnicity on age at marriage?
xi: regress agemar i.residence i.ethnicity
23
CASE 4(contd)
REGRESSION (INTERACTION EFFECTS)
• xi: regress bmi age i.sex i.treat i.treat*i.sex
By default the first (lowest) category will be
omitted, i.e. be the reference group. You may,
before the analysis.
Select agegrp 3 to be the reference by defining a
'characteristic':
• char agegrp[omit] 3
CASE 5
All categorical variables – 3 or more
• Categorical dependent variable+ 2 or more
categorical independent variables
Statistic:
• Log-linear Analysis
• Effects of two or more categorical independent
variables on categorical dependent variable
Research question: What are the effects of
residence and family type on wantedness of last
birth (wanted then, wanted later, not wanted at
all)?
CASE 6a(Logit and Probit)
One dichotomous dep variable + 2 or more
independent numeric variables/categorical variables
• Dichotomous dependent variable:
Statistic:
• Binary Logistic Regression
• Effects of two or more independent variables
(numeric or categorical or both) on dichotomous
dependent variable
Research question: What are the effects of residence
religion age at marriage on modern contraceptive use?
Stata command
xi: logistic contuse i.residence age i.relig agemar
xi: logit contuse i.residence age i.relig agemar
CASE 6b (Logit and Probit)
One dichotomous dep variable + 2 or more
independent numeric variables/categorical variables
• Dichotomous dependent variable:
Alternative Statistic:
• Probit Regression
• Effects of two or more independent variables
(numeric or categorical or both) on dichotomous
dependent variable
Research question: What are the effects of residence
religion age at marriage on modern contraceptive use?
Stata command
xi: probit contuse i.residence age i.relig agemar
CASE 7
One categorical variable + 2 or more numeric variables/categorical
• Categorical dependent variable (> 2 categories):
Statistic:
• Multinomial Logistic Regression Analysis
• Effects of two or more independent variables (numeric or
categorical or both) on categorical dependent variable(>2 cat)
Research question: What are the effects of age of mother, age at
marriage, residence and years of schooling on wantedness of last
birth (wanted then, wanted later, not at all)?
CASE 8
One categorical variable + 2 or more interval variables
• Categorical dependent variable ( 2 categories or
more):
Statistic:
• Discriminant Analysis
• Classify modern contraceptive users by selected
NUMERIC background age, age at marriage
Research question: How do users and non users of
modern contraceptive compare by age of mother, age
at marriage?
Cases 9 & 10 (Regression with more
than one outcome variable)
• More than one outcome variable + one predictor
variable
• Statistics: Multivariate Regression Analysis
• More than one outcome variable + two or more
predictor variables
• Statistics: Multivariate Multiple Regression
Analysis
Appropriate techniques for problems with distinction between independent and
dependent variables
No. of Variables Measurement Level Analysis Method
Dependent Independent Dependent Independent
One One Nominal Nominal Non-parametric tests, Chi-
square
One One Nominal
(dichotomous)
Nominal Multiple Classification
Analysis
One One Nominal Nominal
(Dichotomous)
Wilcoxon's two sample
test, Chi-square,
Kolmogorov-Smirnov
Test
One One Interval-scale Nominal
(Dichotomous)
t-test, Analysis of
Variance
One One Interval-scale Interval-scale Regression Analysis
One One Interval-scale Nominal Analysis of Variance
One More Nominal Interval-scale Discriminant Analysis
31
THANK YOU
FOR
LISTENING

Weitere ähnliche Inhalte

Ähnlich wie dss workshop 1.pptx

AAPOR 2013 Langer Research: Bloomberg CCI
AAPOR 2013 Langer Research: Bloomberg CCIAAPOR 2013 Langer Research: Bloomberg CCI
AAPOR 2013 Langer Research: Bloomberg CCI
LangerResearch
 

Ähnlich wie dss workshop 1.pptx (20)

introduction to statistical theory
introduction to statistical theoryintroduction to statistical theory
introduction to statistical theory
 
MELJUN CORTES research seminar_1__data_analysis_basics_slides
MELJUN CORTES research seminar_1__data_analysis_basics_slidesMELJUN CORTES research seminar_1__data_analysis_basics_slides
MELJUN CORTES research seminar_1__data_analysis_basics_slides
 
MELJUN CORTES research seminar_1_data_analysis_basics
MELJUN CORTES research seminar_1_data_analysis_basicsMELJUN CORTES research seminar_1_data_analysis_basics
MELJUN CORTES research seminar_1_data_analysis_basics
 
MELJUN CORTES research seminar_1__data_analysis_basics_slides_2nd_updates
MELJUN CORTES research seminar_1__data_analysis_basics_slides_2nd_updatesMELJUN CORTES research seminar_1__data_analysis_basics_slides_2nd_updates
MELJUN CORTES research seminar_1__data_analysis_basics_slides_2nd_updates
 
Quantitative analysis
Quantitative analysisQuantitative analysis
Quantitative analysis
 
AAPOR 2013 Langer Research: Bloomberg CCI
AAPOR 2013 Langer Research: Bloomberg CCIAAPOR 2013 Langer Research: Bloomberg CCI
AAPOR 2013 Langer Research: Bloomberg CCI
 
Inferential Statistics
Inferential StatisticsInferential Statistics
Inferential Statistics
 
Introduction to spss – part 1
Introduction to spss – part 1Introduction to spss – part 1
Introduction to spss – part 1
 
Basic stat tools
Basic stat toolsBasic stat tools
Basic stat tools
 
2 statistics, measurement, graphical techniques
2 statistics, measurement, graphical techniques2 statistics, measurement, graphical techniques
2 statistics, measurement, graphical techniques
 
Bmgt 311 chapter_13
Bmgt 311 chapter_13Bmgt 311 chapter_13
Bmgt 311 chapter_13
 
Impact Evaluation Training with AERC: China Cash Transfer Programme Technical...
Impact Evaluation Training with AERC: China Cash Transfer Programme Technical...Impact Evaluation Training with AERC: China Cash Transfer Programme Technical...
Impact Evaluation Training with AERC: China Cash Transfer Programme Technical...
 
Quantitative data analysis - John Richardson
Quantitative data analysis - John RichardsonQuantitative data analysis - John Richardson
Quantitative data analysis - John Richardson
 
Logistic regression
Logistic regressionLogistic regression
Logistic regression
 
Chi-square test
Chi-square testChi-square test
Chi-square test
 
Log reg pdf.pdf
Log reg pdf.pdfLog reg pdf.pdf
Log reg pdf.pdf
 
Methodology and IRB/URR
Methodology and IRB/URRMethodology and IRB/URR
Methodology and IRB/URR
 
01 Introduction (1).pptx
01 Introduction (1).pptx01 Introduction (1).pptx
01 Introduction (1).pptx
 
Lekcija 1 - Uvod.pdf
Lekcija 1 - Uvod.pdfLekcija 1 - Uvod.pdf
Lekcija 1 - Uvod.pdf
 
Spss basic Dr Marwa Zalat
Spss basic Dr Marwa ZalatSpss basic Dr Marwa Zalat
Spss basic Dr Marwa Zalat
 

Kürzlich hochgeladen

1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 
Gardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterGardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch Letter
MateoGardella
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 

Kürzlich hochgeladen (20)

Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Gardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterGardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch Letter
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 

dss workshop 1.pptx

  • 1. DEPARTMENT OF DEMOGRAPHY & SOCIAL STATISTICS OBAFEMI AWOLOWO UNIVERSITY, ILE-IFE NIGERIA WORKSHOP ON BASIC MULTIVARIATE ANALYSES Samson Olusina Bamiwuye (PhD) bamiwuye@oauife.edu.ng bamiwuye2001@yahoo.com (+234 703 598 4242) May, 2016
  • 3. FAQ • Which relevant statistical method can I use? • How do I interpret the odd ratio? • How is the logistic regression coefficient different from the odd ratio? • How do I select my choice of reference category in logistic regression? • What is this about collinearity issues in regression? • Logit regression vs logistic regression: any difference? • Some Stata commands though correct but return error messages on my Stata software. Why? • How do I install user written commands in Stata? • What Stata command produces stepwise regression?
  • 4. Our Learning Objectives • To present an overview of different statistical methods at the multivariate level ; • To provide guidance in the choice of appropriate multivariate statistical techniques ; and • Build capacity in the use of basic statistical procedures and interpretation at the multivariate level 4
  • 5. If I have seen further, it is by standing on the shoulders of giants NEWTON, 1676; LETTER TO ROBERT HOOKE]
  • 6. • Many slides were obtained from multiple sources • Model data and Individual Recode Data(NGIR6AFL.DTA) from MEASURE DHS : www.measuredhs.com • Special Thanks to the Head of Demography & Social Statistics and to PG Anchor • Many Thanks to PG students Acknowledgements
  • 7. OUTLINE OF PRESENTATION • Overview of Multivariate Analysis Techniques • Practical Sessions with Selected Multivariate Analytical Techniques using the Stata Software
  • 8. MODE OF PRESENTATION • Hands-on • Group work/Assignment • PowerPoint slides • Data from DHS (demonstrated) • Other datafiles: discrim2.dta; etc
  • 9. Some factors to consider: • Research design • Number of groups • Number of variables • Level of measurement (nominal, ordinal, interval/ratio) • Normality Choosing the Appropriate Statistic
  • 10. Choice of relevant statistical methods • Single categorical variable (nominal /ordinal) • Single numeric variable (count/continuous) • Two categorical variables • Two numeric variables • One categorical and one numeric • One categorical +2 or more numeric • One numeric + 2 or more categorical • One numeric + 2 or more numeric • 3 or more categorical variables
  • 11. Single Categorical Variable (1) • Type :Nominal • Example: Residence (Rural/Urban) • Statistic/graph: – Frequency tabulation – Bar chart – Pie chart – Histogram X ???? Use only for numeric variable – Mean X ???? Use only for numeric variable – Median X: ????? use only for numeric variable
  • 12. Single Numeric Variable(2) • Type: continuous • Example: Age; weight; height; income • Statistic/Graph – Mean – Median (use only if distribution is not normal) – Mode – Frequency tabulation (use only when grouped) – Histogram – Bar Chart (only when grouped) – Pie Chart (only when grouped) Research Question: 1. What is the average income of respondents engaged in impulse buying? 2. What is the median age at first marriage of women who experienced domestic violence?
  • 13. Single Numeric Variable(3) • Type: Count • Example: CEB; crime rate; • Statistic/graph – Mean – Median – Mode – Frequency tabulation (if grouped) – Histogram – Bar chart (If grouped) – Pie chart (if grouped) Research question: What is the mean CEB of women who married before age 18?; above age 35?
  • 14. Two variables (4) • One numeric, one categorical • Numeric dependent variable • Statistic – Independent t-test (with two categories) – One way anova (with more than 2 categories) • Mean of dependent variable compared across levels of categorical variable • Research Question: Is age at marriage in rural area significantly higher than in urban area(independent t-test) • Are there differences in mean age at first intercourse by levels of education(4 levels)? (one-way anova)
  • 15. Two variables (5) • Two categorical variables Statistic: • Chi square test • To test whether there is an association between two categorical variables Research questions: Is there any relationship between residence and contraceptive use? • Is marital stability independent of education?
  • 16. Two variables (6) • Both variables are numeric • Example: age and CEB; age at marriage and number of sexual partner Statistic • Simple linear regression (one variable is dep) • Pearson correlation (both variables independent) Research questions: Is there any relationship between age at marriage and number of CEB? • Does number of sexual partners depend on age at marriage?
  • 17. Multivariate Level of Analysis • Involve employing relationship among three or more variables • Few Basic Examples are: – Analysis of variance – Multiple Regression – Logistic Regression (binary, multinomial, Ordinal….) – Probit Regression (biprobit, oprobit….) – Poisson Regression – Recursive Models (Path Analysis) – Factor analysis – Discriminant analysis etc – Analysis of covariance – Cluster Analysis 17
  • 18. CASE1 One numeric ; two or more categorical (1) • Numeric dependent variable: Statistic: • N way anova • Compare mean differences across levels of categorical independent variables Research questions: are there significant differences in the mean number of children by education and residence? • What are the effects of education and ethnicity on number of children ever born? • Stata command: anova ceb education ethnicity
  • 19. CASE 2 3 or more variables – all continuous • Continuous dependent variable + 2 or more continuous ind var: Statistic: • Multiple Regression • Effects of 2 or more independent vars on a single dependent variable • Research Question: what are the effects Age of mother, age at marriage, age at first sex on age at first birth? • Stata Command: regress depvar indvar1 indvar2 indpvar3
  • 20. CASE 2(contd) MEASURING RELATIVE IMPORTANCE • There are two types of regression coefficients – Unstandardized regression coefficients – Standardized Regression coefficients • BETA COEFFICENT is the standardized coefficients and is a measure of relative Importance Stata Command regress y x1 x2 x3, beta
  • 21. CASE 3 One numeric count variable + 2 or more numeric /categorical variables • Count dependent variable: Statistic: • Poisson Regression • Effects of two or more independent variables on count dependent variable Research question: What are the effects of age of mother, age at marriage and residence on number of children ever born? Stata Command: xi: poisson ceb age agemar i.residence
  • 22. CASE 4 One numeric continuous variable + 2 or more categorical variables • Continuous dependent variable: • Statistic: • Multiple Regression with dummy categorical variables • Effects of two or more categorical independent variables on continuous dependent variable Research question: What are the effects of residence and ethnicity on age at marriage? xi: regress agemar i.residence i.ethnicity
  • 23. 23 CASE 4(contd) REGRESSION (INTERACTION EFFECTS) • xi: regress bmi age i.sex i.treat i.treat*i.sex By default the first (lowest) category will be omitted, i.e. be the reference group. You may, before the analysis. Select agegrp 3 to be the reference by defining a 'characteristic': • char agegrp[omit] 3
  • 24. CASE 5 All categorical variables – 3 or more • Categorical dependent variable+ 2 or more categorical independent variables Statistic: • Log-linear Analysis • Effects of two or more categorical independent variables on categorical dependent variable Research question: What are the effects of residence and family type on wantedness of last birth (wanted then, wanted later, not wanted at all)?
  • 25. CASE 6a(Logit and Probit) One dichotomous dep variable + 2 or more independent numeric variables/categorical variables • Dichotomous dependent variable: Statistic: • Binary Logistic Regression • Effects of two or more independent variables (numeric or categorical or both) on dichotomous dependent variable Research question: What are the effects of residence religion age at marriage on modern contraceptive use? Stata command xi: logistic contuse i.residence age i.relig agemar xi: logit contuse i.residence age i.relig agemar
  • 26. CASE 6b (Logit and Probit) One dichotomous dep variable + 2 or more independent numeric variables/categorical variables • Dichotomous dependent variable: Alternative Statistic: • Probit Regression • Effects of two or more independent variables (numeric or categorical or both) on dichotomous dependent variable Research question: What are the effects of residence religion age at marriage on modern contraceptive use? Stata command xi: probit contuse i.residence age i.relig agemar
  • 27. CASE 7 One categorical variable + 2 or more numeric variables/categorical • Categorical dependent variable (> 2 categories): Statistic: • Multinomial Logistic Regression Analysis • Effects of two or more independent variables (numeric or categorical or both) on categorical dependent variable(>2 cat) Research question: What are the effects of age of mother, age at marriage, residence and years of schooling on wantedness of last birth (wanted then, wanted later, not at all)?
  • 28. CASE 8 One categorical variable + 2 or more interval variables • Categorical dependent variable ( 2 categories or more): Statistic: • Discriminant Analysis • Classify modern contraceptive users by selected NUMERIC background age, age at marriage Research question: How do users and non users of modern contraceptive compare by age of mother, age at marriage?
  • 29. Cases 9 & 10 (Regression with more than one outcome variable) • More than one outcome variable + one predictor variable • Statistics: Multivariate Regression Analysis • More than one outcome variable + two or more predictor variables • Statistics: Multivariate Multiple Regression Analysis
  • 30. Appropriate techniques for problems with distinction between independent and dependent variables No. of Variables Measurement Level Analysis Method Dependent Independent Dependent Independent One One Nominal Nominal Non-parametric tests, Chi- square One One Nominal (dichotomous) Nominal Multiple Classification Analysis One One Nominal Nominal (Dichotomous) Wilcoxon's two sample test, Chi-square, Kolmogorov-Smirnov Test One One Interval-scale Nominal (Dichotomous) t-test, Analysis of Variance One One Interval-scale Interval-scale Regression Analysis One One Interval-scale Nominal Analysis of Variance One More Nominal Interval-scale Discriminant Analysis