rpi0: Random generation for the pi_0 distribution.

Description Usage Arguments Value Examples

View source: R/functions.R

Description

Random generation for the π_0 distribution.

Usage

1
rpi0(n, n_targets, n_decoys)

Arguments

n

number of observations.

n_targets

number of observed target PSMs.

n_decoys

number of observed decoy PSMs.

Value

vector of random deviates. The length equals ‘n’.

Examples

1
2
3
## visualize the pi0 distribution when observing 10 targets and 3 decoys
x = rpi0(100000, 10 ,3 )
hist(x, breaks = 50 , xlab = 'pi0', ylab = 'counts')

compomics/search-all-assess-subset documentation built on May 13, 2019, 9:55 p.m.