R/sample_parameter.R
sample_parameter.RdThis 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`.
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'
# NOT RUN {
# }