nearbypeakvalleys {DTVEM}R Documentation

Nearby Peaks and Valleys Function

Description

Looks for values that are nearby the peaks and valleys and are not significantly different. Note that all values should be specified, no values should be left to the defaults.

Usage

nearbypeakvalleys(
  values = peaks,
  lowerCI = lowerboundvcfx,
  upperCI = upperboundvcfx,
  timepred = timepred,
  updown = 1,
  j = j,
  predictionsend = predictionsend
)

Arguments

values

This is the vector of peaks or valleys to investigate

lowerCI

The lower confidence interval of the variable of interest

upperCI

The upper confidence interval of the variable of interest

timepred

This is the time prediction values from the start to the end of the predictions in intervals dictated by the intervals

updown

This tells the function whether to look up for the nearby values or down (1 for up, -1 for down)

j

This tells the function which variable is being investigated

predictionsend

The end of the time predictions

Value

The output of this function will be a vector of nearby peaks or valleys that are not significantly different from the inputted values


[Package DTVEM version 1.0010 Index]