Difference between revisions of "Least squares modelling (2014)"
Jump to navigation
Jump to search
Kevin Dunn (talk | contribs) |
Kevin Dunn (talk | contribs) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
| dates_alt_text = | | dates_alt_text = | ||
| vimeoID1 = Ja1tJeDPUds | | vimeoID1 = Ja1tJeDPUds | ||
| vimeoID2 = | | vimeoID2 = UZz4vA49pPg | ||
| vimeoID3 = pkgwO8q0Oig | | vimeoID3 = pkgwO8q0Oig | ||
| vimeoID4 = qeuQNS-g05w | | vimeoID4 = qeuQNS-g05w | ||
Line 40: | Line 40: | ||
| video_notes8 = | | video_notes8 = | ||
}} | }} | ||
<span style="color:#900000">{{Huge|This page is out of date.}}</span> {{Huge|Please see the [[Least_squares_modelling |latest version of these notes]].}} | |||
== Course notes and slides == | == Course notes and slides == |
Latest revision as of 07:19, 4 January 2017
Class date(s): | 29 January 2014 to 26 February 2014 | ||||
(PDF) | Course slides | ||||
| |||||
| |||||
| |||||
| |||||
| |||||
| |||||
| |||||
| |||||
This page is out of date. Please see the latest version of these notes.
Course notes and slides
- Course textbook (print chapter 4)
- Slides for class
Date | Class number | Video and audio files | Other materials | Reading (PID) | Slides | |
---|---|---|---|---|---|---|
29 January | 04C | Video (119 M) | Audio (18 M) | None | Chapter 4 | Slides for class |
30 January | 04D | Video (304 M) | Audio (42 M) | See the source code below | ||
03 February | 05A | Video (291 M) | Audio (41 M) | See the source code below | ||
05 February | 05B | Video (216 M) | Audio (42 M) | None | ||
06 February | 05C | Video (276 M) | Audio (42 M) | Practice problems (with partial solutions) | ||
10 February | 06A | Video (239 M) | Audio (43 M) | None | ||
12 February | 06B | Video (259 M) | Audio (42 M) | None | ||
13 February | NA | None | None | Collaborative midterm | ||
24 February | 07A | None | None | |||
26 February | 07B | Video (277 M) | Audio (41 M) | None |
Software source code
Take a look at the software tutorial, particularly steps 16 to 22.
Code used in class
Least squares demo; run this code in your web-browser.
x <- c(10, 8, 13, 9, 11, 14, 6, 4, 12, 7, 5)
y <- c(8.04, 6.95, 7.58, 8.81, 8.33, 9.96, 7.24, 4.26, 10.84, 4.82, 5.68)
plot(x,y)
model.ls <- lm(y ~ x)
summary(model.ls)
coef(model.ls)
confint(model.ls)
names(model.ls)
model.ls$resisduals
resid(model.ls)
plot(x, y)
abline(model.ls)