Stat 1301/2300 Statistical Packages
Brittney Lojas /Fall 2016
Homework Report 2
Exercise 1:
Methodology: Pearson Correlation
Conclusion:
1.
ods graphics on;
title "Homework Two Mortality and Water Har
Stat 1301/2300 Statistical Packages
Brittney Lojas /Fall 2016
Homework Report 8
Exercise 5.1
> react
> qqnorm(react)
The values of the react data set do look reasonably normally distributed. There are
Two Sample Test
Can use the htest functions
- But needtn check equal Brianna mumpon rstl
> mmqwend.iean.expend.obese]
' for camparisan of two vectors
>uest1expendlean. expandahese, vanequalRUE]
>thest
Graphics
- Example 3: Scatterplot matrix
> plotcfw_USArrests)
> pairs(USArrests)
Data Exploration
- Data Analysis always begins with an inspection ofthe
dataframe (aka. The dataset).
Use:
> headidams
10/26/2016
R Basics R Basics
- Attached and detax: you can make R lock for objects amongthe Mama Data Entry: Manual Entry
in agiven data frame.
>plathuaenSblmd.gluwsejhuesenSShDrtvelodty)
>anam(thuese
Statistical Packages
STAT 1301/2300
R Lecture 1: R Basics
Instructor: Christina Zigler
Downloading R
- CRAN is a network of ftp and web servers around
the world that store identical, uputodate,
versio
Statistical Packages
STAT 1301/2300
R Lecture 2: Data Exploration 8:. Simple
Inference for Continuous Data
Instructor: Christina Zigler
R Graphics
- It is quite common in statistical graphing to want
R Basics
- Dal: Frames: correspond to SAS damseL-i. List of vectors andIor factors afne
same length ihat are related across' so that data in the same position came
from the same 'case. it also has a u
R Basics
- Can perform calculations with vectors just like
ordinary numbers, as long as they are the same
length.
> height < c(1.75, 1.80, 1.85, 1.90, 1.74, 1.91
> bmi < weight/heightnz
> bmi
E1] 19.5
R Basics
- List object: in current It sion
> Isl)
- Delete some ofthe objects
> rmlheightweight)
. Return cement of current working directory
mm
v Return path qfcurrent working directory
> getde)
v Ch
Data Exploration
' QO. Plot: to directly compare data distribution with
theoretical distribution
> qqnormlnumericxector)
Exercise: plot 10:) random normal numbers
- Box plots: usefui for side by side
9/12/2016
_ . lnitia ' '
Read m Data file | Examination of Data
_ - Summary statistics:
- Issues to consrder: _ Mean, median, mode
How many variables (columns)? . . . . .
- which are chammr and which
Statistical Packages
STAT 1301/2300
Lecture 2: Data Description and Simple
Inference
Instructor: Christina Zigler
Commands Covered in Lecture 2
- proc univoriute:
Central tendency and variability
Co
Stats Homework 4
Treating Hypertension
Ob biofee
s d
dru
g
die
t
bp cell
1 P
X
N
17 XPN
0
2 P
X
N
17 XPN
5
3 P
X
N
16 XPN
5
4 P
X
N
18 XPN
0
5 P
X
N
16 XPN
0
6 P
X
N
15 XPN
8
7 P
X
Y
16 XPY
1
8 P
X
Y
Scanned by CamScanner
Scanned by CamScanner
Scanned by CamScanner
Scanned by CamScanner
Scanned by CamScanner
Scanned by CamScanner
Scanned by CamScanner
Scanned by CamScanner
Scanned by CamScanner
Scanned by CamScanner
Scanned by CamScanner
Scanned by CamScanner
Scanned by CamScanner
Scanned by CamScanner
Scanned by CamScanner
Scanned by CamScanner
Scanned by CamScanner
Scanned by CamScanner
Scanned by CamScanner
Scanned by CamScanner
Scanned by CamScanner
Scanned by CamScanner
Scanned by CamScanner
Scanned by CamScanner
Scanned by CamScanner
Sc
Scanned by CamScanner
Scanned by CamScanner
Scanned by CamScanner
Scanned by CamScanner
Scanned by CamScanner
Scanned by CamScanner
Scanned by CamScanner
Scanned by CamScanner
Scanned by CamScanner
Sc
Scanned by CamScanner
Scanned by CamScanner
Scanned by CamScanner
Scanned by CamScanner
Scanned by CamScanner
Scanned by CamScanner
Scanned by CamScanner
Scanned by CamScanner
Scanned by CamScanner
Sc
Scanned by CamScanner
Scanned by CamScanner
Scanned by CamScanner
Scanned by CamScanner
Scanned by CamScanner
Scanned by CamScanner
Scanned by CamScanner
Scanned by CamScanner
Scanned by CamScanner
Scanned by CamScanner
Scanned by CamScanner
Scanned by CamScanner
Scanned by CamScanner
Scanned by CamScanner
Scanned by CamScanner
Scanned by CamScanner
Sc