find_s | R Documentation |
For unstable matrices, diagonal values are incrementally increased by multiplying it with a factor s, until its dominant eigenvalue becomes negative (=the matrix becomes stable).
find_s(Jacobian, step_size = 0.01, start_s = 1, max_s = 1000)
Jacobian |
A Jacobian matrix |
step_size |
Amount by which s is increases in each step |
start_s |
Starting value of s |
max_s |
Maximum possible s value. If the matrix is still not stable, NA is returned |
This will not work, if the diagonal contains zeros! Replace missing values before calculating s*!
For stable matrices, diagonal values are incrementally decrease, until the dominant eigenvalue becomes positive (= the matrix is unstable)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.