normP: Normalize likelihoods and return probabilities

Description Usage Arguments Value Examples

View source: R/geneAttribution.R

Description

Normalize likelihoods and return probabilities

Usage

1
normP(pVector, minPP = 0)

Arguments

pVector

A numeric vector of pre-normalization likelihoods

minPP

A float. Genes with a posterior probability < minPP are lumped as "Other". Optional

Value

A sorted, numeric vector of normalized probabilities

Examples

1
2
normP(c(5, 1, 1, 1, 1, 1, 0.1))
normP(c(5, 1, 1, 1, 1, 1, 0.1), minPP=0.1)

geneAttribution documentation built on Nov. 8, 2020, 5:17 p.m.