tests/test.R

#---------------------------------------
# This script sets out to test the core
# functions of the Rcatch22 package
#---------------------------------------

#--------------------------------------
# Author: Trent Henderson, 1 April 2021
#--------------------------------------

library(Rcatch22)

# Calculations

data <- 1 + 0.5 * 1:1000 + arima.sim(list(ma = 0.5), n = 1000)
outs <- catch22_all(data)

Try the Rcatch22 package in your browser

Any scripts or data that you put into this service are public.

Rcatch22 documentation built on May 31, 2021, 9:09 a.m.