log_like_Bernoulli: Bernoulli Log Likelihood

Description Usage Arguments

View source: R/exponential_family_functions.R

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/genSupPCA documentation built on May 30, 2019, 11:43 a.m.