tsutils (version 0.9.4)

coxstuart: Cox-Stuart test

Description

Perform Cox-Stuart test for location or dispersion.

Usage

coxstuart(y, type = c("trend", "deviation", "dispersion"), alpha = 0.05)

Value

A list containing:

  • H: hypothesis outcome.

  • p.value: corresponding p-value.

  • Htxt: textual description of the hypothesis outcome.

Arguments

y

input data.

type

type of test. Can be:

  • "trend": test for changes in trend.

  • "deviation": test for changes in deviation.

  • "dispersion": test for changes in dispersion (range).

alpha

significance level.

Author

Nikolaos Kourentzes, nikolaos@kourentzes.com.

Examples

Run this code
coxstuart(referrals)

Run the code above in your browser using DataLab