SlideShare a Scribd company logo
Statistical tests for categorical data
Dr. S. A. Rizwan, M.D.
Public	Health	Specialist
SBCM,	Joint	Program	– Riyadh
Ministry	of	Health,	Kingdom	of	Saudi	Arabia
Learning	objectives
Demystifying statistics! SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh
• Examine	the	relationship	between	categorical	
variables
• Construct	a	contingency	table	for	two	categorical	
variables
• Describe	the	approach	to	statistical	testing	of	
categorical	variables
Revise:	Categorical	variables
Demystifying statistics! SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh
• Categorical	(qualitative)
• Nominal	(no	order)
• Dichotomous,	binary,	binomial
• Polychotomous
• Ordinal	(ordered)
• Answers	“what?”
• Qualitative	data	is	categorised
Revise:	Categorical	variables
Demystifying statistics! SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh
Revise:	Prerequisites	for	a	test
Demystifying statistics! SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh
• How	many	variables	are	there?
• What	is	the	nature	of	dependent	and	
independent	variable?
• How	many	categories	are	there	in	the	
categorical	variable?
• Does	the	continuous	variable	follow	normal	
distribution?
• Is	there	any	pairing	in	the	data/variables?
Revise:	DV,	IV,	Paired	data
Demystifying statistics! SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh
Statistical	tests:	Bivariate
SBCM, Joint Program – RiyadhSBCM, Joint Program – RiyadhDemystifying statistics!
For	unpaired	data For	paired	data
• If	assumptions	for	Chi	square	are	met
• Chi-square	(>=	2	levels)
• If	assumptions	for	Chi	square	NOT	met
• Fisher’s	exact	(>=	2	levels)
• If	the	groups	are	paired
• McNemar (if	2	levels)
• RM	logistic	regression	(if	>2	levels)
• Interrater reliability	analysis
Statistical	tests:	Multivariate
SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh
For	unpaired	data For	matched	data
Demystifying statistics!
• If	DV	is	binary	and	>1	IV
• Binary	logistic	regression
• If	DV	is	polychotomousand	>1	IV
• Multinomial	logistic	regression
• If	DV	is	ordinal	and	>1	IV
• Ordinal	regression
• If	the	groups	are	matched	
• Conditional	logistic	regression
• If	repeated	measurements
• RM	logistic	regression
Statistical	tests:	Special
SBCM, Joint Program – RiyadhSBCM, Joint Program – RiyadhDemystifying statistics!
For	stratified	data
• Cochran-Mantel-Haenszel test
Statistical	tests:	Special
SBCM, Joint Program – RiyadhSBCM, Joint Program – RiyadhDemystifying statistics!
For	ordered	categorical	variable
• Chi	square	test	for	trend
Passed Failed Total
R1	 100 78 178
R2 175 173 348
R3 42 59 101
Total 317 310 627
Measures	of	association
SBCM, Joint Program – RiyadhSBCM, Joint Program – RiyadhDemystifying statistics!
• Odds	ratio
• Relative	risk
• Interrater reliability	analysis
Contingency	table
SBCM, Joint Program – RiyadhSBCM, Joint Program – RiyadhDemystifying statistics!
• Used	in	bivariate	situations
• Use	counts,	not	percentages	
• No	one-sided	tests
• Each	subject	counted	only	once
• Explain	significant	findings
Some	selected	topics
SBCM, Joint Program – RiyadhSBCM, Joint Program – RiyadhDemystifying statistics!
• Covered	in	other	classes
• Chi	square	test
• Cochran-Mantel-Haenszel test
• Regression
• In	this	class	we	will	cover	basics	of:
• Fisher’s	exact	test
• McNemar test
• Interrater reliability	analysis	(Agreement	statistics)
Thought	exercise	1
SBCM, Joint Program – RiyadhSBCM, Joint Program – RiyadhDemystifying statistics!
• In	a	study	a	researcher	tested	a	perfume	on	9	rats	and	used	water	as	
the	control	on	9	other	rats.	Among	the	perfume	group	1	rat	showed	
restlessness	whereas	among	the	control	group	4	rats	showed	
restlessness.	Determine	if	there	is	an	association	between	perfume	
and	restlessness.
Thought	exercise	2
SBCM, Joint Program – RiyadhSBCM, Joint Program – RiyadhDemystifying statistics!
• 22	pairs	of	twins	were	enrolled	in	the	study.	One	of	the	twins	
smoked,	the	other	didn’t.	The	twins	were	followed	to	see	which	twin	
died	first.	For	17	pairs	of	twins,	the	smoking	twin	died	first	and	for	5	
pairs	of	twins,	the	non-smoking	twin	died	first.
Thought	exercise	3
SBCM, Joint Program – RiyadhSBCM, Joint Program – RiyadhDemystifying statistics!
• All	100	pathological	slides	were	observed	by	2	pathologists.	The	
were	supposed	to	classify	the	disease	as	mild,	moderate	and	severe.	
Pathologist	1	classified	60,	30,	10	and	pathologist	2	classified	50,	30,	
20	as	mild,	moderate	and	severe.	Both	pathologists	agreed	that	44	
were	mild,	20	were	moderate	and	6	were	severe	and	disagreed	on	
the	remaining	slides.	Calculate	the	agreement	between	the	two	
pathologists.
Fisher’s	exact	test
SBCM, Joint Program – RiyadhSBCM, Joint Program – RiyadhDemystifying statistics!
• Used	in	the	place	of	chi	square	
test	for	independence	when	the	
cell	counts	are	sparse
• More	than	20%	of	the	cells	have	
expected frequencies	of	<5
Fisher’s	exact	test
SBCM, Joint Program – RiyadhSBCM, Joint Program – RiyadhDemystifying statistics!
Fisher’s	exact	test
SBCM, Joint Program – RiyadhSBCM, Joint Program – RiyadhDemystifying statistics!
• 6	possible	tables	for	the	observed	
marginal	totals:	9,	9,	5,	13.
• p-value	is	calculated	by	summing	
all	probabilities	less	than	or	equal	
to	the	probability	of	the	observed	
table
Fisher’s	exact	test
SBCM, Joint Program – RiyadhSBCM, Joint Program – RiyadhDemystifying statistics!
• The	observed	table	(Table	II)	has	
probability	=	0.132	
• P-value	for	the	Fisher’s	exact	test	=	
Pr (Table	II)	+	Pr (Table	V)	+	Pr
(Table	I)	+	Pr (Table	VI)
• =	0.132	+	0.132	+	0.0147	+	0.0147	
=	0.293
McNemar test
SBCM, Joint Program – RiyadhSBCM, Joint Program – RiyadhDemystifying statistics!
• When	data	are	paired	and	the	outcome	of	interest	is	a	proportion,	
the	McNemar Test	is	used
• Pair-Matched	data	can	come	from
• Case-control	studies	where	each	case	has	a	matching	control	
(matched	on	age,	gender,	race,	etc.)
• Twins	studies	– the	matched	pairs	are	twins
• Before	- After	data
• Outcome	is	presence	(+)	or	absence	(-)	of	some	characteristic	
measured	on	the	same	individual	at	two	time	points
McNemar test:	matched	case-control	
SBCM, Joint Program – RiyadhSBCM, Joint Program – RiyadhDemystifying statistics!
• a	- number	of	case-control	pairs	where	both	are	exposed
• b	- number	of	case-control	pairs	where	the	case	is	exposed	and	the	
control	is	unexposed
• c	- number	of	case-control	pairs	where	the	case	is
• unexposed	and	the	control	is	exposed
• d	- number	of	case-control	pairs	where	both	are	unexposed
• The	counts	in	the	table	for	a	case-control	study	are	numbers	of	pairs	
not	numbers	of	individuals.
McNemar test:	before-after	study
SBCM, Joint Program – RiyadhSBCM, Joint Program – RiyadhDemystifying statistics!
• a	- number	of	subjects	with	characteristic	present	both	
before	and	after	treatment
• b	- number	of	subjects	where	characteristic	is	present	
before	but	not	after
• c	- number	of	subjects	where	characteristic	is	present	
after	but	not	before
• d	- number	of	subjects	with	the	characteristic	absent	
both	before	and	after	treatment.
McNemar test
SBCM, Joint Program – RiyadhSBCM, Joint Program – RiyadhDemystifying statistics!
• Calculated	using	the	counts	in	the	‘b’	and	
‘c’	cells	of	the	table
• The	sampling	distribution	Chi-square	
distribution,	the	degrees	of	freedom	=	1
• For	a	test	with	alpha	=	0.05,	the	critical	
value	for	the	McNemar statistic	=	3.84.
McNemar test
SBCM, Joint Program – RiyadhSBCM, Joint Program – RiyadhDemystifying statistics!
McNemar test
SBCM, Joint Program – RiyadhSBCM, Joint Program – RiyadhDemystifying statistics!
• Critical	value	for	Chi-square	
distribution	with	1	df =	3.84,	p
value	=	0.01
• Conclusion:	A	significantly	different	
proportion	of	smoking	twins	died	
first	compared	to	their	non-
smoking	twin	indicating	a	different	
risk	of	death	associated	with	
smoking	(p	=	0.01)
Agreement	statistics
SBCM, Joint Program – RiyadhSBCM, Joint Program – RiyadhDemystifying statistics!
• Many	types	of	agreement	statistics depending	on
• Data	type
• Type	of	repetition
• Internal	consistency
Agreement	statistics
SBCM, Joint Program – RiyadhSBCM, Joint Program – RiyadhDemystifying statistics!
• Cohen’s	kappa
• Measures	the	agreement	between	
two	raters who	each	classify	N	
items	into	C	mutually	exclusive	
categories
• Used	when	responses	are	
categorical
Agreement	statistics
SBCM, Joint Program – RiyadhSBCM, Joint Program – RiyadhDemystifying statistics!
Agreement	statistics
SBCM, Joint Program – RiyadhSBCM, Joint Program – RiyadhDemystifying statistics!
𝐾𝑎𝑝𝑝𝑎 =	
0.70	 − 0.41
1	 − 0.41
= 0.491
Advanced	learning
Demystifying statistics! SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh
• Chi	square	test	for	trend
• Special	cases	of	logistic	regression
• Repeated	measures	logistic	regression
• Weighted	kappa
• Other	measures	of	agreement	analysis
Take	home	messages
Demystifying statistics! SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh
• Many	approaches	are	available	for	analysing	categorical	data
• Choose	a	method	appropriate	for	your	problem
• Check	that	the	assumptions	of	the	method	are	valid
• Make	conclusions	based	on	the	results	of	the	test
Thank	you!
Email	your	queries	to	sarizwan1986@outlook.com

