R/ebayes-helpers.R
ebayes.Rd
ebayesControl
is a named list with (optional) components 'method' (one of 'MOM' or 'MLE') and 'model' (one of 'H0' or 'H1')
method MOM uses a method-of-moments estimator, while MLE using the marginal likelihood.
H0 model estimates the precisions using the intercept alone in each gene, while H1 fits the full model specified by mm
ebayes(assay_t, ebayesControl, mm, truncate = Inf)
cells X genes matrix
list with (optional) components 'method', 'model'. See details.
a model matrix, used when model='H1'
.
Genes with sample precisions exceeding this value are discarded when estimating the hyper parameters
numeric
of length two, giving the hyperparameters in terms of a variance (v
) and prior observations (df
), inside a structure
, with component hess
, giving the Fisher Information of the hyperparameters.