Description Usage Arguments Details Value Author(s) References See Also Examples
Generates B
number of parametric bootstrap
samples using estimated parameters
from the original sample data
.
data
is referred to as the empirical distribution
with the following distributional assumption
\hat{ F }_{ \mathcal{ N }_{k} ≤ft( \boldsymbol{ \hat{ μ } } ≤ft( \boldsymbol{ \hat{ θ } } \right) , \boldsymbol{ \hat{ Σ } } ≤ft( \boldsymbol{ \hat{ θ } } \right) \right) } . %(\#eq:boot-pb-mvn)
Bootstrap samples are generated from a multivariate normal distribution using the fitted model-implied mean vector and variance-covariance matrix.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
n |
Integer. Sample size. |
muhatthetahat |
Vector. Mean vector as a function of estimated parameters or the fitted model-implied mean vector \boldsymbol{ \hat{ μ } } ≤ft( \boldsymbol{ \hat{ θ } } \right) %(\#eq:boot-pb-mvn-mu) . |
Sigmahatthetahat |
Matrix. Variance-covariance matrix as a function of estimated parameters or the fitted model-implied variance-covariance matrix \boldsymbol{ \hat{ Σ } } ≤ft( \boldsymbol{ \hat{ θ } } \right) %(\#eq:boot-pb-mvn-Sigma) . |
tol |
Numeric.
Tolerance (relative to largest variance)
for numerical lack of positive-definiteness in |
empirical |
Logical.
If |
B |
Integer. Number of bootstrap samples. |
par |
Logical.
If |
ncores |
Integer.
Number of cores to use if |
mc |
Logical.
If |
lb |
Logical.
If |
cl_eval |
Logical.
Execute |
cl_export |
Logical.
Execute |
cl_expr |
Expression.
Expression passed to |
cl_vars |
Character vector.
Names of objects to pass to |
For more details and examples see the following vignettes:
Returns a list of length B
of parametric bootstrap samples.
Ivan Jacob Agaloos Pesigan
Efron, B., & Tibshirani, R. J. (1993). An introduction to the bootstrap. New York, N.Y: Chapman & Hall.
Wikipedia: Bootstrapping (statistics)
Other bootstrap functions:
nb()
,
pbuniv()
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | B <- 5L
Sigmahatthetahat <- matrix(
data = c(
82.37344,
70.55922,
17.83930,
70.55922,
112.57145,
-75.98558,
17.83930,
-75.98558,
338.46263
),
nrow = 3
)
muhatthetahat <- c(
108.3060,
105.3324,
103.4009
)
Xstar <- pbmvn(
n = 5,
Sigmahatthetahat = Sigmahatthetahat,
muhatthetahat = muhatthetahat,
B = B
)
str(Xstar)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.