View source: R/Randomization_functions.R
randomize_minimal | R Documentation |
In this version, pairs are kept together and their above-below diagonal orientation is also preserved.
randomize_minimal(df, ij_col, ji_col)
df |
interaction table (created by interaction_strenghts()) |
ij_col |
column of |
ji_col |
column of |
In the interaction table this means the following: a_{ij}
and a_{ji}
values that appear in the same row in the original table, will also be in the same
row in the pairwise randomised table. In contrast to the pairwise (weak) randomisation,
they cannot switch from a_{ij}
to a_{ji}
or vice versa. Only the order of rows
in the table is randomised.
The function returns a new interaction table that contains two new columns $a_ij_min and $a_ji_min that contains the same values as the original columns but in a different order.
To get a minimally randomised Jacobian matrix, use assemble_jacobian() and specify the new columns.
Interaction table with two additional columns $a_ij_min and $a_ji_min, containing randomised interaction strengths
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.