More Related Content

What's hot

Checking for normality (Normal distribution)
Checking for normality (Normal distribution)Checking for normality (Normal distribution)
Checking for normality (Normal distribution)
Rizwan S A
 
Measures of association 2013
Measures of association 2013Measures of association 2013
Measures of association 2013dinahoefer11
 
Logistic Regression Analysis
Logistic Regression AnalysisLogistic Regression Analysis
Logistic Regression Analysis
COSTARCH Analytical Consulting (P) Ltd.
 
Correlation and Regression Analysis using SPSS and Microsoft Excel
Correlation and Regression Analysis using SPSS and Microsoft ExcelCorrelation and Regression Analysis using SPSS and Microsoft Excel
Correlation and Regression Analysis using SPSS and Microsoft Excel
Setia Pramana
 
Data analysis using spss
Data analysis using spssData analysis using spss
Data analysis using spss
Syed Faisal
 
biostatistics
biostatisticsbiostatistics
biostatistics
Mehul Shinde
 
Multivariate analysis
Multivariate analysisMultivariate analysis
Multivariate analysis
Subodh Khanal
 
Introduction to Data Analysis With R and R Studio
Introduction to Data Analysis With R and R StudioIntroduction to Data Analysis With R and R Studio
Introduction to Data Analysis With R and R Studio
Azmi Mohd Tamil
 
6.4.4 designs case-crossover
6.4.4 designs case-crossover6.4.4 designs case-crossover
6.4.4 designs case-crossover
A M
 
Sample size
Sample sizeSample size
Sample size
Roger Watson
 
Research method ch07 statistical methods 1
Research method ch07 statistical methods 1Research method ch07 statistical methods 1
Research method ch07 statistical methods 1naranbatn
 
Introduction to biostatistics
Introduction to biostatisticsIntroduction to biostatistics
Introduction to biostatistics
Ali Al Mousawi
 
Logistic regression with SPSS examples
Logistic regression with SPSS examplesLogistic regression with SPSS examples
Logistic regression with SPSS examples
Gaurav Kamboj
 
How to choose a right statistical test
How to choose a right statistical testHow to choose a right statistical test
How to choose a right statistical test
Khalid Mahmood
 
Statistical tests for data involving quantitative data
Statistical tests for data involving quantitative dataStatistical tests for data involving quantitative data
Statistical tests for data involving quantitative data
Rizwan S A
 
Multinomial Logistic Regression
Multinomial Logistic RegressionMultinomial Logistic Regression
Multinomial Logistic Regression
Dr Athar Khan
 
Sample Size Estimation
Sample Size EstimationSample Size Estimation
Sample Size Estimation
Nayyar Kazmi
 
