aboutsummaryrefslogtreecommitdiffstats
path: root/R/calibration.R
diff options
context:
space:
mode:
Diffstat (limited to 'R/calibration.R')
-rw-r--r--R/calibration.R2
1 files changed, 1 insertions, 1 deletions
diff --git a/R/calibration.R b/R/calibration.R
index 9eeb03b5..da9aeb49 100644
--- a/R/calibration.R
+++ b/R/calibration.R
@@ -77,7 +77,7 @@ set.tranchedata <- function(index, tradedate){
index$quotes$price <- snacpv(index$cs, index$quotes$refspread[1]*1e-4, index$quotes$spread,
0.4, tradedate)
}
- if(length(indexpv(index, tradedate=tradedate, check=TRUE))==1){
+ if(length(indexpv(index, tradedate=tradedate)) == 1) {
stop("why am I stopping?")
}
tweak <- tweakcurves(index, tradedate)