Skip to content

Commit

Permalink
fixing bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
tagteam committed Oct 23, 2024
1 parent 4fc6193 commit 2dafdaf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
4 changes: 0 additions & 4 deletions R/Score.R
Original file line number Diff line number Diff line change
Expand Up @@ -1471,10 +1471,6 @@ c.f., Chapter 7, Section 5 in Gerds & Kattan 2021. Medical risk prediction model
if (keep.residuals[[1]]==FALSE && split.method$name[[1]]=="LeaveOneOutBoot"){
crossvalPerf$Brier$Residuals <- NULL
}
<<<<<<< HEAD
## browser() [BRICE: comment browser]
=======
>>>>>>> d4d6e60 (jack and glmnet)
if (cens.type=="rightCensored")
crossvalPerf[["Calibration"]]$plotframe <- merge(jack,crossvalPerf[["Calibration"]]$plotframe,by=c("riskRegression_ID","times"))
}
Expand Down
6 changes: 3 additions & 3 deletions R/plotCalibration.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
## author: Thomas Alexander Gerds
## created: Feb 23 2017 (11:15)
## Version:
## last-updated: Oct 22 2024 (12:07)
## last-updated: Oct 23 2024 (11:01)
## By: Thomas Alexander Gerds
## Update #: 411
## Update #: 412
#----------------------------------------------------------------------
##
### Commentary:
Expand Down Expand Up @@ -197,7 +197,7 @@ plotCalibration <- function(x,
pframe <- x$Calibration$plotframe
if (is.null(pframe))
stop("Object has no information for calibration plot.\nYou should call the function \"riskRegression::Score\" with plots=\"calibration\".")
if (response.type %in% c("binary", "competing.risks"))
if (x$response.type %in% c("binary", "competing.risks"))
Rvar <- grep("^(riskRegression_event|pseudovalue)$",names(pframe),value=TRUE)[[1]]
else
Rvar <- grep("^(riskRegression_status|pseudovalue)$",names(pframe),value=TRUE)[[1]]
Expand Down

0 comments on commit 2dafdaf

Please sign in to comment.