STAT 410/511: Methods of Data Analysis I (Spring 2013)
Instructor: John Borkowski
Text: "The Statistical Sleuth" (2002) by Ramsey and Schafer
(Second edition). Publisher: Duxbury. 2008.
Class: Monday, Wednesday, Friday 11:00-11:50, 1-144 Wilson Hall.
Office: 2-263 Wilson Hall (994-4606)
Office Hours: Monday 2:00-3:00, Tuesday 12:00-1:00, Thursday 12:00-1:00, and
by appointment
Email: jobo@math.montana.edu
Course Syllabus
The course notes, homework assignments, R code, and data sets will be
posted as the course progresses.
Stat 511 Materials:
Stat 511 Project Assignment I
Description of Stat 511 Project
Materials on Writing a Statistical Report
Writing a Statistical Report
Scope of Inference Writing Examples
Writing a Summary of Statistical Findings
A Sample Report from Spring 2012
Course Notes:
Chapter 1 notes
Chapter 2 notes
Chapter 3 notes
Chapter 4 notes
Chapter 5 notes
Chapter 6 notes
Chapter 7 notes
Chapter 8 notes
Chapter 9 notes
Chapter 10 notes
Chapter 11 notes
R handouts with associated R code and data sets:
R Handout #1: An Introduction to R
R code from Handout #1
Data from first day of class.
R Handout #2: Histograms, Boxplots,
Stem-and-Leaf Plots, and Scatterplots
R code from Handout #2
R Handout #3: Confidence Intervals and Hypothesis
Tests for mu
R code from Handout #3
R Handout #4: Confidence Intervals and Hypothesis
Tests for mu1 - mu2
R code from Handout #4
Homework Assignments and related files:
Homework #1 (Due Wednesday January 16)
Homework #1 Solutions
Homework #2 (Due Monday January 28)
Homework #2 R code
Homework #2 data set Guesses.txt
Homework #3 (Due Friday February 1)
Homework #3 Solutions
Homework #4 (Due Wednesday February 6)
Homework #4 Solutions
Stat 511 Project Assignment I
Homework #5 (Due Wednesday February 13)
R code with data for Homework #5, Problem 1.
R code with data for Homework #5, Problem 2.
Exam-related files:
Exam 1 Part I
Topics for Exam 1 Inclass Part
R code from Course Notes:
R code for taking a SRS (file takesrs.r) (page 9)
R code for random assignment to two groups (file
assign2.r) (page 10)
R code for Randomization Test for Motivation and
Creativity Study (file haiku.r) (pages 19-20)
R code for Permutation Test for Sex Discrimination
and Salary Study (file salary.r) (page 24)
R code for one-sample CIs and t-test (file ttest1.r)
(pages 34-37)
R code for t* value for CI (file tstar.r) (page 40)
R code for p-value for two-sample test (file
pvaluet2.r) (page 42)
R code for two-sample t-test for burntime
example (file burntime.r) (page 43)
R code for two-sample CI and t-test for Creativity
and Motivation study (file ttest2.r) (page 44)
R code for boxplots and histograms for Cloud Seeding
study (original and log scales) (file clouds.r) (pages 47-48)
R code for Simulation to Study Assumptions (file
chap3.r) (page 55)
R code for taking logarithms and making a
backtransformation (file backtran.r) (pages 57-58)
R code for tuition example (file tuition.r) (page
60)
R code for the Sign Test (file signtest.r) (page
66)
R code for the Sign Test for paired data (file
schiz.r) (page 68)
R code for the Signed=Rank Test (file wilcoxon.r)
(page 72)
R code for the Signed-Rank Test for paired data (file
judges.r) (page 74)
R code for the (Wilcoxon) Rank-Sum Test (file
ranksum.r) (page 78)
R code for Welch's Test (file welch.r) (page 80)
R code for Levene's Test (file levene.r) (page 81)
ANOVA R code for Diet Restriction and Longevity
Study (file micediet.r) (pages 94-95)
ANOVA R code for Mixing Technique Example (file
anovaex2.r) (pages 98,100)
R code for Levene's Test fir Mixing Technique
Example (file levene2.r) (page 101)
R Code for Pairwise Comparisons for Diet
Restriction and Longevity Study (file pairwise.r) (pages 102-103)
R Code for Random Effects Example (file random.r)
(page 107)
R Code for Kruskal-Wallis Test (file kw.r)
(page 110)
R Code for Discrimination against the Handicapped
Study (file handicap.r) (pages 113, 117-119, 122-123, 125-127)
R Code for the Pre-existing Preferences of Fish Study
(file fish.r) (page 115)
R Code for multiple comparison tests
(file mct_jrc.r)
R Code for the Big Bang Study (file bigbang.r)
(pages 132, 137, 138, 140-141)
R Code for the Meat Processing and pH Experiment
(file meatproc.r) (page 144)
R Code for Zero Correlation Example
(file zerocorr.r) (page 147)
R Code for the residual plots for the Big Bang
Study (file bigbang2.r) (page 153)
R Code for the Insulating Fluid Experiment (file
fluid.r) (page 157)
R Code for the Egg Clutch Weight Data (file dino.r)
(page 162)
Egg Clutch Weight data set (file dino.dat)
R Code for the Lack-of-Fit Test (file platyreg.r)
(pages 167-168)
R Code for Bad SLR with High R-square (file
rsquare.r) (page 171)
Multicollinearity example (file multicol.r) (page
177)
Corn yield data -- Adding a squared term for curvature
(file corn.r) (page 178)
Corn yield data set (file corn.dat)
Meadow foam data -- Adding an indicator variable
(file meadow.r) (page 181)
Meadowfoam data set (file flowers.txt)
Strength/Diameter/Machine study -- Adding multiple
indicator variables (file machine.r) (pages 182,185,186)
Strength/Diameter/Machine study -- Interaction
model (file machine2.r) (page 190)
Matrix of scatterplots, jittered scatterplots, and
trellis plots for brain weight data (file brain.r) (page 196)
Brain weight data set (file brainwt.csv)
R code for bat echolocation study (file echobat.r)
Interpreting statistical significance example (file
echobat2.r) (pages 206-207)
R code to generate values for the ESS F-tests (file
echobat1.r) (page 209)
R code for the Alcholism Metabolism study (file
alco1.r) (pages 216,219,222)
R code for trellis plot for the Alcholism Metabolism
study data (file alco2.r) (page 220)
R code for case influence statistic plots for the
Alcholism Metabolism study (file alco3.r) (page 224)
R code for weighted least squares example (file wls.r)
(page 229)