valley {InPAS} | R Documentation

## get the local minimal square standard error (SSE)

### Description

For a giving numeric vectors, calculate the top N local minimal square standard error. It will also include the saved ID if it is in the range of (ss, se)

### Usage

    valley(x, ss, se, n = 1, savedID = NA, filterByPval = TRUE)

### Arguments

`x` | numeric vector
`ss` | start searching position
`se` | end searching position
`n` | the length of output. If n=-1, output all the local minimal SSE positions.
`savedID` | saved positions
`filterByPval` | logical. Filter the positions by p value or not.

### Value

a numeric vector, position list.

### Author(s)

Jianhong Ou

[Package InPAS version 1.18.0 Index]