Estimating residuals bootstrap in R

  • Context: Undergrad 
  • Thread starter Thread starter deanac
  • Start date Start date
  • Tags Tags
    Bootstrap
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
1 reply · 3K views
deanac
Messages
3
Reaction score
0
Hello, I am trying to predict the residual standard error using bootstrap since they error terms are not independent. So far, I have found a linear model:
m1<-lm(y~x+I(x^2))
but I'm not sure how to use the boot strap to find the residuals.
I am having trouble finding any information online, so I would really appreciate any input.
Thank you!
 
Physics news on Phys.org
deanac said:
Hello, I am trying to predict the residual standard error using bootstrap since they error terms are not independent. So far, I have found a linear model:
m1<-lm(y~x+I(x^2))
but I'm not sure how to use the boot strap to find the residuals.
I am having trouble finding any information online, so I would really appreciate any input.
Thank you!

Bootstraping is very well explained here: http://en.wikipedia.org/wiki/Bootstrapping_(statistics)

in R you have to use the instruction sample for the resampling part of the method.