Biostatistics ppt
Biostatistics  pptBiostatistics  ppt
Biostatistics ppt
santhoshikayithi
 
Logistic regression
Logistic regressionLogistic regression
Logistic regression
DrZahid Khan
 
Measures Of Association
Measures Of AssociationMeasures Of Association
Measures Of Association
ganesh kumar
 

What's hot (20)

Checking for normality (Normal distribution)
Checking for normality (Normal distribution)Checking for normality (Normal distribution)
Checking for normality (Normal distribution)
 
Measures of association 2013
Measures of association 2013Measures of association 2013
Measures of association 2013
 
Logistic Regression Analysis
Logistic Regression AnalysisLogistic Regression Analysis
Logistic Regression Analysis
 
Correlation and Regression Analysis using SPSS and Microsoft Excel
Correlation and Regression Analysis using SPSS and Microsoft ExcelCorrelation and Regression Analysis using SPSS and Microsoft Excel
Correlation and Regression Analysis using SPSS and Microsoft Excel
 
Data analysis using spss
Data analysis using spssData analysis using spss
Data analysis using spss
 
biostatistics
biostatisticsbiostatistics
biostatistics
 
Multivariate analysis
Multivariate analysisMultivariate analysis
Multivariate analysis
 
Introduction to Data Analysis With R and R Studio
Introduction to Data Analysis With R and R StudioIntroduction to Data Analysis With R and R Studio
Introduction to Data Analysis With R and R Studio
 
6.4.4 designs case-crossover
6.4.4 designs case-crossover6.4.4 designs case-crossover
6.4.4 designs case-crossover
 
Sample size
Sample sizeSample size
Sample size
 
Research method ch07 statistical methods 1
Research method ch07 statistical methods 1Research method ch07 statistical methods 1
Research method ch07 statistical methods 1
 
Introduction to biostatistics
Introduction to biostatisticsIntroduction to biostatistics
Introduction to biostatistics
 
Logistic regression with SPSS examples
Logistic regression with SPSS examplesLogistic regression with SPSS examples
Logistic regression with SPSS examples
 
How to choose a right statistical test
How to choose a right statistical testHow to choose a right statistical test
How to choose a right statistical test
 
Statistical tests for data involving quantitative data
Statistical tests for data involving quantitative dataStatistical tests for data involving quantitative data
Statistical tests for data involving quantitative data
 
Multinomial Logistic Regression
Multinomial Logistic RegressionMultinomial Logistic Regression
Multinomial Logistic Regression
 
Sample Size Estimation
Sample Size EstimationSample Size Estimation
Sample Size Estimation
 
Biostatistics ppt
Biostatistics  pptBiostatistics  ppt
Biostatistics ppt
 
Logistic regression
Logistic regressionLogistic regression
Logistic regression
 
Measures Of Association
Measures Of AssociationMeasures Of Association
Measures Of Association
 

Similar to Statistical tests for categorical data

Sample size in health sciences - Basics and selected examples
Sample size in health sciences - Basics and selected examplesSample size in health sciences - Basics and selected examples
Sample size in health sciences - Basics and selected examples
Rizwan S A
 
Chi square test and its types
Chi square test and its typesChi square test and its types
Chi square test and its types
Rizwan S A
 
Evidence based medicine or health practice
Evidence based medicine or health practiceEvidence based medicine or health practice
Evidence based medicine or health practice
Rizwan S A
 
Use of checklists in critical appraisal of health literature
Use of checklists in critical appraisal of health literatureUse of checklists in critical appraisal of health literature
Use of checklists in critical appraisal of health literature
Rizwan S A
 
Tests of hypothesis (Statistical testing)
Tests of hypothesis (Statistical testing)Tests of hypothesis (Statistical testing)
Tests of hypothesis (Statistical testing)
Rizwan S A
 
Analysis of small datasets
Analysis of small datasetsAnalysis of small datasets
Analysis of small datasets
Rizwan S A
 
Probability distributions, sampling distributions and central limit theorem
Probability distributions, sampling distributions and central limit theoremProbability distributions, sampling distributions and central limit theorem
Probability distributions, sampling distributions and central limit theorem
Rizwan S A
 
A introduction to non-parametric tests
A introduction to non-parametric testsA introduction to non-parametric tests
A introduction to non-parametric tests
Rizwan S A
 
Clinical Validation of Copy Number Variants Using the AMP Guidelines
Clinical Validation of Copy Number Variants Using the AMP GuidelinesClinical Validation of Copy Number Variants Using the AMP Guidelines
Clinical Validation of Copy Number Variants Using the AMP Guidelines
Golden Helix
 
Numerical summaries-Numerical summaries-Numerical summaries
Numerical summaries-Numerical summaries-Numerical summariesNumerical summaries-Numerical summaries-Numerical summaries
Numerical summaries-Numerical summaries-Numerical summaries
AlaaMassarweh1
 
Biosocial research: Biological data quality issues
Biosocial research: Biological data quality issuesBiosocial research: Biological data quality issues
Biosocial research: Biological data quality issues
University of Southampton
 
Health Education/Risk Reduction referrals to HIV testing in non-clinical sett...
Health Education/Risk Reduction referrals to HIV testing in non-clinical sett...Health Education/Risk Reduction referrals to HIV testing in non-clinical sett...
Health Education/Risk Reduction referrals to HIV testing in non-clinical sett...CDC NPIN
 
CanREValue: A Framework for the Incorporation of Real-World Evidence (RWE) in...
CanREValue: A Framework for the Incorporation of Real-World Evidence (RWE) in...CanREValue: A Framework for the Incorporation of Real-World Evidence (RWE) in...
CanREValue: A Framework for the Incorporation of Real-World Evidence (RWE) in...
Canadian Cancer Survivor Network
 
Big data vs the RCT - Derek Angus - SSAI2017
Big data vs the RCT - Derek Angus - SSAI2017Big data vs the RCT - Derek Angus - SSAI2017
Big data vs the RCT - Derek Angus - SSAI2017
scanFOAM
 
Enhance Genomic Research with Polygenic Risk Score Calculations in SVS
Enhance Genomic Research with Polygenic Risk Score Calculations in SVSEnhance Genomic Research with Polygenic Risk Score Calculations in SVS
Enhance Genomic Research with Polygenic Risk Score Calculations in SVS
Golden Helix
 
REFERENCE RANGE PART ONE . PRECISION AND ACCURACY
REFERENCE RANGE PART ONE . PRECISION AND ACCURACYREFERENCE RANGE PART ONE . PRECISION AND ACCURACY
REFERENCE RANGE PART ONE . PRECISION AND ACCURACY
John Mak
 
