neg_loglikelihood: Calculate negative penalized likelihood, used for calls to...

Description Usage Arguments Value

View source: R/BFA.R

Description

The penalized likelihood function: f(A,Z,β,O,U) = ∑ [lnP(B;A,Z,U,V,β,γ)]_ij - ε_1 * ||A||_2^2 - ε_2 * ||Z||_2^2 - ε_3*||β||_2^2 - ε_2 * ||γ||_2^2

Usage

1
neg_loglikelihood(parameters, modelEnv)

Arguments

parameters

Vectorized parameter space.

modelEnv

Environment variable contains parameter space, and global variables such as N,G,C,detection matrix B, etc

Value

Scalar penalized likelihood


quon-titative-biology/bfa documentation built on March 18, 2020, 11:53 a.m.