intervention_breakpts: Intervention Breakpoint Deetection Function

Description Usage Arguments Details Value Examples

View source: R/intervention_breakpts.R

Description

This function detects breakpoints where the slope of rates of cases change

Usage

1

Arguments

x

Date range in julian date, origin = '2019-12-31'

y

Rate of change, k in y = Ae^(kx)

Details

This is adapted from an R script written by Markus Loew on RPubs. breakpoints() in struccchange package by Achim Zeileis was used to estimate psi param in segmentation function

Value

Date of elbow changepoint in Julian and Date format

Examples

1

agroimpacts/covid19interventions documentation built on May 6, 2020, 12:35 a.m.