Comparison of RECIST 1.0 and 1.1 - Impact on Data Management
Comparison of RECIST 1.0 and 1.1 - Impact on Data ManagementComparison of RECIST 1.0 and 1.1 - Impact on Data Management
Comparison of RECIST 1.0 and 1.1 - Impact on Data Management
Kevin Shea
 
Pathway 2.0 for RWE and MA 2015 -John Cai
Pathway 2.0 for RWE and MA 2015 -John CaiPathway 2.0 for RWE and MA 2015 -John Cai
Pathway 2.0 for RWE and MA 2015 -John CaiJohn Cai
 
Techniques in clinical epidemiology
Techniques in clinical epidemiologyTechniques in clinical epidemiology
Techniques in clinical epidemiology
Bhoj Raj Singh
 
ACMG-Based Variant Classification with VSClinical
ACMG-Based Variant Classification with VSClinicalACMG-Based Variant Classification with VSClinical
ACMG-Based Variant Classification with VSClinical
Golden Helix
 

Similar to Statistical tests for categorical data (20)

Sample size in health sciences - Basics and selected examples
Sample size in health sciences - Basics and selected examplesSample size in health sciences - Basics and selected examples
Sample size in health sciences - Basics and selected examples
 
Chi square test and its types
Chi square test and its typesChi square test and its types
Chi square test and its types
 
Evidence based medicine or health practice
Evidence based medicine or health practiceEvidence based medicine or health practice
Evidence based medicine or health practice
 
Use of checklists in critical appraisal of health literature
Use of checklists in critical appraisal of health literatureUse of checklists in critical appraisal of health literature
Use of checklists in critical appraisal of health literature
 
Tests of hypothesis (Statistical testing)
Tests of hypothesis (Statistical testing)Tests of hypothesis (Statistical testing)
Tests of hypothesis (Statistical testing)
 
Analysis of small datasets
Analysis of small datasetsAnalysis of small datasets
Analysis of small datasets
 
Probability distributions, sampling distributions and central limit theorem
Probability distributions, sampling distributions and central limit theoremProbability distributions, sampling distributions and central limit theorem
Probability distributions, sampling distributions and central limit theorem
 
A introduction to non-parametric tests
A introduction to non-parametric testsA introduction to non-parametric tests
A introduction to non-parametric tests
 
Clinical Validation of Copy Number Variants Using the AMP Guidelines
Clinical Validation of Copy Number Variants Using the AMP GuidelinesClinical Validation of Copy Number Variants Using the AMP Guidelines
Clinical Validation of Copy Number Variants Using the AMP Guidelines
 
Numerical summaries-Numerical summaries-Numerical summaries
Numerical summaries-Numerical summaries-Numerical summariesNumerical summaries-Numerical summaries-Numerical summaries
Numerical summaries-Numerical summaries-Numerical summaries
 
Biosocial research: Biological data quality issues
Biosocial research: Biological data quality issuesBiosocial research: Biological data quality issues
Biosocial research: Biological data quality issues
 
Health Education/Risk Reduction referrals to HIV testing in non-clinical sett...
Health Education/Risk Reduction referrals to HIV testing in non-clinical sett...Health Education/Risk Reduction referrals to HIV testing in non-clinical sett...
Health Education/Risk Reduction referrals to HIV testing in non-clinical sett...
 
CanREValue: A Framework for the Incorporation of Real-World Evidence (RWE) in...
CanREValue: A Framework for the Incorporation of Real-World Evidence (RWE) in...CanREValue: A Framework for the Incorporation of Real-World Evidence (RWE) in...
CanREValue: A Framework for the Incorporation of Real-World Evidence (RWE) in...
 
Big data vs the RCT - Derek Angus - SSAI2017
Big data vs the RCT - Derek Angus - SSAI2017Big data vs the RCT - Derek Angus - SSAI2017
Big data vs the RCT - Derek Angus - SSAI2017
 
Enhance Genomic Research with Polygenic Risk Score Calculations in SVS
Enhance Genomic Research with Polygenic Risk Score Calculations in SVSEnhance Genomic Research with Polygenic Risk Score Calculations in SVS
Enhance Genomic Research with Polygenic Risk Score Calculations in SVS
 
REFERENCE RANGE PART ONE . PRECISION AND ACCURACY
REFERENCE RANGE PART ONE . PRECISION AND ACCURACYREFERENCE RANGE PART ONE . PRECISION AND ACCURACY
REFERENCE RANGE PART ONE . PRECISION AND ACCURACY
 
Comparison of RECIST 1.0 and 1.1 - Impact on Data Management
Comparison of RECIST 1.0 and 1.1 - Impact on Data ManagementComparison of RECIST 1.0 and 1.1 - Impact on Data Management
Comparison of RECIST 1.0 and 1.1 - Impact on Data Management
 
Pathway 2.0 for RWE and MA 2015 -John Cai
Pathway 2.0 for RWE and MA 2015 -John CaiPathway 2.0 for RWE and MA 2015 -John Cai
Pathway 2.0 for RWE and MA 2015 -John Cai
 
Techniques in clinical epidemiology
Techniques in clinical epidemiologyTechniques in clinical epidemiology
Techniques in clinical epidemiology
 
ACMG-Based Variant Classification with VSClinical
ACMG-Based Variant Classification with VSClinicalACMG-Based Variant Classification with VSClinical
ACMG-Based Variant Classification with VSClinical
 

More from Rizwan S A

Introduction to scoping reviews
Introduction to scoping reviewsIntroduction to scoping reviews
Introduction to scoping reviews
Rizwan S A
 
Sources of demographic data 2019
Sources of demographic data 2019Sources of demographic data 2019
Sources of demographic data 2019
Rizwan S A
 
Effect sizes in meta-analysis
Effect sizes in meta-analysisEffect sizes in meta-analysis
Effect sizes in meta-analysis
Rizwan S A
 
Presenting the results of meta-analysis
Presenting the results of meta-analysisPresenting the results of meta-analysis
Presenting the results of meta-analysis
Rizwan S A
 
Heterogeneity in meta-analysis
Heterogeneity in meta-analysisHeterogeneity in meta-analysis
Heterogeneity in meta-analysis
Rizwan S A
 
Overview of the systematic review process
Overview of the systematic review processOverview of the systematic review process
Overview of the systematic review process
Rizwan S A
 
Biases in meta-analysis
Biases in meta-analysisBiases in meta-analysis
Biases in meta-analysis
Rizwan S A
 
Moderator analysis in meta-analysis
Moderator analysis in meta-analysisModerator analysis in meta-analysis
Moderator analysis in meta-analysis
Rizwan S A
 
Fixed-effect and random-effects models in meta-analysis
Fixed-effect and random-effects models in meta-analysisFixed-effect and random-effects models in meta-analysis
Fixed-effect and random-effects models in meta-analysis
Rizwan S A
 
