We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 652e99d commit 380b022Copy full SHA for 380b022
1 file changed
R/methods.R
@@ -480,7 +480,8 @@ residuals.FDboost <- function(object, ...){
480
481
if(!any(class(object)=="FDboostLong")){
482
resid <- matrix(object$resid())
483
- resid <- matrix(resid, nrow = NROW(resid))
+ ydim <- ifelse(is.null(object$ydim[1]), NROW(resid), object$ydim[1])
484
+ resid <- matrix(resid, nrow = ydim)
485
resid[is.na(object$response)] <- NA
486
}else{
487
resid <- object$resid()
0 commit comments