R/prepareScoreMat.R

Defines functions prepareScoreMat

Documented in prepareScoreMat

#' Prepare a helper matrix for score function evaluation under quasi-likelihood
#'
#' @inheritParams prepareJacMat
#'
#' @return The helper matrix
prepareScoreMat = function(data, mu, meanVarTrend, CompMat, libSizes){
    (data - mu)*mu/meanVarTrend(c(CompMat), libSizes = libSizes)
}

Try the combi package in your browser

Any scripts or data that you put into this service are public.

combi documentation built on Nov. 8, 2020, 5:34 p.m.