Description Usage Arguments Details Value Examples
Bootstrap functions that performs regression of y on X and computes the standard deviation of the regression coefficients
1 | bootstrap_multidim(X, y, r, n)
|
X |
The data as a matrix |
y |
The response variable for the regression |
r |
the number of bootstrap resamples |
n |
the number of data points in each resample (which is also the number of data points in the full data set) |
The functions described here are designed as helper functions for the Bag of Little Bootstraps. When used in the BLB, either of these functions can be called on each of the s subsamples, with the matrix X and vector y being a subsample of the full data matrix and response vector.
bootstrap_multidim
runs in serial over the r subsamples.
vector with the standard deviation of the regression coeffiecients
1 2 3 | X <- matrix(rnorm(10), 5, 2)
y <- rnorm(5)
bootstrap_multidim(X, y, 1000, 30)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.