aboutsummaryrefslogtreecommitdiffstats
path: root/R
diff options
context:
space:
mode:
Diffstat (limited to 'R')
-rw-r--r--R/cds_functions_generic.R2
1 files changed, 1 insertions, 1 deletions
diff --git a/R/cds_functions_generic.R b/R/cds_functions_generic.R
index 3bbc8a01..d4c6e916 100644
--- a/R/cds_functions_generic.R
+++ b/R/cds_functions_generic.R
@@ -498,7 +498,7 @@ bondhazardrate.shaped <- function(collateral, shape, R=0.4, alpha=0.25, beta=15)
sc <- new("shapedcurve", h=0.05, shape=shape, alpha=alpha, beta=beta)
eps <- 1e-8
counter <- 0
- if(collateral$price<1){
+ if(collateral$price<2){
cat("price is too low\n")
sc <- new("shapedcurve", h=1e6, shape=shape, alpha=alpha, beta=beta)
return( shapedtodpc(cs, sc) )