Description Usage Arguments Details Value Author(s) References
This is a modification of the Bayesian approach from Hoff (2012) to allow for heteroscedastic columns. We start the missing values from the RUV4 solution.
1 2 3 4 5 6 7 8 9 10 11 |
Y21 |
Top left of matrix. |
Y31 |
Bottom left of matrix. |
Y32 |
Top right of matrix. |
k |
The rank of the mean matrix. |
nsamp |
A positive integer. The number of samples to draw. |
burnin |
A positive integer. The number of early samples to discard. |
keep |
A positive integer. We will same the updates of
|
print_update |
A logical. Should we print a text progress bar
to keep track of the Gibbs sampler ( |
plot_update |
A logical. Should we make some plots to keep
track of the Gibbs sampler ( |
The rejection sampler in rbmf.matrix.gibbs
almost always stalls, so I am removing it from exports for now.
A list with the following elements:
Y22_array
A three-dimensional array containing draws of
Y22. Y22[, , i]
contains the ith draw of Y22.
mu_psi_phi
A matrix with three columns. The rows are the
draws from the posterior. The first column is for the mean of
the singular values. The second column is for the precision of
the singular values. The last column is for the mean of the
variances.
neff_y22
The effective sample sizes from
Y22_array
as calculated by
effectiveSize
neff_mu_psi_phi
The effective sample sizes from
mu_psi_phi
as calculated by
effectiveSize
David Gerard
Hoff, P. D. 2012. "Model averaging and dimension selection for the singular value decomposition". Journal of the American Statistical Association. doi: 10.1198/016214506000001310
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.