Description Usage Arguments Value
View source: R/sample_parameter.R
This function samples the affinity and phylogeny scaling parameters from the posterior and constructs the posterior probability matrix 'P'. Dimension names are assigned from matrix 'Z'.
1 | sample_parameter(param, MODEL, Z, tree, size = 1000, weights = NULL)
|
param |
posterior parameter estimates generated by |
MODEL |
indicate model used: one of 'full', 'distance', 'affinity' |
Z |
bipartite interaction matrix |
tree |
'phylo' object representing rows of Z |
size |
the number of posterior samples to use for each parameter (default is 1000) |
weights |
indicator of weights to use (optional) |
Returns the posterior probability matrix 'P'
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.