NegLLHOfSignature: Objective function for estimating a background signature from...

View source: R/SeparateBackground.R

NegLLHOfSignatureR Documentation

Objective function for estimating a background signature from multiple background spectra.

Description

Returns the negative log likelihood that the signature with an estimated negative binomial dispersion parameter, generated the observed (multiple) spectra given the likelihood of the observed total counts attributed to the signature.

Usage

NegLLHOfSignature(sig.and.nbinom.size, spectra)

Arguments

sig.and.nbinom.size

Concatenation of signature as a vector and the negative binomial dispersion parameter.For the dispersion parameter for the negative binomial distribution, smaller is more dispersed. See NegBinomial.

spectra

The observed spectra as an ICAMS catalog.

Value

-1 * the log likelihood that the the input signature, dispersion parameter, and mutation count generated the observed spectrum


steverozen/mSigBG documentation built on Nov. 4, 2022, 10:58 a.m.