pss.rc: PSS for rows and columns

View source: R/pss_functions.R

pss.rcR Documentation

PSS for rows and columns

Description

PSS for the rows and columns of an interaction matrix. PSS is a standardized effect size (SES) of klMPD.

Usage

pss.rc(samp, phyl.rows, phyl.cols, q.rows, q.cols)

Arguments

samp

Required. A matrix. Elements of the matrix are interaction frequencies.

phyl.rows

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

phyl.cols

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

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

q.cols

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.

Value

A list with two dataframes (rows and columns) with results for each species in samp.

Author(s)

Carlos J. Pardo De la Hoz


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