summaryrefslogtreecommitdiffstats
path: root/R
diff options
context:
space:
mode:
authorGuillaume Horel <guillaume.horel@serenitascapital.com>2014-07-18 11:43:31 -0400
committerGuillaume Horel <guillaume.horel@serenitascapital.com>2014-07-18 11:43:31 -0400
commita2e904751abc48ca76745a0905586ab56f5325ca (patch)
tree48db3e715dfa206df8cda57ecac305fd0fd8f77d /R
parent91feca330d37900382a40c024446ecd5b2ff1042 (diff)
downloadlossdistrib-a2e904751abc48ca76745a0905586ab56f5325ca.tar.gz
wrong sign
Diffstat (limited to 'R')
-rw-r--r--R/tranche_functions.R2
1 files changed, 1 insertions, 1 deletions
diff --git a/R/tranche_functions.R b/R/tranche_functions.R
index cf7d904..cf3df0f 100644
--- a/R/tranche_functions.R
+++ b/R/tranche_functions.R
@@ -750,7 +750,7 @@ BCtranche.corr01 <- function(index, eps=0.01){
before <- BCtranche.pv(index)
index$rho[-1] <- index$rho[-1]+eps
after <- BCtranche.pv(index)
- return(before$bp-after$bp)
+ return(after$bp-before$bp)
}
EL <- function(index, discounted=TRUE, shortened=0){