| plot.bootstrapTest {BootstrapTests} | R Documentation |
Plot and print the bootstrap test statistics distribution
Description
The plot and print methods work for objects of class bootstrapTest.
The print method prints the summary of the bootstrap test results.
The plot method plots the distribution of bootstrapped test statistics
as a histogram, with the true test statistic and the 95
bootstrapped test statistics highlighted. In the regression test case, the
estimated regression line is plotted as well.
Usage
## S3 method for class 'bootstrapTest'
plot(
x,
xlim = NULL,
breaks = NULL,
legend.x = NULL,
legend.y = NULL,
ask = interactive(),
plot_estimated_line = NULL,
...
)
## S3 method for class 'bootstrapTest'
print(x, ...)
Arguments
x |
an object of class |
xlim |
limits for the x-axis of the histogram |
breaks |
breaks for the histogram |
legend.x |
position of the legend on the x-axis |
legend.y |
position of the legend on the y-axis |
ask |
if |
plot_estimated_line |
Boolean describing whether to plot the estimated
regression line in case |
... |
additional arguments passed to the |
Value
These functions have no return value and are called solely for their side effects.
References
Derumigny, A., Galanis, M., Schipper, W., & van der Vaart, A. (2025). Bootstrapping not under the null? ArXiv preprint, doi:10.48550/arXiv.2512.10546
See Also
perform_independence_test, perform_GoF_test,
perform_regression_test,
which are the functions that generate such object x.