DOC PREVIEW
FSU STA 5167 - Homework

This preview shows page 1 out of 2 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 2 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 2 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

Jaime FradeStat Apps 2: HW3Problem 4.6Calculation of confidence interval from original observation fit lwr upr[1,] 8.755197 8.609724 8.90067Used bootstrapping method to give the following confidence interval. Used a function that was sourced in R, and is listed in code below 2.5% 50% 97.5% 8.801703 9.013620 9.229341Jaime FradeStat Apps 2: HW3Problem 4.6CODE: (R-Code)install.packages("alr3")library(alr3)data(wm1)attributes(wm1)fit1 = lm(CSpd~RSpd, data=wm1)x1 = data.frame(RSpd = 7.4285)predict(fit1, x1, interval="confidence")par(mfrow=c(2,2))plot(fit1)SOURCE (R-code)btstrp_4.6 = function(original_data){total = length(original_data[,1]);c1 = 1:total;meanCSpd = NULL;for(i in 1:999){data_num = sample(c1,replace=T);rearrange_data = original_data[data_num,];temp_meanCSpd = mean(rearrange_data$CSpd);meanCSpd = rbind(meanCSpd,temp_meanCSpd);}p1 = c(0.025,0.5,


View Full Document

FSU STA 5167 - Homework

Documents in this Course
Load more
Download Homework
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Homework and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Homework 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?