Description Usage Arguments Value Author(s) Examples
Construct approximate samples from the posterior distribution of the parameters and latent variables in an eigenmodel for symmetric relational data.
1 2 | eigenmodel_mcmc(Y, X = NULL, R = 2, S = 1000, seed = 1, Nss = min(S,
1000), burn = 100)
|
Y |
an n x n symmetric matrix with missing diagonal entries. Off-diagonal missing values are allowed. |
X |
an n x n x p array of regressors |
R |
the rank of the approximating factor matrix |
S |
number of samples from the Markov chain |
seed |
a random seed |
Nss |
number of samples to be saved |
burn |
number of initial scans of the Markov chain to be dropped |
a list with the following components:
Z_postmean |
posterior mean of the latent variable in the probit specification |
ULU_postmean |
posterior mean of the reduced-rank approximating matrix |
Y_postmean |
the original data matrix with missing values replaced by posterior means |
L_postsamp |
samples of the eigenvalues |
b_postsamp |
samples of the regression coefficients |
Y |
original data matrix |
X |
original regressor array |
S |
number of scans of the Markov chain |
Peter Hoff
1 2 3 4 5 6 7 8 9 10 11 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.