ch1problem23-rcode

ch1problem23-rcode - #alternatively sqrt(MSE) is called the...

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

View Full Document Right Arrow Icon
Sheet1 Page 1 #_________________________________________________________________ # Problem 1.23 # a. Obtain the residuals and check the sum. sum(lm.ch1pr19$res) #_______________________________________________________________ # b. Point estimates of sigma^2 and sigma # three ways: mse = sum(lm.ch1pr19$res^2)/(length(x)-2) mse #point estimate of sigma^2 sqrt(mse) #point estimate of sigma
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: #alternatively sqrt(MSE) is called the Residual standard error in the #summary output summary(lm.ch1pr19) #alternatively. If you can't remember what output is associated with #the summary command, but you think that mse might be one of them, use #the names command. names(summary(lm.ch1pr19)) #then: summary(lm.ch1pr19)$sigma...
View Full Document

This note was uploaded on 06/16/2009 for the course STAT 540 taught by Professor Staff during the Spring '08 term at Colorado State.

Ask a homework question - tutors are online