scale_matrix: Scale interaction strengths within a Jacobian matrix

View source: R/scaling.R

scale_matrixR Documentation

Scale interaction strengths within a Jacobian matrix

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_matrix(A, aii = 0)

Arguments

A

A Jacobian matrix, with non-zero diagonal elements

aii

determines the value of diagonal elements

Details

This does not work if there is a 0 on the diagonal ! Replace missing elements with replace_zeros() before scaling !.

Value

The same Jacobian matrix with scaled interaction strengths and -1 on the diagonal


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