pVal {DMRScan}R Documentation

Method get pvalue

Description

Method get pvalue

Get p-values for a region

Get p-values for a list of regions (RegionList)

Usage

pVal(region, n = 12)

## S4 method for signature 'Region'
pVal(region, n = 12)

## S4 method for signature 'RegionList'
pVal(region, n = 12)

Arguments

region

An object of type Region or RegionList

n

The number of digits to be presented. Default is 10

Value

The reported p-value for a region

Examples

#Number of probes is n = 10
nCpG <- 10
region <- Region(tValues    = rnorm(nCpG),
                 position   = 1:nCpG,
                 chromosome = "3",
                 pVal       = runif(1))
## Pvalues for Region
pVal(region)

[Package DMRScan version 1.4.6 Index]