sample_parameter: A function to sample the estimated parameters and construct...

Description Usage Arguments Value

View source: R/sample_parameter.R

Description

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

Usage

1
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'


melmasri/HPprediction documentation built on May 2, 2020, 11:09 a.m.