@@ -582,7 +582,7 @@ FDboost <- function(formula, ### response ~ xvars
582582 allCovs <- unique(c(nameid , all.vars(formula )))
583583 if (length(allCovs ) > 1 ){
584584 data <- data [allCovs [! allCovs %in% c(yname , nameyind )] ]
585- if ( any(is.na( names(data ) )) ) data <- data [ ! is.na(names(data )) ]
585+ if ( anyNA( names(data )) ) data <- data [ ! is.na(names(data )) ]
586586 }else {
587587 data <- list (NULL ) # <SB> intercept-model without covariates
588588 }
@@ -636,7 +636,7 @@ FDboost <- function(formula, ### response ~ xvars
636636 stopifnot(all(length(response ) == sapply(time , length )) & length(response ) == length(id )) else
637637 stopifnot(length(response ) == length(time ) & length(response ) == length(id ))
638638
639- if (any(is.na( response ) )) warning(" For non-grid observations the response should not contain missing values." )
639+ if (anyNA( response )) warning(" For non-grid observations the response should not contain missing values." )
640640 if ( ! all(sort(unique(id )) == seq_along(unique(id ))) ) stop(" id has to be integers 1, 2, 3,..., N." )
641641
642642 nr <- length(response ) # total number of observations
@@ -1045,7 +1045,7 @@ FDboost <- function(formula, ### response ~ xvars
10451045 }
10461046 # meanY <- sapply(1:nc, function(i) offsetFun(responseInter[,i], 1*!is.na(responseInter[,i])))
10471047
1048- if ( is.null(meanY ) || any(is.na( meanY ) ) ){
1048+ if ( is.null(meanY ) || anyNA( meanY ) ){
10491049 warning(" Mean offset cannot be computed by family@offset(). Use a weighted mean instead." )
10501050 meanY <- c()
10511051 for (i in 1 : nc ){
0 commit comments