Learn R Programming

logisticPCA (version 0.2)

log_like_Bernoulli: Bernoulli Log Likelihood

Description

Calculate the Bernoulli log likelihood of matrix

Usage

log_like_Bernoulli(x, theta, q)

Arguments

x
matrix with all binary entries
theta
estimated natural parameters with same dimensions as x
q
instead of x, you can input matrix q which is -1 if x = 0, 1 if x = 1, and 0 if is.na(x)