Inverse variance method of meta-analysis and Cochran's Q
Inverse variance method of meta-analysis and Cochran's QInverse variance method of meta-analysis and Cochran's Q
Inverse variance method of meta-analysis and Cochran's Q
Rizwan S A
 
Data extraction/coding and database structure in meta-analysis
Data extraction/coding and database structure in meta-analysisData extraction/coding and database structure in meta-analysis
Data extraction/coding and database structure in meta-analysis
Rizwan S A
 
Introduction & rationale for meta-analysis
Introduction & rationale for meta-analysisIntroduction & rationale for meta-analysis
Introduction & rationale for meta-analysis
Rizwan S A
 
Types of correlation coefficients
Types of correlation coefficientsTypes of correlation coefficients
Types of correlation coefficients
Rizwan S A
 
Kruskal Wallis test, Friedman test, Spearman Correlation
Kruskal Wallis test, Friedman test, Spearman CorrelationKruskal Wallis test, Friedman test, Spearman Correlation
Kruskal Wallis test, Friedman test, Spearman Correlation
Rizwan S A
 
Kolmogorov Smirnov good-of-fit test
Kolmogorov Smirnov good-of-fit testKolmogorov Smirnov good-of-fit test
Kolmogorov Smirnov good-of-fit test
Rizwan S A
 
Mantel Haenszel methods in epidemiology (Stratification)
Mantel Haenszel methods in epidemiology (Stratification) Mantel Haenszel methods in epidemiology (Stratification)
Mantel Haenszel methods in epidemiology (Stratification)
Rizwan S A
 
Critical Appraisal of health literature
Critical Appraisal of health literatureCritical Appraisal of health literature
Critical Appraisal of health literature
Rizwan S A
 
Critical Appraisal of health literature
Critical Appraisal of health literatureCritical Appraisal of health literature
Critical Appraisal of health literature
Rizwan S A
 
Critical Appraisal of health literature - an overview
Critical Appraisal of health literature - an overviewCritical Appraisal of health literature - an overview
Critical Appraisal of health literature - an overview
Rizwan S A
 
Epidemiology: Standardisation of rates
Epidemiology: Standardisation of ratesEpidemiology: Standardisation of rates
Epidemiology: Standardisation of rates
Rizwan S A
 

More from Rizwan S A (20)

Introduction to scoping reviews
Introduction to scoping reviewsIntroduction to scoping reviews
Introduction to scoping reviews
 
Sources of demographic data 2019
Sources of demographic data 2019Sources of demographic data 2019
Sources of demographic data 2019
 
Effect sizes in meta-analysis
Effect sizes in meta-analysisEffect sizes in meta-analysis
Effect sizes in meta-analysis
 
Presenting the results of meta-analysis
Presenting the results of meta-analysisPresenting the results of meta-analysis
Presenting the results of meta-analysis
 
Heterogeneity in meta-analysis
Heterogeneity in meta-analysisHeterogeneity in meta-analysis
Heterogeneity in meta-analysis
 
Overview of the systematic review process
Overview of the systematic review processOverview of the systematic review process
Overview of the systematic review process
 
Biases in meta-analysis
Biases in meta-analysisBiases in meta-analysis
Biases in meta-analysis
 
Moderator analysis in meta-analysis
Moderator analysis in meta-analysisModerator analysis in meta-analysis
Moderator analysis in meta-analysis
 
Fixed-effect and random-effects models in meta-analysis
Fixed-effect and random-effects models in meta-analysisFixed-effect and random-effects models in meta-analysis
Fixed-effect and random-effects models in meta-analysis
 
Inverse variance method of meta-analysis and Cochran's Q
Inverse variance method of meta-analysis and Cochran's QInverse variance method of meta-analysis and Cochran's Q
Inverse variance method of meta-analysis and Cochran's Q
 
Data extraction/coding and database structure in meta-analysis
Data extraction/coding and database structure in meta-analysisData extraction/coding and database structure in meta-analysis
Data extraction/coding and database structure in meta-analysis
 
Introduction & rationale for meta-analysis
Introduction & rationale for meta-analysisIntroduction & rationale for meta-analysis
Introduction & rationale for meta-analysis
 
Types of correlation coefficients
Types of correlation coefficientsTypes of correlation coefficients
Types of correlation coefficients
 
Kruskal Wallis test, Friedman test, Spearman Correlation
Kruskal Wallis test, Friedman test, Spearman CorrelationKruskal Wallis test, Friedman test, Spearman Correlation
Kruskal Wallis test, Friedman test, Spearman Correlation
 
Kolmogorov Smirnov good-of-fit test
Kolmogorov Smirnov good-of-fit testKolmogorov Smirnov good-of-fit test
Kolmogorov Smirnov good-of-fit test
 
Mantel Haenszel methods in epidemiology (Stratification)
Mantel Haenszel methods in epidemiology (Stratification) Mantel Haenszel methods in epidemiology (Stratification)
Mantel Haenszel methods in epidemiology (Stratification)
 
Critical Appraisal of health literature
Critical Appraisal of health literatureCritical Appraisal of health literature
Critical Appraisal of health literature
 
Critical Appraisal of health literature
Critical Appraisal of health literatureCritical Appraisal of health literature
Critical Appraisal of health literature
 
Critical Appraisal of health literature - an overview
Critical Appraisal of health literature - an overviewCritical Appraisal of health literature - an overview
Critical Appraisal of health literature - an overview
 
Epidemiology: Standardisation of rates
Epidemiology: Standardisation of ratesEpidemiology: Standardisation of rates
Epidemiology: Standardisation of rates
 

Recently uploaded

New Directions in Targeted Therapeutic Approaches for Older Adults With Mantl...
New Directions in Targeted Therapeutic Approaches for Older Adults With Mantl...New Directions in Targeted Therapeutic Approaches for Older Adults With Mantl...
New Directions in Targeted Therapeutic Approaches for Older Adults With Mantl...
i3 Health
 
Basavarajeeyam - Ayurvedic heritage book of Andhra pradesh
Basavarajeeyam - Ayurvedic heritage book of Andhra pradeshBasavarajeeyam - Ayurvedic heritage book of Andhra pradesh
Basavarajeeyam - Ayurvedic heritage book of Andhra pradesh
Dr. Madduru Muni Haritha
 
ANATOMY AND PHYSIOLOGY OF URINARY SYSTEM.pptx
ANATOMY AND PHYSIOLOGY OF URINARY SYSTEM.pptxANATOMY AND PHYSIOLOGY OF URINARY SYSTEM.pptx
ANATOMY AND PHYSIOLOGY OF URINARY SYSTEM.pptx
Swetaba Besh
 
