SlideShare a Scribd company logo
ZAHID RIAZ HAANS (LECTURER)
KAMYAB INSTIUTE OF MEDICAL SCIENCES KOT
ADDU
E-mail. zahidriazhaans50@gmail.com
Objective:
 Students should be able to identify the different types of variables, and
know the characteristics of each type
Types of Variables
Types of Variables
Categorical (data that are counted)
• Nominal
• Ordinal
Quantitative or Numerical (data that are measured)
• Interval
• Ratio
Why is the type of variable important?
The methods used to display, summarize, and analyze data depend on whether the
variables are categorical or quantitative.
Types of Variables: Categorical
Nominal
Variables that are “named”, i.e. classified into one or more
qualitative categories that describe the characteristic of interest
• no ordering of the different categories
• no measure of distance between values
•categories can be listed in any order without affecting
the relationship between them
Nominal variables are the simplest type of variable
Nominal
In medicine, nominal variables are often used to
describe the patient. Examples of nominal variables
might include:
 Gender (male, female)
 Eye color (blue, brown, green, hazel)
 Surgical outcome (dead, alive)
 Blood type (A, B, AB, O)
Note: When only two possible categories exist, the variable is sometimes called
dichotomous, binary, or binomial.
Ordinal
Variables that have an inherent order to the relationship
among the different categories
•an implied ordering of the categories (levels)
•quantitative distance between levels is unknown
•distances between the levels may not be the same
•meaning of different levels may not be the same
for different individuals
Note: The scale of measurement for most ordinal variables is called a Likert scale.
Ordinal
In medicine, ordinal variables often describe the patient’s
characteristics, attitude, behavior, or status. Examples of
ordinal variables might include:
 Stage of cancer (stage I, II, III, IV)
 Education level (elementary, secondary, college)
 Pain level (mild, moderate, severe)
 Satisfaction level (very dissatisfied, dissatisfied, neutral,
satisfied, very satisfied)
 Agreement level (strongly disagree, disagree, neutral, agree,
strongly agree)
Types of
Variables:
Quantitative/Num
erical
Interval
Variables that have constant, equal distances between
values, but the zero point is arbitrary.
Examples of interval variables:
 Intelligence (IQ test score of 100, 110, 120, etc.)
 Pain level (1-10 scale)
 Body length in infant
Ratio
Variables have equal intervals between values, the zero
point is meaningful, and the numerical relationships
between numbers is meaningful.
Examples of ratio variables:
 Weight (50 kilos, 100 kilos, 150 kilos, etc.)
 Pulse rate
 Respiratory rate
 Higher level variables can always be expressed at a lower level, but the reverse is
not true.
 For example, Body Mass Index (BMI) is typically measured at an interval-level
such as 23.4.
 BMI can be collapsed into lower-level Ordinal categories such as:
• >30: Obese
• 25-29.9: Overweight
• <25: Underweight
or Nominal categories such as:
• Overweight
• Not overweight
Quantitative or Numerical variables that are measured
in each individual in a data set, but can only be whole
numbers.
Examples are counts of objects or occurrences:
 Number of children in household
 Number of relapses
 Number of admissions to a hospital
