calculateParamDist {ChIPexoQual} | R Documentation

## calculateParamDist `calculateParamDist` calculates the quality parameters of one iteration. This function samples `nregions` rows from the stat matrix and fits the linear model `lm(d ~ 0 + u + w)`

### Description

calculateParamDist

`calculateParamDist` calculates the quality parameters of one iteration. This function samples `nregions` rows from the stat matrix and fits the linear model `lm(d ~ 0 + u + w)`

### Usage

    calculateParamDist(i, stats, nregions)

### Arguments

`i` | a numeric value indicating the current iteration.
`stats` | a `data.table` object with the response and covariates for the model
`nregions` | a numeric value indicating the number of regions sampled.

### Value

a `data.table` with both parameters and some extra info

### Examples

    data("exoExample")
    DT <- formatRegions(exoExample)
    calculateParamDist(1,DT,100)

[Package ChIPexoQual version 1.11.0 Index]