Learn R Programming

tidychangepoint (version 1.0.0)

test_set: Simulate time series with known changepoint sets

Description

Simulate time series with known changepoint sets

Usage

test_set(n = 1, sd = 1, seed = NULL)

Value

A stats::ts() object

Arguments

n

Number of true changepoints in set

sd

Standard deviation passed to stats::rnorm()

seed

Value passed to base::set.seed()

See Also

DataCPSim

Examples

Run this code
x <- test_set()
plot(x)
changepoints(x)

Run the code above in your browser using DataLab