Hemodialysis: Chapter 3, Dialysis Water Unit - Dr.Gawad
Hemodialysis: Chapter 3, Dialysis Water Unit - Dr.GawadHemodialysis: Chapter 3, Dialysis Water Unit - Dr.Gawad
Hemodialysis: Chapter 3, Dialysis Water Unit - Dr.Gawad
NephroTube - Dr.Gawad
 
MANAGEMENT OF ATRIOVENTRICULAR CONDUCTION BLOCK.pdf
MANAGEMENT OF ATRIOVENTRICULAR CONDUCTION BLOCK.pdfMANAGEMENT OF ATRIOVENTRICULAR CONDUCTION BLOCK.pdf
MANAGEMENT OF ATRIOVENTRICULAR CONDUCTION BLOCK.pdf
Jim Jacob Roy
 
KDIGO 2024 guidelines for diabetologists
KDIGO 2024 guidelines for diabetologistsKDIGO 2024 guidelines for diabetologists
KDIGO 2024 guidelines for diabetologists
د.محمود نجيب
 
Triangles of Neck and Clinical Correlation by Dr. RIG.pptx
Triangles of Neck and Clinical Correlation by Dr. RIG.pptxTriangles of Neck and Clinical Correlation by Dr. RIG.pptx
Triangles of Neck and Clinical Correlation by Dr. RIG.pptx
Dr. Rabia Inam Gandapore
 
Novas diretrizes da OMS para os cuidados perinatais de mais qualidade
Novas diretrizes da OMS para os cuidados perinatais de mais qualidadeNovas diretrizes da OMS para os cuidados perinatais de mais qualidade
Novas diretrizes da OMS para os cuidados perinatais de mais qualidade
Prof. Marcus Renato de Carvalho
 
Pharma Pcd Franchise in Jharkhand - Yodley Lifesciences
Pharma Pcd Franchise in Jharkhand - Yodley LifesciencesPharma Pcd Franchise in Jharkhand - Yodley Lifesciences
Pharma Pcd Franchise in Jharkhand - Yodley Lifesciences
Yodley Lifesciences
 
Flu Vaccine Alert in Bangalore Karnataka
Flu Vaccine Alert in Bangalore KarnatakaFlu Vaccine Alert in Bangalore Karnataka
Flu Vaccine Alert in Bangalore Karnataka
addon Scans
 
Tom Selleck Health: A Comprehensive Look at the Iconic Actor’s Wellness Journey
Tom Selleck Health: A Comprehensive Look at the Iconic Actor’s Wellness JourneyTom Selleck Health: A Comprehensive Look at the Iconic Actor’s Wellness Journey
Tom Selleck Health: A Comprehensive Look at the Iconic Actor’s Wellness Journey
greendigital
 
New Drug Discovery and Development .....
New Drug Discovery and Development .....New Drug Discovery and Development .....
New Drug Discovery and Development .....
NEHA GUPTA
 
TEST BANK for Operations Management, 14th Edition by William J. Stevenson, Ve...
TEST BANK for Operations Management, 14th Edition by William J. Stevenson, Ve...TEST BANK for Operations Management, 14th Edition by William J. Stevenson, Ve...
TEST BANK for Operations Management, 14th Edition by William J. Stevenson, Ve...
kevinkariuki227
 
Ocular injury ppt Upendra pal optometrist upums saifai etawah
Ocular injury  ppt  Upendra pal  optometrist upums saifai etawahOcular injury  ppt  Upendra pal  optometrist upums saifai etawah
Ocular injury ppt Upendra pal optometrist upums saifai etawah
pal078100
 
heat stroke and heat exhaustion in children
heat stroke and heat exhaustion in childrenheat stroke and heat exhaustion in children
heat stroke and heat exhaustion in children
SumeraAhmad5
 
Lung Cancer: Artificial Intelligence, Synergetics, Complex System Analysis, S...
Lung Cancer: Artificial Intelligence, Synergetics, Complex System Analysis, S...Lung Cancer: Artificial Intelligence, Synergetics, Complex System Analysis, S...
Lung Cancer: Artificial Intelligence, Synergetics, Complex System Analysis, S...
Oleg Kshivets
 
Ozempic: Preoperative Management of Patients on GLP-1 Receptor Agonists
Ozempic: Preoperative Management of Patients on GLP-1 Receptor Agonists  Ozempic: Preoperative Management of Patients on GLP-1 Receptor Agonists
Ozempic: Preoperative Management of Patients on GLP-1 Receptor Agonists
Saeid Safari
 
NVBDCP.pptx Nation vector borne disease control program
NVBDCP.pptx Nation vector borne disease control programNVBDCP.pptx Nation vector borne disease control program
NVBDCP.pptx Nation vector borne disease control program
Sapna Thakur
 
Evaluation of antidepressant activity of clitoris ternatea in animals
Evaluation of antidepressant activity of clitoris ternatea in animalsEvaluation of antidepressant activity of clitoris ternatea in animals
Evaluation of antidepressant activity of clitoris ternatea in animals
Shweta
 
Report Back from SGO 2024: What’s the Latest in Cervical Cancer?
Report Back from SGO 2024: What’s the Latest in Cervical Cancer?Report Back from SGO 2024: What’s the Latest in Cervical Cancer?
Report Back from SGO 2024: What’s the Latest in Cervical Cancer?
bkling
 

Recently uploaded (20)

New Directions in Targeted Therapeutic Approaches for Older Adults With Mantl...
New Directions in Targeted Therapeutic Approaches for Older Adults With Mantl...New Directions in Targeted Therapeutic Approaches for Older Adults With Mantl...
New Directions in Targeted Therapeutic Approaches for Older Adults With Mantl...
 
Basavarajeeyam - Ayurvedic heritage book of Andhra pradesh
Basavarajeeyam - Ayurvedic heritage book of Andhra pradeshBasavarajeeyam - Ayurvedic heritage book of Andhra pradesh
Basavarajeeyam - Ayurvedic heritage book of Andhra pradesh
 
ANATOMY AND PHYSIOLOGY OF URINARY SYSTEM.pptx
ANATOMY AND PHYSIOLOGY OF URINARY SYSTEM.pptxANATOMY AND PHYSIOLOGY OF URINARY SYSTEM.pptx
ANATOMY AND PHYSIOLOGY OF URINARY SYSTEM.pptx
 
Hemodialysis: Chapter 3, Dialysis Water Unit - Dr.Gawad
Hemodialysis: Chapter 3, Dialysis Water Unit - Dr.GawadHemodialysis: Chapter 3, Dialysis Water Unit - Dr.Gawad
Hemodialysis: Chapter 3, Dialysis Water Unit - Dr.Gawad
 
