Description Usage Arguments Value References Examples
View source: R/ols-boot-multiplier.R
comp_boot_mul_wgt
is a Helper function for
comp_boot_mul
to generate different types
of multiplier bootstrap weights. This section is inspired by the
weighttype
option in the Stata boottest
package.
1 | comp_boot_mul_wgt(n, weights_type)
|
n |
The number of random multiplier bootstrap weights to generate. |
weights_type |
The type of multiplier bootstrap weights to generate.
Based on the |
A numeric vector of n (sampled with replacement) random multiplier bootstrap weights based on the specified multiplier weights type.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | ## Not run:
set.seed(824908)
# Number of multiplier weights to generate
n <- 1000
# Generate the different type of multiplier weights
rademacher_w <- comp_boot_mul_wgt(
n = n,
weights_type = "rademacher"
)
mammen_w <- comp_boot_mul_wgt(n = n, weights_type = "mammen")
webb_w <- comp_boot_mul_wgt(n = n, weights_type = "webb")
std_gaussian_w <- comp_boot_mul_wgt(
n = n,
weights_type = "std_gaussian"
)
gamma_w <- comp_boot_mul_wgt(n = n, weights_type = "gamma")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.