Description Usage Arguments Value Author(s)
View source: R/srcLineagePulse_fitMeanDispersion.R
Log likelihood of (zero inflated) negative binomial model. This function is designed to allow numerical optimisation of mean and dispersion paramater model on single gene given the drop-out model.
1 2 3 4 | evalLogLikMuDispGeneFit(vecTheta, vecCounts, lsMuModelGlobal, lsDispModelGlobal,
vecTimepoints, vecindTimepointAssign, matDropoutLinModel,
vecPiConstPredictors, lsDropModelGlobal, vecPiParam = NULL, vecidxNotZero,
vecidxZero)
|
vecTheta |
(numeric vector dispersion (1) and impulse parameters (6)) Dispersion and mean parameter estimates. |
vecCounts |
(count vector number of cells) Observed read counts, not observed are NA. |
lsMuModelGlobal |
(list) Object containing meta-data of gene-wise mean parameter models. |
lsDispModelGlobal |
(list) Object containing meta-data of gene-wise dispersion parameter models. |
vecTimepoints |
(numerical vector number of unique time coordinates) Unique (pseudo)time coordinates of cells. |
vecindTimepointAssign |
(numeric vector number samples) Index of time point assigned to cell in list of sorted time points. |
matDropoutLinModel |
(matrix number of cells x number of predictors) Logistic linear model parameters of the dropout rate as a function of the mean and constant gene-wise coefficients. |
vecPiConstPredictors |
(numeric vector constant gene-wise coefficients) Constant gene-wise coeffiecients, i.e. predictors which are not the offset and not the mean parameter. |
lsDropModelGlobal |
(list) Object containing meta-data of cell-wise drop-out parameter models. |
vecPiParam |
(numeric vector number of observations) Pre-evaluated drop-out model if model is not a function on the mean parameter to be fit. |
vecidxNotZero |
(index vector vector number of cells) Observation which are larger than zero. |
vecidxZero |
(index vector number of cells) Observation which are zero. |
scaLogLik (scalar) Value of cost function (likelihood) for given gene.
David Sebastian Fischer
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.