statistics-bootstrap Questions

3

Solved

Is there an equivalent of boot and boot.ci in python? In R I would do library(boot) result <- boot(data,bootfun,10000) boot.ci(result)
Compressed asked 27/3, 2018 at 20:54

4

I would like to speed up my bootstrap function, which works perfectly fine itself. I read that since R 2.14 there is a package called parallel, but I find it very hard for sb. with low knowledge of...
Concoction asked 12/4, 2013 at 18:26

5

I was reading about cross validation and about how it it is used to select the best model and estimate parameters , I did not really understand the meaning of it. Suppose I build a Linear regressi...

6

Solved

I am trying to add a progress bar to a bootstrap function in R. I tried to make the example function as simple as possible (hence i'm using mean in this example). library(boot) v1 <- rnorm(1000...
Siret asked 7/6, 2016 at 8:13

2

Solved

I have a data set with 15 density calculations, each from a different transect. I would like to resampled these with replacement, taking 15 randomly selected samples of the 15 transects and then ge...
Middling asked 13/10, 2016 at 15:28

5

Solved

I'm trying to efficiently implement a block bootstrap technique to get the distribution of regression coefficients. The main outline is as follows. I have a panel data set, and say firm and year a...
Discretionary asked 12/8, 2012 at 4:50

2

Solved

I am trying to gather some bootstrapped estimates for summary statistics from a dataset, but I want to resample parts of the dataset at different rates, which has led me to lean on nested for loops...
Publican asked 14/3, 2018 at 12:19

2

Solved

I would like to get 95% confidence intervals for the regression coefficients of a quantile regression. You can calculate quantile regressions using the rq function of the quantreg package in R (com...
Afire asked 29/6, 2016 at 17:22

2

Solved

Question: How can I use a boostrap to get confidence intervals for a collection of statistics calculated on the eigenvalues of covariance matrices, separately for each group (factor level) in a dat...
Jasso asked 27/7, 2017 at 14:0

0

The bottom of the answer in this question (Calculating CIs of fixed effects using confint in R) suggests one should see user time > elapsed time when parallel works. Despite specifying parallel = "...
Toe asked 15/6, 2016 at 21:8

2

I am trying to bootstrap a simple multinomial regression in R, and I am getting an error: Error in is.data.frame(data) : object 'd' not found What is really strange is that I am using the sam...
Carrero asked 16/10, 2015 at 12:17

1

Solved

I want to get bootstrap confidence intervals for more than one statistics through boot.ci function. Here is my MWE. I've two statistics in out and want to find the bootstrap confidence intervals f...
Amenable asked 4/8, 2015 at 15:23

1

I have a "my.dataset" like this: ID Species SEX Category V1 V2 V3 87790 Caniceps F F_Caniceps -0.34 -0.55 0.61 199486 Caniceps F F_Caniceps -0.34 -0.56 0.63 199490 Caniceps F F_Caniceps -0.37 -0....
Zonked asked 13/3, 2015 at 9:26

1

Below is a MWE of my problem: I have programmed a progress bar for some function using the bootstrap (via the boot function from the boot package). This works fine as long as I don't use parallel...
Hermia asked 19/11, 2014 at 14:21

5

Solved

I am attempting to do a mediation analysis in R using the mediate package. I have looked at the documentation on how to do this, and have read through the examples provided by R (i.e., I've already...
Lorenzo asked 18/9, 2012 at 21:26

1

Please me out! I appreciate any helps ! Thanks! I have trouble on repeat doing re-sampling for 1000 times. I tried using replicate() to do that but it's not working. Is there any other method to d...
Trask asked 10/12, 2013 at 9:17

1

Solved

Foremost, I am looking for a fast(er) way of subsetting/indexing a matrix many, many times over: for (i in 1:99000) { subset.data <- data[index[, i], ] } Background: I'm implementing a seque...
Forayer asked 8/12, 2013 at 18:26

2

Solved

I want to use the new bootMer() feature of the new lme4 package (the developer version currently). I am new to R and don't know which function should I write for its FUN argument. It says it needs ...
Esterify asked 26/8, 2013 at 11:34

3

Solved

I have this array of values: > df [1] 2 0 0 2 2 0 0 1 0 1 2 1 0 1 3 0 0 1 1 0 0 0 2 1 2 1 3 1 0 0 0 1 1 2 0 1 3 [38] 1 0 2 1 1 2 2 1 2 2 2 1 1 1 2 1 0 0 0 0 0 0 0 0 0 0 1 0 1 1 0 1 0 0 0 0 0 [7...
Coulee asked 20/8, 2013 at 17:38

1

Solved

This is the first time I post to this forum, and I want to say from the start I am not a skilled programmer. So please let me know if the question or code were unclear! I am trying to get the 95% ...
Ache asked 4/7, 2013 at 14:33

3

Solved

In the following code I use bootstrapping to calculate the C.I. and the p-value under the null hypothesis that two different fertilizers applied to tomato plants have no effect in plants yields (an...
Hierarch asked 1/9, 2010 at 7:6

1

Solved

Thanks for taking time read this question. I have some one-dimensional data to cluster in R. The basic hclust command works fine. But the pvclust command, however, does not take one-dimensional dat...

2

Solved

I am producing a script for creating bootstrap samples from the cats dataset (from the -MASS- package). Following the Davidson and Hinkley textbook [1] I ran a simple linear regression and adopte...
Heterolecithal asked 30/12, 2012 at 14:47

1

Solved

I have a matrix A, and I would like to draw samples from each column of A and construct new matrices. For example: A = matrix(seq(1,9),3,3) so to get the 1st bootstrap matrix, I would sample with...
Wentletrap asked 22/11, 2012 at 16:20

1

Solved

I am trying to bootstrap 95% CIs and mean values for measurements in order to examine the effect size of a treatment. The method I want to use is called LnRR or Logarithmic Response Ratio (1, 2, 3)...
Complaisance asked 24/10, 2012 at 16:18

© 2022 - 2024 — McMap. All rights reserved.