Difference between revisions of "Least squares modelling (2014)"
Jump to navigation
Jump to search
Kevin Dunn (talk | contribs) |
Kevin Dunn (talk | contribs) |
||
Line 2: | Line 2: | ||
| date = 29 January 2014 to 13 February 2014 | | date = 29 January 2014 to 13 February 2014 | ||
| dates_alt_text = | | dates_alt_text = | ||
| vimeoID1 = | | vimeoID1 = 85473848 | ||
| vimeoID2 = | | vimeoID2 = | ||
| vimeoID3 = | | vimeoID3 = | ||
Line 15: | Line 15: | ||
| assignment_instructions = | | assignment_instructions = | ||
| assignment_solutions = | | assignment_solutions = | ||
| video_download_link_MP4 = http://learnche.mcmaster.ca/media/2014-4C3-6C3-Class- | | video_download_link_MP4 = http://learnche.mcmaster.ca/media/2014-4C3-6C3-Class-04C.mp4 | ||
| video_download_link_MP4_size = | | video_download_link_MP4_size = 119M | ||
| video_notes1 = | | video_notes1 = | ||
| video_download_link2_MP4 = | | video_download_link2_MP4 =http://learnche.mcmaster.ca/media/2014-4C3-6C3-Class-04D.mp4 | ||
| video_download_link2_MP4_size = M | | video_download_link2_MP4_size = M | ||
| video_notes2 = | | video_notes2 = | ||
Line 57: | Line 57: | ||
| 29 January | | 29 January | ||
| 04C | | 04C | ||
| | | [http://learnche.mcmaster.ca/media/2014-4C3-6C3-Class-04C.mp4 Video] (119 M) | ||
| | | [http://learnche.mcmaster.ca/media/2014-4C3-6C3-Class-04C.mp3 Audio] (18 M) | ||
| | | See the source code below | ||
| rowspan="7"|[http://learnche.mcmaster.ca/pid/?source=Least-squares Chapter 4] | | rowspan="7"|[http://learnche.mcmaster.ca/pid/?source=Least-squares Chapter 4] | ||
| rowspan="7"|[[Image:Nuvola_mimetypes_pdf.png|20px|link=Media:2014-4C3-6C3-Least-squares-modelling.pdf]] [[Media:2014-4C3-6C3-Least-squares-modelling.pdf|Slides for class]] | | rowspan="7"|[[Image:Nuvola_mimetypes_pdf.png|20px|link=Media:2014-4C3-6C3-Least-squares-modelling.pdf]] [[Media:2014-4C3-6C3-Least-squares-modelling.pdf|Slides for class]] | ||
Line 68: | Line 68: | ||
Take a look at [[Software_tutorial|the software tutorial]], particularly steps 16 to 22. | Take a look at [[Software_tutorial|the software tutorial]], particularly steps 16 to 22. | ||
== Code used in class == | == Code used in class == | ||
Line 90: | Line 89: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
<!-- | |||
Thermocouple data | Thermocouple data | ||
<syntaxhighlight lang="sas"> | <syntaxhighlight lang="sas"> |
Revision as of 22:45, 30 January 2014
Class date(s): | 29 January 2014 to 13 February 2014 | ||||
(PDF) | Course slides | ||||
| |||||
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) | See the source code below | Chapter 4 | Slides for class |
Software source code
Take a look at the software tutorial, particularly steps 16 to 22.
Code used in class
Least squares demo
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)
confinf(model.ls)
names(model.ls)
model$resisduals
resid(model.ls)
plot(x, y)
abline(model.ls)