Skip to content

Commit

Permalink
fix: bootstrap adapt to exported cutpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
sgibb committed May 25, 2022
1 parent 5b65b92 commit bdf52e0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: ameld
Title: Data and Model of End-Stage Liver Disease used in the AMPEL Project
Version: 0.0.20
Version: 0.0.21
Description:
A dataset of patients evaluated for liver transplantation at the
University Hospital Leipzig from November 2012 to June 2015.
Expand Down
5 changes: 5 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

## Changes in development

## Changes in 0.0.21

- Fix `bootstrap`: adapt to exported `cutpoint` function
(error was missing `.cutpoint`).

## Changes in 0.0.20

- Add grouping variable `f` to bootstrap output.
Expand Down
2 changes: 1 addition & 1 deletion R/bootstrap.R
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ bootstrap <- function(x, y, fun = rcv.glmnet,
ps <- predict(
fit, x = x, y = y, newx = x, type = "survival", times = times, s = s
)
ctpnts <- .cutpoints(ps, n = m)
ctpnts <- cutpoints(ps, n = m)
f <- .cut(ps, ctpnts)
apparent.err <- .prediction_error(
x = x, y = y, fit = fit, cutpoints = ctpnts, times = times, s = s
Expand Down

0 comments on commit bdf52e0

Please sign in to comment.