CHAPTER 1
Simple Linear Regression with R
1.1
The Simple Linear Regression Model
Example 1.1 (page 25): Porsche Prices
We now proceed to use R with the regression chapters of the text . We begin with the example on
Porsche Prices. Here is the code to obta
CHAPTER 11
Logistic Regression: Additional Topics
This chapter of the Companion describes R procedure for handling the additional topics of logistic
regression covered in Chapter 11. We again let the textbooks examples drive the exposition in this
Compani
CHAPTER 9
Logistic Regression
9.1
Choosing a Logistic Regression Model
Example 9.1: Losing Sleep The data on teen sleep was collected using a survey that coded
0=No and 1=Yes as shown in Table 9.2.
To summarize this raw data in a table like Table 9.1,
use
Chapter 2
23
Chapter 2 Solutions
2.1 False. The slope of the line depends on the scale for Y and X as well as the correlation between
them. If we make all of the X values smaller (say by dividing each by 1000), the slope will get
bigger (multiplying by 10
CHAPTER 2
Inference for Simple Linear
Regression
Much of the discussion of statistical inference in the regression setting focuses on two tables: the
summary table of coecients and the ANOVA table.
To obtain the summary table of coecients, use the summary
CHAPTER 10
Multiple Logistic Regression
10.1
Overview
We now describe the use of R for multiple logistic regression topics. In a way, the methods we learn
here will reect the kind of transition we saw in going from simple linear regression to multiple
lin
CHAPTER 6
Multifactor ANOVA
6.1
The Two-Way Additive Model (Main Eects Model)
Since the goal of the R Companion is to introduce you to R, we will dispense here with the oneway analyses, since you learned those in the previous chapter. We go straight to th
CHAPTER 0
What is a Statistical Model?
Example 0.6: Financial Incentives for Weight Loss: Data analysis with two samples.
In the commands that follow, we obtain the dataset WeightLossIncentive4,1 attach it, and
produce a comparative dotplot. (Recall that
CHAPTER 5
Analysis of Variance
5.1
The One-Way Model: Comparing Groups
We will follow the textbooks lead and use the fruit ies dataset to illustrate the use of R for the
one-way ANOVA analysis.
Example 5.1: Fruit Flies
In the code below, we rst obtain the
Stat2
Building Models for a World of Data
Student Solutions to Odd-Numbered Exercises
Ann R. Cannon
Cornell College
George W. Cobb
Mount Holyoke College
Bradley A. Hartlaub
Kenyon College
Julie M. Legler
St. Olaf College
Robin H. Lock
St. Lawrence Univers
MOUNT HOLYOKE COLLEGE
Mathematics and Statistics Department
STAT 140
Amir A. Kouzehkanani
Review Problems 1. Professor Jones suspects students of cheating without any particularly good reason. When
he suspects that a. student has cheated on the exam, he r
MOUNT HOLYOKE COLLEGE
Mathematics and Statistics Department
Final Exam Sample Problems
STAT 140
Amir A. Kouzehkanani
1. A fast food chain opened an outlet in a small town one year ago. The management of the chain is not
fully satisfied with the volume of