R-lab 2 -Dorji Pelzom.

Slides:



Advertisements
Similar presentations
DESCRIBING DISTRIBUTION NUMERICALLY
Advertisements

HS 67 - Intro Health Statistics Describing Distributions with Numbers
Computer, Minitab, and other printouts. r 2 = 67.8% 67.8% of the variation in percent body fat can be explained by the variation in waist size.
Statistics With Excel Sam Gordji Weir 107.
Class 14 Testing Hypotheses about Means Paired samples 10.3 p
Chapter 13 Analyzing Quantitative data. LEVELS OF MEASUREMENT Nominal Measurement Ordinal Measurement Interval Measurement Ratio Measurement.
Summarizing Measured Data Nelson Fonseca State University of Campinas.
Describing Distributions Numerically
Business Statistics BU305 Chapter 3 Descriptive Stats: Numerical Methods.
Finding the Mean & the Standard Deviation. Finding the mean & Standard Deviation Find the Mean and the Standard Deviation of 6,5,5,4,5,5,6,5 and 4 We.
Objectives 1.2 Describing distributions with numbers
First Quantitative Variable: Ear Length  The unit of measurement for this variable is INCHES.  A few possible values for this first quantitative variable.
Chapter 4 Displaying and Summarizing Quantitative Data Math2200.
STA Lecture 131 STA 291 Lecture 13, Chap. 6 Describing Quantitative Data – Measures of Central Location – Measures of Variability (spread)
CHS Statistics 2.5: Measures of Spread
How to find measures variability using SPSS
I❤RI❤R Kin Wong (Sam) Game Plan Intro R Import SPSS file Descriptive Statistics Inferential Statistics GraphsQ&A.
Measures of Dispersion How far the data is spread out.
Trial Group AGroup B Mean P value 2.8E-07 Means of Substances Group.
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.
T T03-01 Calculate Descriptive Statistics Purpose Allows the analyst to analyze quantitative data by summarizing it in sorted format, scattergram.
Continued… Obj: draw Box-and-whisker plots representing a set of data Do now: use your calculator to find the mean for 85, 18, 87, 100, 27, 34, 93, 52,
Foundations of Math I: Unit 3 - Statistics
Box and Whisker Plots. Introduction: Five-number Summary Minimum Value (smallest number) Lower Quartile (LQ) Median (middle number) Upper Quartile (UP)
Essential Statistics Chapter 21 Describing Distributions with Numbers.
Review BPS chapter 1 Picturing Distributions with Graphs What is Statistics ? Individuals and variables Two types of data: categorical and quantitative.
Created by: Tonya Jagoe. Measures of Central Tendency mean median mode.
BPS - 5th Ed. Chapter 21 Describing Distributions with Numbers.
2.4 Measures of Variation Coach Bridges NOTES. What you should learn…. How to find the range of a data set How to find the range of a data set How to.
Lesson 25 Finding measures of central tendency and dispersion.
© 2012 W.H. Freeman and Company Lecture 2 – Aug 29.
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)
Standard Deviation Variance and Range. Standard Deviation:  Typical distance of observations from their mean  A numerical summary that measures the.
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.
2.4 Measures of Variation The Range of a data set is simply: Range = (Max. entry) – (Min. entry)
Created by: Tonya Jagoe. Measures of Central Tendency & Spread Input the data for these test scores into your calculator to find.
Stats Lab #3.
Business and Economics 6th Edition
Descriptive Statistics
Ch.4: Probability and Statistics
Chapter 16: Exploratory data analysis: numerical summaries
Box and Whisker Plots and the 5 number summary
Warm Up What is the mean, median, mode and outlier of the following data: 16, 19, 21, 18, 18, 54, 20, 22, 23, 17 Mean: 22.8 Median: 19.5 Mode: 18 Outlier:
Review Quiz.
Numerical Descriptives in R
Basic statistics on a vector in R
حــزمة ادوات التحليل Analysis ToolPak
Please take out Sec HW It is worth 20 points (2 pts
Quick Data Summaries in SAS
Box Plots and Outliers.
Basic Practice of Statistics - 3rd Edition
Statistics 1: Introduction to Probability and Statistics
Exploratory Data Analysis
SYMMETRIC SKEWED LEFT SKEWED RIGHT
Essential Statistics Describing Distributions with Numbers
Basic Practice of Statistics - 3rd Edition
Comparing Statistical Data
Item & Test Statistics Psych DeShon.
The Five-Number Summary
Advanced data management
Multivariate Statistics
Basic Practice of Statistics - 3rd Edition
Statistics Standard: S-ID
Descriptive Statistics Frequency & Contingency Tables
Lecture 4 Psyc 300A.
Finding Correlation Coefficient & Line of Best Fit
Finding Statistics from Data
Number Summaries and Box Plots.
Finding Statistics from a frequency table
Finding Statistics from a Grouped frequency table
Presentation transcript:

R-lab 2 -Dorji Pelzom

Basic Statistical Functions THE MUST KNOW’s Total sum: sum() Mean: mean() Column means: colMeans() Median: median() Variance: var() Covariance matrix: cov() Correlation between two variables: cor() Standard deviation: sd()  Maximum: max()  Minimum: min()  Range: range()  Quantile: quantile()  Summary: summary() Always refer to the help files if you are not sure about the function by typing ?function name! For example > ?summary

To plot OC curve p<-c(0,..............................,0.3) OC<-phyper(c(...),m=floor(....*p),n=.....-floor(.....*p), k=....,lower.tail=TRUE) plot(p,OC)

Lab 3

Q1B P<-c(0,. ,0. 4) OC<-phyper(c(. ),m=floor(. p),n=. -floor( Q1B P<-c(0,..............................,0.4) OC<-phyper(c(...),m=floor(....*p),n=.....-floor(.....*p), k=....,lower.tail=TRUE) Plot(P,OC) Q 2 A P<-c(0,………………………………,0.4) Pi<-phyper(c(...),m=floor(....*p),n=.....-floor(.....*p), k=....,lower.tail=TRUE) + 1 -phyper(c(...), m=floor(....*p), n=.....-floor(.....*p), k=....,lower.tail=TRUE) Plot(P, Pi) Q2B ASN <- 20*Pi + 40*(1-Pi) Plot(P, ASN)

Lab 4

For entering data directly Dataset <- edit(as.data.frame(NULL)) for mac For windows choose Data -> New data set

1 (B) For z-values type qnorm()

Q 1© P <- c(0.001, 0.005, 0.007, 0.01, 0.02, 0.03, 0.06, 0.09, 0.12, 0.15, 0.18) Z <- qnorm(p, mean = 0, sd = 1, lower.tail = TRUE) OC <- 1 - pnorm(4.472*(Z+2.93), mean = 0, sd = 1, lower.tail = TRUE) plot(p, OC)

Good luck with the lab