marginal_p_bernoulli: Marginal Probabilities for binary data

View source: R/marginal_p_bernoulli.R

marginal_p_bernoulliR Documentation

Marginal Probabilities for binary data

Description

Internal function to estimate the marginals for binary (bernoulli) data.

Usage

marginal_p_bernoulli(x_i, thetai)

Arguments

x_i

A single variable/column of data

thetai

Estimated parameters corresponding to the single variable/column of data provided to x_i

Details

Estimate the marginals for a single column of data x_i for each hidden variable with dimension dim_hidden. For discrete data this can be calculated directly from the data.

Value

A three dimensional array of marginals with dimensions: (n_hidden, n_samples, dim_hidden) - i.e. marginals for each data point in x_i given current n_hidden x dim_hidden parameter estimates


jpkrooney/rcorex documentation built on July 25, 2022, 1:37 a.m.