@@ -229,7 +229,7 @@ hyper_signal <- function(mf, vary, inS="smooth", knots = 10, boundary.knots = NU
229229 # stop("variable names and knot names must be the same")
230230 # if (is.list(boundary.knots)) if(!all(names(boundary.knots) %in% nm))
231231 # stop("variable names and boundary.knot names must be the same")
232- if (! identical (center , FALSE ) && cyclic )
232+ if (! isFALSE (center ) && cyclic )
233233 stop(" centering of cyclic covariates not yet implemented" )
234234 # ret <- vector(mode = "list", length = length(nm))
235235 # names(ret) <- nm
@@ -363,7 +363,7 @@ X_bsignal <- function(mf, vary, args) {
363363
364364 # ####################################################
365365 # ###### K <- crossprod(K) has been computed before!
366- if (! identical (args $ center , FALSE )) {
366+ if (! isFALSE (args $ center )) {
367367
368368 # ## L = \Gamma \Omega^1/2 in Section 2.3. of
369369 # ## Fahrmeir et al. (2004, Stat Sinica); "spectralDecomp"
@@ -1102,7 +1102,7 @@ hyper_hist <- function(mf, vary, knots = 10, boundary.knots = NULL, degree = 3,
11021102 # stop("variable names and knot names must be the same")
11031103 # if (is.list(boundary.knots)) if(!all(names(boundary.knots) %in% nm))
11041104 # stop("variable names and boundary.knot names must be the same")
1105- if (! identical (center , FALSE ) && cyclic )
1105+ if (! isFALSE (center ) && cyclic )
11061106 stop(" centering of cyclic covariates not yet implemented" )
11071107 # ret <- vector(mode = "list", length = length(nm))
11081108 # names(ret) <- nm
@@ -1990,7 +1990,7 @@ X_bbsc <- function(mf, vary, args) {
19901990 if (vary != " " && ncol(by ) > 1 ){ # build block diagonal penalty
19911991 suppressMessages(K <- kronecker(diag(ncol(by )), K ))
19921992 }
1993- if (! identical (args $ center , FALSE )) {
1993+ if (! isFALSE (args $ center )) {
19941994 # ## L = \Gamma \Omega^1/2 in Section 2.3. of Fahrmeir et al.
19951995 # ## (2004, Stat Sinica), always
19961996 L <- eigen(K , symmetric = TRUE )
@@ -2010,7 +2010,7 @@ X_bbsc <- function(mf, vary, args) {
20102010 # ## <SB> Calculate constraints
20112011
20122012 # # for center = TRUE, design matrix does not contain constant part
2013- if (args $ center != FALSE ){
2013+ if (! isFALSE( args $ center ) ){
20142014
20152015 # # center the columns of the design matrix
20162016 # # Z contains column means
0 commit comments