O'Reilly logo

Introduction to R for Quantitative Finance by Zsolt Tulassay, Dr. Kata Váradi, Péter Csóka, Michael Puhle, Márton Michaletzky, Gergely Daróczi, Dr. Edina Berlinger, Daniel Havran, Agnes Vidovics-Dancs

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Analysis of networks’ structure and detection of topology changes

Now, let us suppose we have access to a real-world database of an interbank market (randomized data for illustrative purpose), where banks lend to each other and lending banks report on their positions at the end of each day in the period of 2007-2010. The database consists of 50 banks and the maturity of the loans is one day. In order to manipulate the real-world networks in R, it is advisable to convert our data into a CSV file and save it into our working directory. The following table (Table 2) shows the top lines of our CSV file:

Bank

Partner

Amount

Interest

Year

Month

Day

1

21

5

7,9

2007

1

3

1

42

3

7,9

2007

1

3

10

11

0,35

7,8

2007

1

3

18

24

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required