Learn R Programming

lame (version 1.3.4)

rZ_cbin_bip_fc: Sample Z under bipartite censored binary nominations (rectangular)

Description

Rectangular analogue of rZ_cbin_fc. Row-wise constraints: Y_ij = 1 => Z_ij > 0; Y_ij = 0 & odobs_i < odmax_i => Z_ij < 0; nominated alters dominate non-nominated alters within the row. With rho = 0 there is no reciprocity term.

Usage

rZ_cbin_bip_fc(Z, EZ, Y, odmax, odobs)

Value

updated nA x nB latent matrix.

Arguments

Z

current rectangular latent matrix (nA x nB).

EZ

expected value (nA x nB).

Y

observed 0/1 matrix (nA x nB); NA entries resampled from the unconstrained prior.

odmax

row-wise maximum nominations (length nA or scalar).

odobs

row-wise observed outdegree (length nA).

Author

Cassy Dorff, Shahryar Minhas, Tosin Salau