cpt_det: Function to detect potential non-routine events

Description Usage Arguments Value

View source: R/nrevent.R

Description

cpt_det This function identifies potential non-routine events in the savings time series it uses cpt.meanvar function from changepoint R package to identify changes in mean and variance

Usage

1
cpt_det(baseline_obj, interval)

Arguments

baseline_obj

A baseline object, which is produced by the baseline function (e.g., towt_baseline, gbm_baseline)

Value

a cpt_det object, which is a list with the following components:

savings

vector corresponding to the estimated savings time series

nre

Boolean indicating if non-routine events were identified

cpts

changepoints indices

interval_means

mean values of detected intervals

interval_vars

variance values of detected intervals


LBNL-ETA/RMV2.0 documentation built on Nov. 9, 2020, 5:44 a.m.