getVB: Use ridge regression to shrink the variance

View source: R/main.R

getVBR Documentation

Use ridge regression to shrink the variance

Description

Use ridge regression to shrink the variance

Usage

getVB(count, fit0, design0)

Arguments

count

matrix, normalized read count, row-peaks, col-samples

fit0

object from lmFit

design

integer The length of peak threshold (>2)

Value

list - coefB matrix, coefficient of ridge regression - varBeta matrix, residual variance of coefficient - lambda vector, the lambda used in ridge regression

Examples

bv = getVB(count, fit0, design)


yancychy/DiffChIPL documentation built on Dec. 24, 2024, 11:26 p.m.