This pulls out the top predicted interactions from a model

topPairs(P, Z, topX = 10)

Arguments

P

the estimated posterior probability interaction matrix

Z

the observed bipartite interaction matrix

topX

number of interactions to return (default is 10)

Value

Returns a datafame of Host, Parasite, and p(interaction) with length determined by topX (default is 10)

Examples

# NOT RUN {
topPairs(P, Z, topX=15)
# }