Weights
draw_weights(t, full_enumeration, N_G_bootcluster, boot_iter, rng)
draw bootstrap weights
Parameters:
Name | Type | Description | Default |
---|---|---|---|
t |
str | callable
|
the type of the weights distribution. Either 'rademacher', 'mammen', 'norm' or 'webb' |
required |
full_enumeration |
bool
|
should deterministic full enumeration be employed |
required |
N_G_bootcluster |
int
|
the number of bootstrap clusters |
required |
boot_iter |
int
|
the number of bootstrap iterations |
required |
Returns:
Type | Description |
---|---|
Tuple[np.ndarray, int]
|
Tuple[np.ndarray, int]: a matrix of dimension N_G_bootcluster x (boot_iter + 1) and the number of iterations |
Source code in wildboottest\weights.py
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 |
|