Minor updates to pass CRAN checks
This commit is contained in:
parent
af0c8f2e96
commit
fd8621a88d
2 changed files with 3 additions and 2 deletions
|
@ -15,7 +15,8 @@ Copyright: All provided source code is copyrighted and owned by Joel Therrien.
|
||||||
Encoding: UTF-8
|
Encoding: UTF-8
|
||||||
LazyData: true
|
LazyData: true
|
||||||
Imports:
|
Imports:
|
||||||
rJava (>= 0.9-9)
|
rJava (>= 0.9-9),
|
||||||
|
stats (>= 3.4.0)
|
||||||
Suggests:
|
Suggests:
|
||||||
parallel,
|
parallel,
|
||||||
testthat,
|
testthat,
|
||||||
|
|
|
@ -81,7 +81,7 @@ integratedBrierScore <- function(responses, predictions, event, time, censoringD
|
||||||
java.censoringDistribution <- createRightContinuousStepFunction(censoringDistribution$x, censoringDistribution$y, defaultY = 1.0)
|
java.censoringDistribution <- createRightContinuousStepFunction(censoringDistribution$x, censoringDistribution$y, defaultY = 1.0)
|
||||||
|
|
||||||
} else if("stepfun" %in% class(censoringDistribution)){
|
} else if("stepfun" %in% class(censoringDistribution)){
|
||||||
x <- knots(censoringDistribution)
|
x <- stats::knots(censoringDistribution)
|
||||||
y <- censoringDistribution(x)
|
y <- censoringDistribution(x)
|
||||||
|
|
||||||
java.censoringDistribution <- createRightContinuousStepFunction(x, y, defaultY = 1.0)
|
java.censoringDistribution <- createRightContinuousStepFunction(x, y, defaultY = 1.0)
|
||||||
|
|
Loading…
Reference in a new issue