nearbypeakvalleys {DTVEM} | R Documentation |
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.
nearbypeakvalleys( values = peaks, lowerCI = lowerboundvcfx, upperCI = upperboundvcfx, timepred = timepred, updown = 1, j = j, predictionsend = predictionsend )
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 |
The output of this function will be a vector of nearby peaks or valleys that are not significantly different from the inputted values