R for simulation

From InterSciWiki

Jump to: navigation, search

On Pet, Junij 29, 2007 6:48 am, Doug White wrote:

> what do you think is the best approach with respect to the matrix library > in getting the feedback network simulation in R going again... bring the > code into line with R2.2 or to install the older matrix 2.1 library for > compatability?

Dear Doug.

The easiest way would be to install the old library (I think this had to be Matrix_0.8-19) and run it there. I actually haven't even try to adapt the whole function to the newer versions.

http://intersci.ss.uci.edu/wiki/pw/Matrix_0.8-19.tar.gz from [1]

When I tried to run the model again, I made another program in Python (that I attach). It is very similar to the R one (though it does not use matrices). Unfortunatelly I didn't make any real documentation for it and I really don't have time for it now.

If you want to run the model in Python, then another Python library "networkx" (for working with Python graph representations) has to be installed (it can be obtained from the internet). The solution

I never tried to adapt the functions to newer R "matrix" libraries. They seem quite a bit different from the one, that I used in Santa Fe, so I wouldn't really recommend doing that.

Best, Natasa

http://intersci.ss.uci.edu/wiki/pub/feedback.py

http://intersci.ss.uci.edu/wiki/pub/to_Pajek.py

Personal tools