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`.

sample_parameter(param, MODEL, Z, tree, size = 1000, weights = NULL)

Arguments

param

posterior parameter estimates generated by network_est

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)

Value

Returns the posterior probability matrix 'P'

Examples

# NOT RUN {
# }