MANAGEMENT OF ATRIOVENTRICULAR CONDUCTION BLOCK.pdf
MANAGEMENT OF ATRIOVENTRICULAR CONDUCTION BLOCK.pdfMANAGEMENT OF ATRIOVENTRICULAR CONDUCTION BLOCK.pdf
MANAGEMENT OF ATRIOVENTRICULAR CONDUCTION BLOCK.pdf
 
KDIGO 2024 guidelines for diabetologists
KDIGO 2024 guidelines for diabetologistsKDIGO 2024 guidelines for diabetologists
KDIGO 2024 guidelines for diabetologists
 
Triangles of Neck and Clinical Correlation by Dr. RIG.pptx
Triangles of Neck and Clinical Correlation by Dr. RIG.pptxTriangles of Neck and Clinical Correlation by Dr. RIG.pptx
Triangles of Neck and Clinical Correlation by Dr. RIG.pptx
 
Novas diretrizes da OMS para os cuidados perinatais de mais qualidade
Novas diretrizes da OMS para os cuidados perinatais de mais qualidadeNovas diretrizes da OMS para os cuidados perinatais de mais qualidade
Novas diretrizes da OMS para os cuidados perinatais de mais qualidade
 
Pharma Pcd Franchise in Jharkhand - Yodley Lifesciences
Pharma Pcd Franchise in Jharkhand - Yodley LifesciencesPharma Pcd Franchise in Jharkhand - Yodley Lifesciences
Pharma Pcd Franchise in Jharkhand - Yodley Lifesciences
 
Flu Vaccine Alert in Bangalore Karnataka
Flu Vaccine Alert in Bangalore KarnatakaFlu Vaccine Alert in Bangalore Karnataka
Flu Vaccine Alert in Bangalore Karnataka
 
Tom Selleck Health: A Comprehensive Look at the Iconic Actor’s Wellness Journey
Tom Selleck Health: A Comprehensive Look at the Iconic Actor’s Wellness JourneyTom Selleck Health: A Comprehensive Look at the Iconic Actor’s Wellness Journey
Tom Selleck Health: A Comprehensive Look at the Iconic Actor’s Wellness Journey
 
New Drug Discovery and Development .....
New Drug Discovery and Development .....New Drug Discovery and Development .....
New Drug Discovery and Development .....
 
TEST BANK for Operations Management, 14th Edition by William J. Stevenson, Ve...
TEST BANK for Operations Management, 14th Edition by William J. Stevenson, Ve...TEST BANK for Operations Management, 14th Edition by William J. Stevenson, Ve...
TEST BANK for Operations Management, 14th Edition by William J. Stevenson, Ve...
 
Ocular injury ppt Upendra pal optometrist upums saifai etawah
Ocular injury  ppt  Upendra pal  optometrist upums saifai etawahOcular injury  ppt  Upendra pal  optometrist upums saifai etawah
Ocular injury ppt Upendra pal optometrist upums saifai etawah
 
heat stroke and heat exhaustion in children
heat stroke and heat exhaustion in childrenheat stroke and heat exhaustion in children
heat stroke and heat exhaustion in children
 
Lung Cancer: Artificial Intelligence, Synergetics, Complex System Analysis, S...
Lung Cancer: Artificial Intelligence, Synergetics, Complex System Analysis, S...Lung Cancer: Artificial Intelligence, Synergetics, Complex System Analysis, S...
Lung Cancer: Artificial Intelligence, Synergetics, Complex System Analysis, S...
 
Ozempic: Preoperative Management of Patients on GLP-1 Receptor Agonists
Ozempic: Preoperative Management of Patients on GLP-1 Receptor Agonists  Ozempic: Preoperative Management of Patients on GLP-1 Receptor Agonists
Ozempic: Preoperative Management of Patients on GLP-1 Receptor Agonists
 
NVBDCP.pptx Nation vector borne disease control program
NVBDCP.pptx Nation vector borne disease control programNVBDCP.pptx Nation vector borne disease control program
NVBDCP.pptx Nation vector borne disease control program
 
Evaluation of antidepressant activity of clitoris ternatea in animals
Evaluation of antidepressant activity of clitoris ternatea in animalsEvaluation of antidepressant activity of clitoris ternatea in animals
Evaluation of antidepressant activity of clitoris ternatea in animals
 
Report Back from SGO 2024: What’s the Latest in Cervical Cancer?
Report Back from SGO 2024: What’s the Latest in Cervical Cancer?Report Back from SGO 2024: What’s the Latest in Cervical Cancer?
Report Back from SGO 2024: What’s the Latest in Cervical Cancer?
 

