0% found this document useful (0 votes)
100 views17 pages

Introduction To Statistics With R

The document introduces four main types of variables: nominal, ordinal, interval, and ratio. Nominal variables assign cases to categories, ordinal variables rank order cases, interval variables rank order cases with equal distances between values, and ratio variables are the same as interval but have a true zero value. Examples of each variable type are provided.

Uploaded by

Mahmoud Trigui
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
100 views17 pages

Introduction To Statistics With R

The document introduces four main types of variables: nominal, ordinal, interval, and ratio. Nominal variables assign cases to categories, ordinal variables rank order cases, interval variables rank order cases with equal distances between values, and ratio variables are the same as interval but have a true zero value. Examples of each variable type are provided.

Uploaded by

Mahmoud Trigui
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 17

Intro to Statistics with R: Introduction

Types of variables

Intro to Statistics with R: Introduction

Types of variables

Nominal

Ordinal

Interval

Ratio

Intro to Statistics with R: Introduction

Nominal variables

Used to assign individual cases to categories

DataCamp students come from many dierent countries

Country of origin is a nominal variable

Intro to Statistics with R: Introduction

Ordinal variables

Used to rank order cases

Countries may be ranked according to overall


population

Ranking is an ordinal variable

Intro to Statistics with R: Introduction

Interval variables

Used to rank order cases where the distance, or


interval, between each value is equal

Each country has a longitude and latitude

Longitude and latitude are interval variables

Intro to Statistics with R: Introduction

Ratio variables

Same as interval variables but have a true zero

Population (Population of 0 = extinct)

Temperature K (the Kelvin scale)

Intro to Statistics with R: Introduction

Lets Practice!

Intro to Statistics with R: Introduction

On the Theory of
Scales of
Measurement

Intro to Statistics with R: Introduction

Types of variables

Intro to Statistics with R: Introduction

Race results

2:34:01
2:34:03
2:34:09
...

Intro to Statistics with R: Introduction

Types of variables

Intro to Statistics with R: Introduction

Lets Practice!

Intro to Statistics with R: Introduction

Quick summary

Intro to Statistics with R: Introduction

Types of variables

Independent vs. dependent variables

Vaccine trial example

Independent = treatment (nominal)

Dependent = disease rate (ratio)

Intro to Statistics with R: Introduction

Discrete vs. continuous


Variable Type

Discrete or Continuous?

Nominal

Discrete

Ordinal

Discrete

Interval

Continuous

Ratio

Continuous

Intro to Statistics with R: Introduction

Summary

Know your variable types!

Nominal

Ordinal

Interval

Ratio

Intro to Statistics with R: Introduction

Congratulations!

You might also like