Implements the bootstraped version of the density goodness-of-fit test \(\hat{S}_n(h)\) defined in (6) Bagkavos, Patil and Wood (2021).
S.n.Boot(xin1, indices, h, dist, kfun, p1, p2)A vector of values of the test statistic.
A vector of data points to perfrom bootstrap on.
indices to use for the bootstrap process.
The bandwidth to use, typically the output of hopt.be.
The null distribution.
The kernel to use in the density estimates used in the bandwidth expression.
Argument 1 (vector or object) for the null distribution.
Argument 2 (vector or object) for the null distribution.
R implementation and documentation: Dimitrios Bagkavos <dimitrios.bagkavos@gmail.com>
Implements the bootstrap version of the test statistic S.n for use in the cutoff.bootstrap function. This function is typically not to be called directly by the user; it is rather meant to be called indirectly through the cutoff.bootstrap function.
Bagkavos, Patil and Wood: Nonparametric goodness-of-fit testing for a continuous multivariate parametric model, (2021), under review.
S.n