This function ensures that the eigenvalues of the network structure matrix are smaller or equal to 1, thereby ensuring stationarity of the regression. This is done by removing edges at random until the condition is satisfied.

1 | ```
fix_eigenvalues(network, q, gauss_weights)
``` |

`network` |
Original network structure, a matrix of size NumNodes by NumNodes. |

`q` |
Number of nodes. |

`gauss_weights` |
If |

Returns a network with fewer eigenvalues than the original network, but satisfying the stationarity condition.

Frank Dondelinger

`generateNetwork`

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

All documentation is copyright its authors; we didn't write any of that.