Pettitt | R Documentation |
Applies the Pettitt step-change test
Pettitt(y)
y |
numeric vector, data |
A list with the following components:
pval |
numeric, p-value of the test |
stat |
numeric, test statistics |
xtra |
numeric, xtra information: position of the step change |
y=stats::rnorm(50)
Pettitt(y)
y[26:50]=y[26:50]+2
Pettitt(y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.