This pulls out the top predicted interactions from a model
topPairs(P, Z, topX = 10)
P | the estimated posterior probability interaction matrix |
---|---|
Z | the observed bipartite interaction matrix |
topX | number of interactions to return (default is 10) |
Returns a datafame of Host, Parasite, and p(interaction) with length determined by topX (default is 10)
# NOT RUN { topPairs(P, Z, topX=15) # }