log_like_Bernoulli: Bernoulli Log Likelihood

Description Usage Arguments

View source: R/helper_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)


logisticPCA documentation built on May 1, 2019, 10:12 p.m.