Quantitative or Numerical variables that are measured in
each individual in a data set.
Continuous variables can theoretically take on an infinite
number of values - the accuracy of the measurement is
limited only by the measuring instrument.
Note: Continuous data often include decimals or fractions of numbers.
Continuous Data
Examples of continuous variables:
Height, weight, heart rate, blood pressure,
serum cholesterol, age, temperature
A person’s height may be measured and recorded as 60
cm, but in theory the true height could be an infinite
number of values:
height may be 60.123456789…………..cm
or 59.892345678…………..cm
Classification of variables in The Bypass Angioplasty Revascularization Investigation
Variable
CABG
(n=914)
PTCA
(n=915)
Type of
Variable
Age (years, mean  SD) 61.1  3.2 61.8  3.7
Weight (kg, mean  SD) 80.9  5.6 78.8  6.0
Gender [#, (%)]
Males
Females
676 (74%)
238 (26%)
668 (73%)
247 (27%)
Education [#, (%)]
Grade School
High School
Some College
College Graduate or >
192 (21%)
457 (50%)
165 (18%)
100 (11%)
192 (21%)
458 (50%)
165 (18%)
100 (11%)
Prior Hospitalizations (mean  SD) 4.0  0.6 3.8  0.6
Post Treatment Mortality
Alive at 5 Years
Dead at 5 Years
902 (98.7%)
12 (1.3%)
898 (98.1%)
17 (1.9%)

More Related Content

Similar to types of variables.pptx

Ebd1 lecture 3 2010
Ebd1 lecture 3  2010Ebd1 lecture 3  2010
Ebd1 lecture 3 2010Reko Kemo
 
Introduction to statistics.pptx
Introduction to statistics.pptxIntroduction to statistics.pptx
Introduction to statistics.pptx
MuddaAbdo1
 
Biostatistics
Biostatistics Biostatistics
Biostatistics
Vaibhav Ambashikar
 
Statistics.pptx
Statistics.pptxStatistics.pptx
Statistics.pptx
Subha322492
 
Epidemiolgy and biostatistics notes
Epidemiolgy and biostatistics notesEpidemiolgy and biostatistics notes
Epidemiolgy and biostatistics notes
Charles Ntwale
 
Research Variables and Statistical Measurement Scales
Research Variables and Statistical Measurement ScalesResearch Variables and Statistical Measurement Scales
Research Variables and Statistical Measurement Scales
Anup Kharde
 
Biostatistics lec 2 variables and scales of measurement
Biostatistics lec 2 variables and scales of measurementBiostatistics lec 2 variables and scales of measurement
Biostatistics lec 2 variables and scales of measurement
SomaliDeveloper
 
Clinical research ( Medical stat. concepts)
Clinical research ( Medical stat. concepts)Clinical research ( Medical stat. concepts)
Clinical research ( Medical stat. concepts)
Mohamed Fahmy Dehim
 
Univariate Analysis
 Univariate Analysis Univariate Analysis
Univariate AnalysisSoumya Sahoo
 
Measurment scales
Measurment scalesMeasurment scales
Measurment scales
FarahAhmad54
 
Introduction to basics of bio statistics.
Introduction to basics of bio statistics.Introduction to basics of bio statistics.
Introduction to basics of bio statistics.
AB Rajar
 
Data And Variable In Scientific Research
Data And Variable In Scientific ResearchData And Variable In Scientific Research
Data And Variable In Scientific Research
Aswin Sarath
 
Biostatistics lec 2 variables and scales of measurement
Biostatistics lec 2 variables and scales of measurementBiostatistics lec 2 variables and scales of measurement
Biostatistics lec 2 variables and scales of measurement
Osmanmohamed38
 
Medical Statistics.ppt
Medical Statistics.pptMedical Statistics.ppt
Medical Statistics.ppt
ssuserf0d95a
 
Understanding statistics in research
Understanding statistics in researchUnderstanding statistics in research
Understanding statistics in research
Dr. Senthilvel Vasudevan
 
Exploratory Data Analysis for Biotechnology and Pharmaceutical Sciences
Exploratory Data Analysis for Biotechnology and Pharmaceutical SciencesExploratory Data Analysis for Biotechnology and Pharmaceutical Sciences
Exploratory Data Analysis for Biotechnology and Pharmaceutical Sciences
Parag Shah
 
Scales of measurement and presentation of data
Scales of measurement and presentation of dataScales of measurement and presentation of data
Scales of measurement and presentation of data
Dr Sithun Kumar Patro
 
Very good statistics-overview rbc (1)
Very good statistics-overview rbc (1)Very good statistics-overview rbc (1)
Very good statistics-overview rbc (1)Abdul Wasay Baloch
 
Statistics Introduction In Pharmacy
Statistics Introduction In PharmacyStatistics Introduction In Pharmacy
Statistics Introduction In Pharmacy
Pharmacy Universe
 
Chosing the appropriate_statistical_test
Chosing the appropriate_statistical_testChosing the appropriate_statistical_test
Chosing the appropriate_statistical_testBRAJESH KUMAR PARASHAR
 

Similar to types of variables.pptx (20)

Ebd1 lecture 3 2010
Ebd1 lecture 3  2010Ebd1 lecture 3  2010
Ebd1 lecture 3 2010
 
Introduction to statistics.pptx
Introduction to statistics.pptxIntroduction to statistics.pptx
Introduction to statistics.pptx
 
Biostatistics
Biostatistics Biostatistics
Biostatistics
 
Statistics.pptx
Statistics.pptxStatistics.pptx
Statistics.pptx
 
Epidemiolgy and biostatistics notes
Epidemiolgy and biostatistics notesEpidemiolgy and biostatistics notes
Epidemiolgy and biostatistics notes
 
Research Variables and Statistical Measurement Scales
Research Variables and Statistical Measurement ScalesResearch Variables and Statistical Measurement Scales
Research Variables and Statistical Measurement Scales
 
Biostatistics lec 2 variables and scales of measurement
Biostatistics lec 2 variables and scales of measurementBiostatistics lec 2 variables and scales of measurement
Biostatistics lec 2 variables and scales of measurement
 
Clinical research ( Medical stat. concepts)
Clinical research ( Medical stat. concepts)Clinical research ( Medical stat. concepts)
Clinical research ( Medical stat. concepts)
 
Univariate Analysis
 Univariate Analysis Univariate Analysis
Univariate Analysis
 
Measurment scales
Measurment scalesMeasurment scales
Measurment scales
 
Introduction to basics of bio statistics.
Introduction to basics of bio statistics.Introduction to basics of bio statistics.
Introduction to basics of bio statistics.
 
Data And Variable In Scientific Research
Data And Variable In Scientific ResearchData And Variable In Scientific Research
Data And Variable In Scientific Research
 
Biostatistics lec 2 variables and scales of measurement
Biostatistics lec 2 variables and scales of measurementBiostatistics lec 2 variables and scales of measurement
Biostatistics lec 2 variables and scales of measurement
 
Medical Statistics.ppt
Medical Statistics.pptMedical Statistics.ppt
Medical Statistics.ppt
 
Understanding statistics in research
Understanding statistics in researchUnderstanding statistics in research
Understanding statistics in research
 
Exploratory Data Analysis for Biotechnology and Pharmaceutical Sciences
Exploratory Data Analysis for Biotechnology and Pharmaceutical SciencesExploratory Data Analysis for Biotechnology and Pharmaceutical Sciences
Exploratory Data Analysis for Biotechnology and Pharmaceutical Sciences
 
Scales of measurement and presentation of data
Scales of measurement and presentation of dataScales of measurement and presentation of data
Scales of measurement and presentation of data
 
Very good statistics-overview rbc (1)
Very good statistics-overview rbc (1)Very good statistics-overview rbc (1)
Very good statistics-overview rbc (1)
 
Statistics Introduction In Pharmacy
Statistics Introduction In PharmacyStatistics Introduction In Pharmacy
Statistics Introduction In Pharmacy
 
Chosing the appropriate_statistical_test
Chosing the appropriate_statistical_testChosing the appropriate_statistical_test
Chosing the appropriate_statistical_test
 

Recently uploaded

The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
DhatriParmar
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
MIRIAMSALINAS13
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
camakaiclarkmusic
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
RaedMohamed3
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
Peter Windle
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
kaushalkr1407
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
Celine George
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
Ashokrao Mane college of Pharmacy Peth-Vadgaon
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
vaibhavrinwa19
 
678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf
CarlosHernanMontoyab2
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
Vivekanand Anglo Vedic Academy
 
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th SemesterGuidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Atul Kumar Singh
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
Peter Windle
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
beazzy04
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
siemaillard
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
Jheel Barad
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
Levi Shapiro
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
Celine George
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
Tamralipta Mahavidyalaya
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
Special education needs
 

Recently uploaded (20)

The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
 
678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
 
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th SemesterGuidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th Semester
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
 

types of variables.pptx

  • 1. ZAHID RIAZ HAANS (LECTURER) KAMYAB INSTIUTE OF MEDICAL SCIENCES KOT ADDU E-mail. zahidriazhaans50@gmail.com
  • 2. Objective:  Students should be able to identify the different types of variables, and know the characteristics of each type Types of Variables
  • 3. Types of Variables Categorical (data that are counted) • Nominal • Ordinal Quantitative or Numerical (data that are measured) • Interval • Ratio Why is the type of variable important? The methods used to display, summarize, and analyze data depend on whether the variables are categorical or quantitative.
  • 4. Types of Variables: Categorical Nominal Variables that are “named”, i.e. classified into one or more qualitative categories that describe the characteristic of interest • no ordering of the different categories • no measure of distance between values •categories can be listed in any order without affecting the relationship between them Nominal variables are the simplest type of variable
  • 5. Nominal In medicine, nominal variables are often used to describe the patient. Examples of nominal variables might include:  Gender (male, female)  Eye color (blue, brown, green, hazel)  Surgical outcome (dead, alive)  Blood type (A, B, AB, O) Note: When only two possible categories exist, the variable is sometimes called dichotomous, binary, or binomial.
  • 6. Ordinal Variables that have an inherent order to the relationship among the different categories •an implied ordering of the categories (levels) •quantitative distance between levels is unknown •distances between the levels may not be the same •meaning of different levels may not be the same for different individuals Note: The scale of measurement for most ordinal variables is called a Likert scale.
  • 7. Ordinal In medicine, ordinal variables often describe the patient’s characteristics, attitude, behavior, or status. Examples of ordinal variables might include:  Stage of cancer (stage I, II, III, IV)  Education level (elementary, secondary, college)  Pain level (mild, moderate, severe)  Satisfaction level (very dissatisfied, dissatisfied, neutral, satisfied, very satisfied)  Agreement level (strongly disagree, disagree, neutral, agree, strongly agree)
  • 8. Types of Variables: Quantitative/Num erical Interval Variables that have constant, equal distances between values, but the zero point is arbitrary. Examples of interval variables:  Intelligence (IQ test score of 100, 110, 120, etc.)  Pain level (1-10 scale)  Body length in infant
  • 9. Ratio Variables have equal intervals between values, the zero point is meaningful, and the numerical relationships between numbers is meaningful. Examples of ratio variables:  Weight (50 kilos, 100 kilos, 150 kilos, etc.)  Pulse rate  Respiratory rate
  • 10.  Higher level variables can always be expressed at a lower level, but the reverse is not true.  For example, Body Mass Index (BMI) is typically measured at an interval-level such as 23.4.  BMI can be collapsed into lower-level Ordinal categories such as: • >30: Obese • 25-29.9: Overweight • <25: Underweight or Nominal categories such as: • Overweight • Not overweight
  • 11. Quantitative or Numerical variables that are measured in each individual in a data set, but can only be whole numbers. Examples are counts of objects or occurrences:  Number of children in household  Number of relapses  Number of admissions to a hospital
  • 12. Quantitative or Numerical variables that are measured in each individual in a data set. Continuous variables can theoretically take on an infinite number of values - the accuracy of the measurement is limited only by the measuring instrument. Note: Continuous data often include decimals or fractions of numbers.
  • 13. Continuous Data Examples of continuous variables: Height, weight, heart rate, blood pressure, serum cholesterol, age, temperature A person’s height may be measured and recorded as 60 cm, but in theory the true height could be an infinite number of values: height may be 60.123456789…………..cm or 59.892345678…………..cm
  • 14. Classification of variables in The Bypass Angioplasty Revascularization Investigation Variable CABG (n=914) PTCA (n=915) Type of Variable Age (years, mean  SD) 61.1  3.2 61.8  3.7 Weight (kg, mean  SD) 80.9  5.6 78.8  6.0 Gender [#, (%)] Males Females 676 (74%) 238 (26%) 668 (73%) 247 (27%) Education [#, (%)] Grade School High School Some College College Graduate or > 192 (21%) 457 (50%) 165 (18%) 100 (11%) 192 (21%) 458 (50%) 165 (18%) 100 (11%) Prior Hospitalizations (mean  SD) 4.0  0.6 3.8  0.6 Post Treatment Mortality Alive at 5 Years Dead at 5 Years 902 (98.7%) 12 (1.3%) 898 (98.1%) 17 (1.9%)

Editor's Notes

  1. This module explains the different types of variables that you will encounter and use in statistical analysis. The learning objective for this module is that students should be able to identify the different types of variables, and know the characteristics of each type of variable.
  2. To begin with, a variable is simply what is being observed or measured. Variables take on one of a number of specific values. Variables are divided into four levels, that are grouped into two classifications. The first classification, categorical data, are those that are counted and include nominal and ordinal level data. The next two levels of variables are classified as quantitative or numerical, and include interval and ratio level data. These data are measured, rather than counted. Understanding the type of variable is critically important to understanding appropriate statistical testing procedure. The type of variable determines how the data is displayed, summarized, and which statistical tests are appropriate.
  3. Let’s begin with a discussion of each of the four levels of data, or what some call levels of measurement. Nominal level data are the simplest type of data and consist of named categories, with no implied order among the categories. In other words, the data either exist, or do not exist, within the category
  4. An example of nominal data is gender – a person is either male or female. Another example is surgical outcome – an individual is either dead or alive following surgery. Nominal variables do not have to be dichotomous, they can have any number of categories, as in the case of eye color or blood type.
  5. Ordinal data are also categorical data, but the categories are ordered or hierarchical. However, the differences or distances between categories is not equal. Ordinal variables are often measured using a Likert Scale – on surveys, this might be worded as, “How often do you exercise?” with response categories of Always, Sometimes, Rarely, or Never. There is an obvious order or hierarchy to the categories, but the difference between Always and Sometimes is not the same as the difference between Rarely and Never.
  6. In medicine, ordinal variables are often used to describe the patient and his or her characteristics, attitude, behavior, or status. Some commonly-used examples of ordinal level data are stage of cancer, education level, pain level, satisfaction, and agreement.
  7. Interval level data is classified as quantitative or numerical data. Interval data are measured and have constant, equal distances between values, but the zero point is arbitrary. The zero isn’t meaningful, it doesn’t mean a true absence of something. An example of interval level data is intelligence, as measured on some IQ test. We know that the scoring difference between a 100 and a 110 is equal to the scoring distance between 120 and 130, but there is no true zero on this test and an IQ of 140 is not twice as high as an IQ of 70. Another example is asking a patient to describe their pain on a 1-10 scale where 1 means minimal pain and 10 means the worst pain the person has ever suffered. Even though the distances between numbers on the scale are constant and equal, a pain score of 8 does not mean that the pain is twice as bad as a score of 4.
  8. Ratio level data are those which have equal intervals between values, and the zero is meaningful. Some laboratory tests are good examples of ratio level data. A person who weighs 100 kilos is twice as heavy as a person who weighs 50 kilos, and a measure of zero kilos is meaningful. Other examples include pulse rate and respiratory rate. One point to note is that although we differentiate interval and ratio level data for definitional purposes, in practical application, they are often treated the same in statistical analysis.
  9. One thing to remember is that higher level variables can always be expressed at a lower level, but the reverse is not true. You can convert ordinal-level data to nominal-level data, but you cannot do the reverse. For example, Body Mass Index, or BMI, is often measured at the interval level and is given a score such as 23.4. This interval-level BMI data can be collapsed into ordinal categories such as obese, overweight, and underweight, or it can be reduced to nominal-level categories such as overweight and not overweight. This is why we often try to measure data at the highest level of measurement possible.
  10. Variables are also described as being discrete or continuous. Discrete variables are those which can only be counted or observed as whole numbers, such as the number of children in a household, the number of relapses a patient experiences, or the number of hospital admissions.
  11. Continuous variables can theoretically take on any value, within a range defined by the measuring instrument. Continuous data often include decimals or fractions of numbers.
  12. Many variables measured in medicine are continuous, interval or ratio level data such as height, weight, heart rate, blood pressure, serum cholesterol, age, and temperature. For example, a person’s height can theoretically be an infinite number of values, but it is measured and recorded based on a designated measurement tool, such as centimeters.
  13. This chart demonstrates a variety of different types of variables. The variables Age and Weight, are both quantitative/numerical and continuous because they are variables that are measured, and they can take on any value within a defined range. The variable Gender however, is nominal because the data consist of named categories and have only one of a limited set of values. Education is an ordinal level variable because the categories are ordered or hierarchical. The variable Prior Hospitalizations is a ratio level variable since 4 hospitalizations is twice as much as 2 hospitalizations, and discrete because it is measured as a whole number count. Post Treatment Mortality is a nominal level variable because a person can only be categorized into one of the two groups. Now that we have examined the different types of variables, we will now move on to a discussion of displaying data. Remember, that the appropriate display of data is dependent upon understanding what type of variable is being used.