Statistical tests for categorical data

  • 1. Statistical tests for categorical data Dr. S. A. Rizwan, M.D. Public Health Specialist SBCM, Joint Program – Riyadh Ministry of Health, Kingdom of Saudi Arabia
  • 2. Learning objectives Demystifying statistics! SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh • Examine the relationship between categorical variables • Construct a contingency table for two categorical variables • Describe the approach to statistical testing of categorical variables
  • 3. Revise: Categorical variables Demystifying statistics! SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh • Categorical (qualitative) • Nominal (no order) • Dichotomous, binary, binomial • Polychotomous • Ordinal (ordered) • Answers “what?” • Qualitative data is categorised
  • 4. Revise: Categorical variables Demystifying statistics! SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh
  • 5. Revise: Prerequisites for a test Demystifying statistics! SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh • How many variables are there? • What is the nature of dependent and independent variable? • How many categories are there in the categorical variable? • Does the continuous variable follow normal distribution? • Is there any pairing in the data/variables?
  • 6. Revise: DV, IV, Paired data Demystifying statistics! SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh
  • 7. Statistical tests: Bivariate SBCM, Joint Program – RiyadhSBCM, Joint Program – RiyadhDemystifying statistics! For unpaired data For paired data • If assumptions for Chi square are met • Chi-square (>= 2 levels) • If assumptions for Chi square NOT met • Fisher’s exact (>= 2 levels) • If the groups are paired • McNemar (if 2 levels) • RM logistic regression (if >2 levels) • Interrater reliability analysis
  • 8. Statistical tests: Multivariate SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh For unpaired data For matched data Demystifying statistics! • If DV is binary and >1 IV • Binary logistic regression • If DV is polychotomousand >1 IV • Multinomial logistic regression • If DV is ordinal and >1 IV • Ordinal regression • If the groups are matched • Conditional logistic regression • If repeated measurements • RM logistic regression
  • 9. Statistical tests: Special SBCM, Joint Program – RiyadhSBCM, Joint Program – RiyadhDemystifying statistics! For stratified data • Cochran-Mantel-Haenszel test
  • 10. Statistical tests: Special SBCM, Joint Program – RiyadhSBCM, Joint Program – RiyadhDemystifying statistics! For ordered categorical variable • Chi square test for trend Passed Failed Total R1 100 78 178 R2 175 173 348 R3 42 59 101 Total 317 310 627
  • 11. Measures of association SBCM, Joint Program – RiyadhSBCM, Joint Program – RiyadhDemystifying statistics! • Odds ratio • Relative risk • Interrater reliability analysis
  • 12. Contingency table SBCM, Joint Program – RiyadhSBCM, Joint Program – RiyadhDemystifying statistics! • Used in bivariate situations • Use counts, not percentages • No one-sided tests • Each subject counted only once • Explain significant findings
  • 13. Some selected topics SBCM, Joint Program – RiyadhSBCM, Joint Program – RiyadhDemystifying statistics! • Covered in other classes • Chi square test • Cochran-Mantel-Haenszel test • Regression • In this class we will cover basics of: • Fisher’s exact test • McNemar test • Interrater reliability analysis (Agreement statistics)
  • 14. Thought exercise 1 SBCM, Joint Program – RiyadhSBCM, Joint Program – RiyadhDemystifying statistics! • In a study a researcher tested a perfume on 9 rats and used water as the control on 9 other rats. Among the perfume group 1 rat showed restlessness whereas among the control group 4 rats showed restlessness. Determine if there is an association between perfume and restlessness.
  • 15. Thought exercise 2 SBCM, Joint Program – RiyadhSBCM, Joint Program – RiyadhDemystifying statistics! • 22 pairs of twins were enrolled in the study. One of the twins smoked, the other didn’t. The twins were followed to see which twin died first. For 17 pairs of twins, the smoking twin died first and for 5 pairs of twins, the non-smoking twin died first.
  • 16. Thought exercise 3 SBCM, Joint Program – RiyadhSBCM, Joint Program – RiyadhDemystifying statistics! • All 100 pathological slides were observed by 2 pathologists. The were supposed to classify the disease as mild, moderate and severe. Pathologist 1 classified 60, 30, 10 and pathologist 2 classified 50, 30, 20 as mild, moderate and severe. Both pathologists agreed that 44 were mild, 20 were moderate and 6 were severe and disagreed on the remaining slides. Calculate the agreement between the two pathologists.
  • 17. Fisher’s exact test SBCM, Joint Program – RiyadhSBCM, Joint Program – RiyadhDemystifying statistics! • Used in the place of chi square test for independence when the cell counts are sparse • More than 20% of the cells have expected frequencies of <5
  • 18. Fisher’s exact test SBCM, Joint Program – RiyadhSBCM, Joint Program – RiyadhDemystifying statistics!
  • 19. Fisher’s exact test SBCM, Joint Program – RiyadhSBCM, Joint Program – RiyadhDemystifying statistics! • 6 possible tables for the observed marginal totals: 9, 9, 5, 13. • p-value is calculated by summing all probabilities less than or equal to the probability of the observed table
  • 20. Fisher’s exact test SBCM, Joint Program – RiyadhSBCM, Joint Program – RiyadhDemystifying statistics! • The observed table (Table II) has probability = 0.132 • P-value for the Fisher’s exact test = Pr (Table II) + Pr (Table V) + Pr (Table I) + Pr (Table VI) • = 0.132 + 0.132 + 0.0147 + 0.0147 = 0.293
  • 21. McNemar test SBCM, Joint Program – RiyadhSBCM, Joint Program – RiyadhDemystifying statistics! • When data are paired and the outcome of interest is a proportion, the McNemar Test is used • Pair-Matched data can come from • Case-control studies where each case has a matching control (matched on age, gender, race, etc.) • Twins studies – the matched pairs are twins • Before - After data • Outcome is presence (+) or absence (-) of some characteristic measured on the same individual at two time points
  • 22. McNemar test: matched case-control SBCM, Joint Program – RiyadhSBCM, Joint Program – RiyadhDemystifying statistics! • a - number of case-control pairs where both are exposed • b - number of case-control pairs where the case is exposed and the control is unexposed • c - number of case-control pairs where the case is • unexposed and the control is exposed • d - number of case-control pairs where both are unexposed • The counts in the table for a case-control study are numbers of pairs not numbers of individuals.
  • 23. McNemar test: before-after study SBCM, Joint Program – RiyadhSBCM, Joint Program – RiyadhDemystifying statistics! • a - number of subjects with characteristic present both before and after treatment • b - number of subjects where characteristic is present before but not after • c - number of subjects where characteristic is present after but not before • d - number of subjects with the characteristic absent both before and after treatment.
  • 24. McNemar test SBCM, Joint Program – RiyadhSBCM, Joint Program – RiyadhDemystifying statistics! • Calculated using the counts in the ‘b’ and ‘c’ cells of the table • The sampling distribution Chi-square distribution, the degrees of freedom = 1 • For a test with alpha = 0.05, the critical value for the McNemar statistic = 3.84.
  • 25. McNemar test SBCM, Joint Program – RiyadhSBCM, Joint Program – RiyadhDemystifying statistics!
  • 26. McNemar test SBCM, Joint Program – RiyadhSBCM, Joint Program – RiyadhDemystifying statistics! • Critical value for Chi-square distribution with 1 df = 3.84, p value = 0.01 • Conclusion: A significantly different proportion of smoking twins died first compared to their non- smoking twin indicating a different risk of death associated with smoking (p = 0.01)
  • 27. Agreement statistics SBCM, Joint Program – RiyadhSBCM, Joint Program – RiyadhDemystifying statistics! • Many types of agreement statistics depending on • Data type • Type of repetition • Internal consistency
  • 28. Agreement statistics SBCM, Joint Program – RiyadhSBCM, Joint Program – RiyadhDemystifying statistics! • Cohen’s kappa • Measures the agreement between two raters who each classify N items into C mutually exclusive categories • Used when responses are categorical
  • 29. Agreement statistics SBCM, Joint Program – RiyadhSBCM, Joint Program – RiyadhDemystifying statistics!
  • 30. Agreement statistics SBCM, Joint Program – RiyadhSBCM, Joint Program – RiyadhDemystifying statistics! 𝐾𝑎𝑝𝑝𝑎 = 0.70 − 0.41 1 − 0.41 = 0.491
  • 31. Advanced learning Demystifying statistics! SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh • Chi square test for trend • Special cases of logistic regression • Repeated measures logistic regression • Weighted kappa • Other measures of agreement analysis
  • 32. Take home messages Demystifying statistics! SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh • Many approaches are available for analysing categorical data • Choose a method appropriate for your problem • Check that the assumptions of the method are valid • Make conclusions based on the results of the test