getNeighborhoodDf: Create and return the neighborhood data frame for a given...

Description Usage Arguments Value

View source: R/getNeighborhoodDf.r

Description

A neighborhood of a point p, consists of all the points within a certain distance from p. For the given time series, the neighborhood data frame consists of each element of the time series, the previous and next elements, the magnitude of the first difference, the percent change of the first difference, and the sign of the change. The column, IS_TP, is a boolean that indicates whether or not a given element is a transition point.

Usage

1
tsData.nhoodDf <- getNeighborhoodDf(tsData)

Arguments

tsData

A time series object.

Value

A data frame characterizing each time series element and the first difference


OHDSI/Castor documentation built on March 20, 2021, 6:09 p.m.