test_segmentation: Tests whether all consecutive segments are significantly...

Description Usage Arguments Value Examples

View source: R/test_segmentation.R

Description

Tests whether all consecutive segments are significantly different

Usage

1
test_segmentation(x, v_r, alpha = 0.05)

Arguments

x

a series

v_r

the cuts locations in the series

Value

a total sum of squares

Examples

1
2
x=c(rnorm(100,3,2),rnorm(100,10,2),rnorm(100,2,2),rnorm(100,-4,2),rnorm(100,6,2),rnorm(100,2,2),rnorm(100,8,2))
test_segmentation(x, v_r=c(1,301,501,701))

lvaudor/hubr documentation built on Dec. 7, 2018, 8 a.m.