Study Questions
These are examples of the kinds of questions that might appear on the nal exam. You might also review the Conceptual Exercises in the Sleuth; thought questions in the homework assignme
I
n
Yij Y
2
I
n
=
i=1 j =1
Yi Y
2
I
n
+
i=1 j =1
Yij Yi
2
i=1 j =1
total SS = (between-groups SS) + (within-groups SS) (N 1) = (I 1) + (N I )
F -statistic = (between-groups SS)(/(II1) (within-g
library(ggplot2)
library(Sleuth3)
qplot(Judge, Percent, data = case0502)
# = Extra Sum of Squares F-test = #
# the best guess for the means in the separate means model, the full model
case0502$group_a
library(ggplot2)
load(url("http:/stat511.cwick.co.nz/data/cdc.rda")
males <- subset(cdc, gender = 'm')
head(males)
# 1 What is the average age of female respondents?
females = subset(cdc,gender="f")
m
# Beware! You will get a different sample to the one in the slides!
library(plyr)
mpg <- read.csv(url("http:/stat511.cwick.co.nz/data/mpg.csv")
#+ results="hide"
head(mpg)
names(mpg)
# subset out rele
library(Sleuth3)
library(ggplot2)
source(url("http:/stat511.cwick.co.nz/code/stat_qqline.r")
qplot(Judge, Percent, data = case0502)
# create new Spock or Not variable
case0502$two_groups <- ifelse(cas
Stat 411/511
ESTIMATING THE SLOPE AND INTERCEPT
Nov 20 2015
Charlotte Wickham
stat511.cwick.co.nz
Quiz #4
This weekend, dont forget.
Usual format
Assumptions
Display 7.5
p. 180
The ideal normal, simpl
acs <- read.csv(url("http:/stat511.cwick.co.nz/homeworks/acs_or.csv")
# histogram of all husband ages
qplot(age_husband, data = acs)
# 25% and 75%iles of this distribution
mean(acs$age_husband)
quanti
lab2.R
brintzb
Wed Oct 14 09:46:26 2015
library(ggplot2)
# Warning: package 'ggplot2' was built under R version 3.2.2
load(url("http:/stat511.cwick.co.nz/data/cdc.rda")
males <- subset(cdc, gender = '
Stat 411/511
INFERENCE IN SIMPLE LINEAR
REGRESSION
Nov 24 2014
Charlotte Wickham
stat511.cwick.co.nz
DA #2
Avoid story telling
First I , then I . I noticed . so I.
Although the residuals showed clear
Stat 411/511
SIMPLE LINEAR REGRESSION
Nov 18 2015
Charlotte Wickham
stat511.cwick.co.nz
DA#2
Q2 You should be reporting test
results and confidence intervals. (No
adjustments required)
Assumptions: do
Stat 411/511
LINEAR COMBINATIONS OF
MEANS
Nov 13 2015
Charlotte Wickham
stat511.cwick.co.nz
DA #2
Second question involves three two
group comparisons.
A separate three sentence summary for
each is n