betaparametw: Estimation of proportion weights

View source: R/betaparametw.R

betaparametwR Documentation

Estimation of proportion weights

Description

Function betaparametw is used to calculate weight.

Usage

betaparametw(xn, a, b)

Arguments

xn

vector of m library sizes. Library size is sum of counts over the whole library.

a

parameter alpha in beta distribution derived from output of function betaparametab

b

parameter beta in beta distribution derived from output of function betaparametab

Details

alpha and beta are used to calculate weight. Then weight is in turn used to correct bias of estimation of alpha and beta in betaparametab function.

Value

return weight(W)

Author(s)

Yuan-De Tan tanyuande@gmail.com

References

Baggerly KA, Deng L, Morris JS, Aldaz CM (2003) Differential expression in SAGE: accounting for normal between-library variation. Bioinformatics, 19: 1477-1483.
Yuan-De Tan, Anita M. Chandler, Arindam Chaudhury, and Joel R. Neilson(2015) A Powerful Statistical Approach for Large-scale Differential Transcription Analysis.Plos One. 2015 DOI: 10.1371/journal.pone.0123658.

See Also

betaparametab,betaparametVP.

Examples

XX<-c(2000,2000,2000)
a<-1.1458
b<-6.4932
betaparametw(xn=XX,a=a,b=b)
#[1] 0.3333333 0.3333333 0.3333333

Yuande/MBttest documentation built on Aug. 25, 2022, 12:58 a.m.