summaryrefslogtreecommitdiffstats
path: root/R/tranche_functions.R
diff options
context:
space:
mode:
authorGuillaume Horel <guillaume.horel@serenitascapital.com>2014-05-16 10:47:39 -0400
committerGuillaume Horel <guillaume.horel@serenitascapital.com>2014-05-16 10:47:39 -0400
commitb995b41f254cbf2eddd9cb0f243933edf713f3e4 (patch)
tree3fbff4e1c63f8e83cc5555094274c2f6d7db29d2 /R/tranche_functions.R
parente6228dacf2fef4b77d994ec99a5886956cf6ab7b (diff)
downloadlossdistrib-b995b41f254cbf2eddd9cb0f243933edf713f3e4.tar.gz
remove stray character
Diffstat (limited to 'R/tranche_functions.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 7ef68e1..5764281 100644
--- a/R/tranche_functions.R
+++ b/R/tranche_functions.R
@@ -723,7 +723,7 @@ EL <- function(index){
## given the default curves and recovery
## should be very close to the protection leg of the portfolio of cds
## index should be a list with issuerweights, recov, defaultprob and cs parameters
- ELvec <- as.numeric(crossprod(index$issuerweights * (1-index$recov),
+ ELvec <- as.numeric(crossprod(index$issuerweights * (1-index$recov), index$defaultprob))
return( sum(index$cs$df*diff(c(0, ELvec))) )
}