Usage
getLikelihoods.NB(cD, prs, pET = "BIC", marginalise = FALSE, subset = NULL,
priorSubset = NULL, bootStraps = 1, conv = 1e-4, nullData = FALSE,
returnAll = FALSE, returnPD = FALSE, verbose = TRUE, discardSampling =
FALSE, cl, ...)
getLikelihoods.BB(cD, prs, pET = "BIC", marginalise = FALSE, subset =
NULL, priorSubset = NULL, bootStraps = 1, conv = 1e-04, nullData = FALSE,
returnAll = FALSE, returnPD = FALSE, verbose = TRUE, discardSampling =
FALSE, cl, ...)
getLikelihoods(cD, prs, pET = "BIC", marginalise = FALSE, subset = NULL,
priorSubset = NULL, bootStraps = 1, bsNullOnly = TRUE, conv = 1e-4, nullData = FALSE, weightByLocLikelihoods = TRUE, modelPriorSets = list(),
modelPriorValues = list(), returnAll = FALSE, returnPD = FALSE, verbose
= TRUE, discardSampling = FALSE, modelLikes = TRUE, cl = NULL, tempFile
= NULL, largeness = 1e+08)
Arguments
cD
An object of type countData
, or descending
from this class. prs
(Initial) prior probabilities for each of the groups in the
`cD' object. Should sum to 1, unless nullData is TRUE, in which
case it should sum to less than 1.
pET
What type of prior re-estimation should be
attempted? Defaults to "BIC"; "none" and "iteratively" are also
available.
marginalise
Should an attempt be made to numerically
marginalise over a prior distribution iteratively estimated from the
posterior distribution? Defaults to FALSE, as in general offers
little performance gain and increases computational cost considerably.
subset
Numeric vector giving the subset of counts for which
posterior likelihoods should be estimated.
priorSubset
Numeric vector giving the subset of counts which may be
used to estimate prior probabilities on each of the groups. See Details.
bootStraps
How many iterations of bootstrapping should be used
in the (re)estimation of priors in the negative binomial method.
bsNullOnly
If TRUE (default, bootstrap hyper-parameters based
on the likelihood of the null model and its inverse only; otherwise,
on the likelihood of all models.
conv
If not null, bootstrapping iterations will cease if the
mean squared difference between posterior likelihoods of consecutive
bootstraps drops below this value.
nullData
If TRUE, looks for segments or counts with no true
expression. See Details.
weightByLocLikelihoods
If a locLikelihoods slot is present in
the `cD' object, and nullData = TRUE, then the initial weighting on
nulls will be determined from the locLikelihoods slot. Defaults to TRUE.
modelPriorSets
If given, a list object, which defines subsets of
the data for which different priors on the different models might be
expected. See Details.
modelPriorValues
If given, a list object which defines priors
on the different models. See Details.
returnAll
If TRUE, and bootStraps > 1, then instead of returning a
single countData object, the function returns a list of countData
objects; one for each bootstrap. Largely used for debugging
purposes.
returnPD
If TRUE, then the function returns the (log)
likelihoods of the data given the models, rather than the posterior
(log) likelihoods of the models given the data. Not recommended for
general use.
verbose
Should status messages be displayed? Defaults to TRUE.
discardSampling
If TRUE, discards information about which data
rows are sampled to generate prior information. May slightly degrade
the results but reduce computational time required. Defaults to
FALSE.
modelLikes
If TRUE (default), returns likelihoods for each
model. If FALSE, returns likelihoods for each hyper-parameter, from
which the posterior joint distribution on hyper-parameters can be
inferred.
tempFile
Temporary file prefix for saving data
likelihoods. Primarily for debugging purposes at this
stage. Defaults to NULL, in which case no temporary data are saved.
largeness
The maximum size over which data likelihoods are
calculated. Objects larger than this are split. This is most useful
in combination with the saving of temporary files in the case of
excessively large analyses.
...
Any additional information to be passed to the
'getLikelihoods'
function by the now deprecated functions.