View source: R/reconstruction.R
reconstruction | R Documentation |
reconstruction
returns the full data reconstruction based on given
posterior samples.
reconstruction(res, average = TRUE)
res |
The sampled model from function |
average |
If TRUE (default), averages the reconstruction over the posterior predictive samples. If set to FALSE, the output may require a large amount of memory. In case of large input data, we recommend acquiring the posterior predictive samples for subsets of data at a time, based on this implementation. |
The data reconstruction, a numeric N \times \sum_{m=1}^M D_m
matrix, if average is TRUE (default). Otherwise, the reconstruction is a
N \times \sum_{m=1}^M D_m \times Npost
array, with posterior samples
in the third dimension. If the input data has been paired in two modes, the
output will be a list of length 2, one element corresponding to each mode.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.