log_like_Bernoulli: Bernoulli Log Likelihood

Description Usage Arguments

Description

Calculate the Bernoulli log likelihood of matrix

Usage

1
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)


andland/generalizedPCA documentation built on May 12, 2019, 2:42 a.m.