| sn-parametric-bootstrap | R Documentation |
Tests skew-normal goodness of fit using a parametric bootstrap, re-estimating
the model in each bootstrap sample with sn.fit.robust().
sn.para.bootstrap.ks.test(data = NULL, B = 1000L, seed = 103L,
verbose = FALSE)
sn.para.bootstrap.cvm.test(data = NULL, B = 1000L, seed = 103L,
verbose = FALSE)
data |
A numeric vector containing at least 10 finite observations. |
B |
A positive integer giving the number of bootstrap samples. |
seed |
A single integer, or |
verbose |
Logical; whether to print a short summary. |
The KS function uses \sqrt{n}D; the CvM function uses the
Cramér–von Mises statistic. Failed fits are excluded and the p-value uses
the finite-simulation correction (1 + \sum I(T_b >= T_0))/(B_{valid}+1).
The names ending in .1 are compatibility aliases.
A single numeric bootstrap p-value with attributes statistic,
B, valid, and failed.
set.seed(123)
x <- sn::rsn(50, xi = 0, omega = 1, alpha = 3)
sn.para.bootstrap.ks.test(x, B = 99)
sn.para.bootstrap.cvm.test(x, B = 99)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.