summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Horel <guillaume.horel@serenitascapital.com>2014-08-20 16:48:34 -0400
committerGuillaume Horel <guillaume.horel@serenitascapital.com>2014-08-20 16:48:34 -0400
commitadf5f229e7858c6b9967c57fe978bb823dc53c14 (patch)
treeb9351632dcd37ac9d82526db90057dcdad090955
parente3f29ddde286c4011590ad83916777b3e519f8c7 (diff)
downloadlossdistrib-adf5f229e7858c6b9967c57fe978bb823dc53c14.tar.gz
n.credit wasn't declared
-rw-r--r--R/tranche_functions.R3
1 files changed, 2 insertions, 1 deletions
diff --git a/R/tranche_functions.R b/R/tranche_functions.R
index 787d64a..ca8f98c 100644
--- a/R/tranche_functions.R
+++ b/R/tranche_functions.R
@@ -1054,7 +1054,8 @@ MFrecovery <- function(index, defaultprobmod){
return( Rstoch )
}
-MFdist <- function(index){
+MFlossdist <- function(index){
+ n.credit <- length(index$issuerweights)
rho <- rep(0.45, n.credit)
defaultprobmod <- MFupdate.probC(index$Z, index$w.mod, rho, index$defaultprob)
n.credit <- length(index$issuerweights)