Skip to content

Commit 652e99d

Browse files
committed
fix Issue #27 with residuals() method
1 parent 6c172c5 commit 652e99d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

R/methods.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,8 @@ fitted.FDboost <- function(object, toFDboost = TRUE, ...) {
479479
residuals.FDboost <- function(object, ...){
480480

481481
if(!any(class(object)=="FDboostLong")){
482-
resid <- matrix(object$resid(), nrow=object$ydim[1])
482+
resid <- matrix(object$resid())
483+
resid <- matrix(resid, nrow = NROW(resid))
483484
resid[is.na(object$response)] <- NA
484485
}else{
485486
resid <- object$resid()

0 commit comments

Comments
 (0)