Pettitt {HydroPortailStats}R Documentation

Pettitt Test

Description

Applies the Pettitt step-change test

Usage

Pettitt(y)

Arguments

y

numeric vector, data

Value

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

Examples

y=stats::rnorm(50)
Pettitt(y)
y[26:50]=y[26:50]+2
Pettitt(y)

[Package HydroPortailStats version 1.0.3 Index]