R/loglik.R

Defines functions lik_glmpca_pois_log

# Return the log-likelihood for the GLM-PCA model when Y is a dense
# matrix; i.e., when is.matrix(Y) is TRUE.
lik_glmpca_pois_log <- function(Y, LL, FF, const) {
  H <- crossprod(LL,FF)
  return(sum(Y*H - exp(H)) - const)
}

Try the fastglmpca package in your browser

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

fastglmpca documentation built on May 29, 2024, 10:49 a.m.