getpval | R Documentation |
Computes and returns a p-value from the output of the bootstrap test for stationarity.
getpval(statvec, verbose = TRUE)
statvec |
A vector of test statistics, such as that given by |
verbose |
If TRUE then the p-value is printed and a sentance declaring "stationary" or "not stationary" is printed. |
p |
The p-value of the test. |
Sarah L. Taylor
Taylor, S.L., Eckley, I.A., and Nunes, M.A. (2014) A Test of Stationarity for Textured Images. Technometrics, 56 (3), 291-301.
TOS2D
#Generate a stationary image
testimage <- matrix(rnorm(64*64), nrow=64, ncol=64)
# Run test of stationarity
## Not run: TestofStat<-TOS2D(testimage)
# Obtain p-value
getpval(TestofStat$samples)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.