Estimating residuals bootstrap in R

  • Context: Undergrad 
  • Thread starter Thread starter deanac
  • Start date Start date
  • Tags Tags
    Bootstrap
Click For Summary
SUMMARY

The discussion focuses on estimating the residual standard error using bootstrap methods in R, specifically with a linear model defined as m1 <- lm(y ~ x + I(x^2)). The user seeks guidance on applying bootstrap techniques to derive residuals, noting the challenge of dependent error terms. Key insights include the use of the sample function in R for resampling, which is essential for implementing the bootstrap method effectively.

PREREQUISITES
  • Understanding of linear regression models in R
  • Familiarity with bootstrap resampling techniques
  • Knowledge of R programming, specifically the lm function
  • Basic statistics concepts, particularly residual analysis
NEXT STEPS
  • Research how to implement bootstrap methods in R using the boot package
  • Learn about the sample function in R for resampling
  • Explore techniques for analyzing residuals in linear models
  • Study the implications of dependent error terms in regression analysis
USEFUL FOR

Statisticians, data analysts, and R programmers interested in advanced regression techniques and bootstrap methods for estimating residuals.

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.
 

Similar threads

  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 23 ·
Replies
23
Views
4K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
3
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K