diff --git a/DESCRIPTION b/DESCRIPTION index 0973bd4..b8829b0 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -15,7 +15,8 @@ Copyright: All provided source code is copyrighted and owned by Joel Therrien. Encoding: UTF-8 LazyData: true Imports: - rJava (>= 0.9-9) + rJava (>= 0.9-9), + stats (>= 3.4.0) Suggests: parallel, testthat, diff --git a/R/cr_integratedBrierScore.R b/R/cr_integratedBrierScore.R index ae825dc..9525238 100644 --- a/R/cr_integratedBrierScore.R +++ b/R/cr_integratedBrierScore.R @@ -81,7 +81,7 @@ integratedBrierScore <- function(responses, predictions, event, time, censoringD java.censoringDistribution <- createRightContinuousStepFunction(censoringDistribution$x, censoringDistribution$y, defaultY = 1.0) } else if("stepfun" %in% class(censoringDistribution)){ - x <- knots(censoringDistribution) + x <- stats::knots(censoringDistribution) y <- censoringDistribution(x) java.censoringDistribution <- createRightContinuousStepFunction(x, y, defaultY = 1.0)