pss.r: PSS for rows of a matrix

pss.rR Documentation

PSS for rows of a matrix

Description

PSS index for the taxa or sites/communities in the rows of an interaction matrix or community data matrix (CDM). This is a standardized effect size of klMPD.

Usage

pss.r(samp, phyl, q, runs = 999)

Arguments

samp

Required. A matrix or dataframe with focal taxa (interaction networks) or sites/communities (CDM) as rows, and partner taxa as columns. Elements of the matrix are interaction frequencies (for interaction matrices), or site-specific species abundances (CDM)

phyl

Required. An object of class phylo. This is a phylogenetic tree that includes all the taxa in the columns of samp. This tree may have taxa not included in samp.

q

Optional. A named numerical vector with the relative availabilities (i.e., sum(q) = 1) of the taxa in the columns of samp. Default is to estimate these values from interaction frequencies or relative species abundances summed across the matrix.

runs

Optional. The number of randomizations to estimate the null distribution of klMPD values used to calculate the SES. Default is 999 runs.

Value

A dataframe with results for each species or site/community in the rows of samp.

Author(s)

Carlos J. Pardo De la Hoz


cjpardodelahoz/pss documentation built on Nov. 21, 2022, 11:10 p.m.