Studying crisis and risk indexes using R.