Skip to content

Commit

Permalink
allow scores keep argument to be a list
Browse files Browse the repository at this point in the history
  • Loading branch information
tagteam committed Aug 21, 2024
1 parent 45e99c1 commit 06d1a6b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/Score.R
Original file line number Diff line number Diff line change
Expand Up @@ -786,7 +786,7 @@ c.f., Chapter 7, Section 5 in Gerds & Kattan 2021. Medical risk prediction model
}
# }}}
# {{{ resolve keep statements
if (!missing(keep) && is.character(keep)){
if (!missing(keep) && is.character(unlist(keep))){
if("residuals" %in% tolower(keep)) keep.residuals=TRUE else keep.residuals = FALSE
if("vcov" %in% tolower(keep)) keep.vcov=TRUE else keep.vcov = FALSE
if ("splitindex" %in% tolower(keep)) keep.splitindex=TRUE else keep.splitindex = FALSE
Expand Down Expand Up @@ -1472,6 +1472,7 @@ 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
}
browser()
if (cens.type=="rightCensored")
crossvalPerf[["Calibration"]]$plotframe <- merge(jack,crossvalPerf[["Calibration"]]$plotframe,by=c("riskRegression_ID","times"))
}
Expand Down

0 comments on commit 06d1a6b

Please sign in to comment.