scale_interaction_table: Scale interaction strengths within an interaction table

View source: R/scaling.R

scale_interaction_tableR Documentation

Scale interaction strengths within an interaction table

Description

Off-diagonal values are scaled by dividing them by the absolute value of their corresponding diagonal element. The resulting scaled interaction strengths are thus defined as: \bar{a_{ij}} = \frac{a_{ij}}{|a_{ii}|} (Neutel and Thorne 2016).

Usage

scale_interaction_table(interaction_table, r_factor)

Arguments

interaction_table

table of pairwise interactions

r_factor

factor that is mulitplied with the mean interaction strength to replace missing self-regulation values

Details

For each pairwise interaction, the function identifies the corresponding self-regulation term needed to scale an interspecific interaction strength. If the self-regulation value is missing, it is replaced by the mean interaction strength multiplied with a specified factor.

Value

interaction table data.frame with two new columns a_ij_scaled and a_ji_scaled


franzikoch/Feedbackloops documentation built on July 1, 2023, 12:42 p.m.