Questions tagged [statistics-bootstrap]

In statistics, a bootstrap is a resampling technique based on random sampling with replacement.

The bootstrap was introduced by Brad Efron in the Late 1970s. It is a computer‐intensive method that enables enables researchers to estimate the sample statistics (such as medians, variances, percentiles) by drawing randomly with replacement from a set of available data.

See also:

  1. The Wikipedia page on Bootstrapping
  2. Bootstrapping using boot package in R
  3. Brad Efron's paper on bootstrap
  4. Review on bootstrap methods in econometrics
602 questions
0
votes
2 answers

Bootstraoping using the boot package

Trying around with the boot package in R and it does not accomplish what I want, it just returns the same value. I have read the documentation and checked the first example which seems to be the same, but I don't get any bootstrapped results, just…
MLEN
  • 2,162
  • 2
  • 20
  • 36
0
votes
0 answers

How to indicate warnings inside of parLapply function

I am constructing bootstrap function that will estimate logistic regression on each bootstrapped data set and do some additional calculations. For small samples sometimes it may produce warnings such as Warning messages: 1: glm.fit: algorithm did…
Art
  • 43
  • 8
0
votes
2 answers

Boostrap with multiple rows as observation in R

I'm trying to do a bootstrap on my data but it is extremely slow. I use R on a windows laptop. I have a dataset that has multiple rows to indicate an observation, and these need to stay together when I bootstrap my data. I have a variable that…
Lukas Heeren
  • 149
  • 1
  • 10
0
votes
0 answers

How to automate bootstrapping with changing variables?

I think my problem is easy, I just could not find a solution for it. So, I am trying to do bootstrapping in r and the results have been successful. However, I want to automate my code to make it run for 10000,15000, etc.. times without changing…
Soh
  • 1
0
votes
1 answer

bootstrap to get confidence intervals using R

Im trying to bootstrap reliability estimates using non parametric bootstrap I have written the code below where a model is created and then bootstrapped 1000 times in order to get two reliability statistics Alpha and Omega I am able to get the Alpha…
John Smith
  • 2,448
  • 7
  • 54
  • 78
0
votes
1 answer

Bootstrapping regression coefficients from random subsets of data

I’m attempting to perform a regression calibration on two variables using the yorkfit() function in the IsoplotR package. I would like to estimate the confidence interval of the bootstrapped slope coefficient from this model; however, instead of…
AMod
  • 3
  • 3
0
votes
0 answers

Creating Bootstrap samples in MATLAB

I am confused about how the bootstrap samples are generated, are these values taken from the original data or some random numbers? I have variable (a) of length 700 i.e. 700 samples and I am trying to produce 100 bootstraps of 'a' and compare these…
user8020776
  • 13
  • 1
  • 3
0
votes
0 answers

resampling p-values: bootstrapping/permutation error

My instructor advised me to resample my p-values (many different tests each using a different predictor) as a better way to correct for multiple comparisons for measures that may be correlated. I have created a vector with all my p-values and tried…
user6121484
  • 143
  • 2
  • 15
0
votes
1 answer

Error in mediate - unused arguments

I have the following code: model.xy <- lm(Y ~ X, Htest) model.mx <- lm(M ~ X, Htest) model.yxm <- lm(Y ~ X + M, Htest) These regressions are doing fine (also summary view) but then when I want to check for mediation effect the code is…
User100009
  • 103
  • 1
  • 1
  • 5
0
votes
1 answer

How to repeat a block of code to sample 2 values in r?

(I'm new to this so now editing my question as a reproducible example). I've reviewed bootstrapping,loop and replicate functions and can't figure out how to repeat a series of steps (not just a single function) in R and store the result in…
EMC
  • 3
  • 1
  • 4
0
votes
1 answer

Bootstrap fitting in python

I'm having some difficulty in fit a function in python using a bootstrap technique. I can't understand some of the problems I've been having. I try to fit my function through the methodology described here, however I'm getting the following…
david clarck
  • 157
  • 2
  • 11
0
votes
1 answer

R-How do I apply a for loop across multiple data frames?

In R, I have 3 dataframes that are similar to the sample versions I have provided below. The first Data is the primary data set, the TW and UW dataframes have a similar variable as Data (MN-mapping_for_N), and then 1000 different values for each…
0
votes
1 answer

Bootstrapping in R Not Displaying Relevant Statistic

I have bootstrapped a project for a class I'm in and when attempting to display the specific statistic I want, I am met with errors. I am coding this with R programming language for statistics in R studio. Here is my code: boot = do(20)* { …
Hammered
  • 1
  • 1
0
votes
1 answer

bagging AIC values from mixed effects linear regression models in R

I've resampled with replacement a data set 1000 times and now want to fit three models to each of these 1000 data sets and bag their AIC scores. The end goal of this procedure is to obtain mean AIC scores for each model across all models along with…
Des Grieux
  • 520
  • 1
  • 5
  • 31
0
votes
0 answers

How to enhance the running speed when doing sampling with replacement in Java?

I've dealt with the tabular-data that has approximately more than one million rows in the data and it only contains just one column. I tried to use bootstrap method also known as traditional sampling methods with replacement. Since bootstrap method…
sclee1
  • 1,095
  • 1
  • 15
  • 36