Descriptive Statistics using R. Summary Commands An essential starting point with any set of data is to get an overview of what you are dealing with You.

Slides:



Advertisements
Similar presentations
Describing Quantitative Variables
Advertisements

DESCRIBING DISTRIBUTION NUMERICALLY
Stem and leaf diagrams and box plots Statistics. Draw a stem and leaf diagram using the set of data below
Statistics 100 Lecture Set 6. Re-cap Last day, looked at a variety of plots For categorical variables, most useful plots were bar charts and pie charts.
Measures of Variation Sample range Sample variance Sample standard deviation Sample interquartile range.
IB Math Studies – Topic 6 Statistics.
Lecture 4 Chapter 2. Numerical descriptors
Overview and Descriptive Statistics. Outline – Populations, Samples and Processes.
Z-value SamplePopulation The z-value tells us how many standard deviations above or below the mean our data value x is. Positive z-values are above the.
Chapter 19 Data Analysis Overview
Descriptive statistics (Part I)
Very Basic Statistics.
Statistics for Linguistics Students Michaelmas 2004 Week 1 Bettina Braun.
Describing distributions with numbers
Objectives 1.2 Describing distributions with numbers
Slide Slide 1 Baby Leo’s 4-month “Healthy Baby” check-up reported the following: 1)He is in the 90 th percentile for weight 2)He is in the 95 th percentile.
STA Lecture 131 STA 291 Lecture 13, Chap. 6 Describing Quantitative Data – Measures of Central Location – Measures of Variability (spread)
Analyzing and Interpreting Quantitative Data
1 Laugh, and the world laughs with you. Weep and you weep alone.~Shakespeare~
Exploratory Data Analysis Observations of a single variable.
Chapter 2 Analysis using R. Few Tips for R Commands included here CANNOT ALWAYS be copied and pasted directly without alteration. –One major reason is.
Statistics with TI-Nspire™ Technology Module E. Lesson 2: Properties Statistics with TI-Nspire™ Technology Module E.
Statistics Lecture 3. Last class: types of quantitative variable, histograms, measures of center, percentiles and measures of spread…well, we shall.
Review BPS chapter 1 Picturing Distributions with Graphs What is Statistics ? Individuals and variables Two types of data: categorical and quantitative.
+ Chapter 1: Exploring Data Section 1.3 Describing Quantitative Data with Numbers The Practice of Statistics, 4 th edition - For AP* STARNES, YATES, MOORE.
Chapter 6: Analyzing and Interpreting Quantitative Data
The field of statistics deals with the collection,
LIS 570 Summarising and presenting data - Univariate analysis.
MDH Chapter 1EGR 252 Fall 2015 Slide 1 Probability and Statistics for Engineers  Descriptive Statistics  Measures of Central Tendency  Measures of Variability.
Statistics with TI-Nspire™ Technology Module E Lesson 1: Elementary concepts.
R objects  All R entities exist as objects  They can all be operated on as data  We will cover:  Vectors  Factors  Lists  Data frames  Tables 
Data & Graphing vectors data frames importing data contingency tables barplots 18 September 2014 Sherubtse Training.
1 Take a challenge with time; never let time idles away aimlessly.
Basics in R part 2. Variable types in R Common variable types: Numeric - numeric value: 3, 5.9, Logical - logical value: TRUE or FALSE (1 or 0)
Graphs with SPSS Aravinda Guntupalli. Bar charts  Bar Charts are used for graphical representation of Nominal and Ordinal data  Height of the bar is.
+ Chapter 1: Exploring Data Section 1.3 Describing Quantitative Data with Numbers.
Chapter 18 Data Analysis Overview Yandell – Econ 216 Chap 18-1.
Chapter 11 Summarizing & Reporting Descriptive Data.
Description of samples and populations
CHAPTER 1 Exploring Data
MATH-138 Elementary Statistics
Stem and leaf diagrams and box plots
Laugh, and the world laughs with you. Weep and you weep alone
Bar graphs are used to compare things between different groups
Numerical Descriptives in R
Lab 2 Data Manipulation and Descriptive Stats in R
DAY 3 Sections 1.2 and 1.3.
1.2 Describing Distributions with Numbers
Recoding II: Numerical & Graphical Descriptives
Treat everyone with sincerity,
Chapter 1: Exploring Data
Chapter 1: Exploring Data
Chapter 1: Exploring Data
SYMMETRIC SKEWED LEFT SKEWED RIGHT
MIS2502: Data Analytics Introduction to R and RStudio
Measures of Center and Spread
Chapter 1: Exploring Data
Chapter 1: Exploring Data
Chapter 1: Exploring Data
Chapter 1: Exploring Data
The Five-Number Summary
Chapter 1: Exploring Data
Chapter 1: Exploring Data
R-lab 2 -Dorji Pelzom.
Chapter 1: Exploring Data
Chapter 1: Exploring Data
Chapter 1: Exploring Data
Descriptive Statistics Frequency & Contingency Tables
Chapter 1: Exploring Data
Math 10, Spring 2019 Introductory Statistics
Presentation transcript:

Descriptive Statistics using R

Summary Commands An essential starting point with any set of data is to get an overview of what you are dealing with You might start by using the ls() command in R to see what named objects you have with you You can type the name of one of the objects to view its contents. You may use the str() command, which shows you the structure of the data. The summary() command is designed to give a quick statistical summary of data objects.

Summarizing Samples In case of repeated measurements (or sample), you usually want to summarize the data by showing measures like average. In R, you have a variety of commands that operate on samples; these samples of data might be individual vectors, or they may be columns in a data frame or part of a matrix or list.

Summary Commands with Single Value max min length sum mean median sd var mad

Summary Commands producing Multiple values summary quantile Example: > quantile(x, probs = seq(0, 1, 0.25), na.rm = FALSE, names = TRUE)

Descriptive Statistics using R - Commands str names levels head mean var / sd summary fivenum boxplot hist table mosaicplot

Descriptive Statistics using R – Assignment Install the package “MASS” Investigate the dataset ‘survey’ What is the data structure of survey? How many variables does it include? How many observations are there? How many numerical variables are there? Which variable contains whole numbers? How many categorical variables are there? What are the values of variables Smoke and Exer? Investigate the variable Height. Draw a histogram. What is your observation?

Descriptive Statistics using R – Assignment ….contd Find the quartiles, mean, median, max and min of the observations for the variable Height Draw a Box-plot of Height and examine Compare the heights of Males and Females Prepare a Contingency table of Sex and Smoke. How many Male students are Heavy smokers? How many Female students do not smoke? Draw a Mosaic plot for the above table Find the variance of Height. How will you calculate it properly after taking care of invalid values?