Prerequisite Self Test

# If you need to get r installed or updated look at my

This preview shows page 1. Sign up to view the full content.

This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: it. If you need to get R installed (or updated) look at my instructions from ST511. Use the following code to read in the chocolate, beer and electricity dataset from C&M Section 1.4.3. ce< ra.al(r(ht:/w.asya.z~soprt/b.a", b - edtbeul"tp/wwmse.cn/pcwe/scedt) hae =TU) edr RE cedt < sqDt(sDt(15-10",a.ae"901-1) b\$ae - e.aea.ae"980-1) sDt(19-20", b ="ot" y mnh) ceya < a.OIl(b\$ae\$er b\$er - sPSXtcedt)ya cemnh< fco(otscedt) lvl =mnhnm) b\$ot - atrmnh(b\$ae, ees ot.ae 1. Plot side by side boxplots of electricity for each month. stat565.cwick.co.nz/prereqs.html 1/2 12/2/13 Prerequisite Self Test.stat565 2. Fit a linear regression for electricity with a fixed effect for each month and a linear term for the year. I.e. ϵ × Or, , in ST512 shorthand. , in linear model notation. 3. Plot the fitted values against the date. 4. Plot the residuals against the date. stat565.cwick.co.nz/prereqs.html 2/2...
View Full Document

## This test prep was uploaded on 04/04/2014 for the course ST 565 taught by Professor Staff during the Spring '08 term at Oregon State.

Ask a homework question - tutors are online