calc_bern_prob_binary: Calculate a bernoulli probability for assigning e_it = 0 v....

Description Usage Arguments Value

Description

Calculate a bernoulli probability for assigning e_it = 0 v. 1.

Usage

1
calc_bern_prob_binary(evec, Gvec, beta, betavec, y, theta)

Arguments

evec

a vector e[-i, t] from the e matrix

Gvec

a vector G[-i, i] from the graph matrix G

beta

a scalar (on the diagonal) beta[i, i] from beta matrix

betavec

a vector betamat[-i, i] from beta matrix

y

a scalar, the [i,t] entry of data matrix

theta

sampling parameters, a list

Value

a scalar probability


fboehm/mitra2013 documentation built on May 16, 2019, 11:10 a.m.