File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -555,7 +555,7 @@ FDboost <- function(formula, ### response ~ xvars
555555
556556 }
557557
558- if (scalarResponse & numInt != " equal" )
558+ if (scalarResponse & ! identical( numInt , " equal" ) )
559559 stop(" Integration weights numInt must be set to 'equal' for scalar response." )
560560
561561 # # extract time(s) from timeformula
@@ -948,10 +948,8 @@ FDboost <- function(formula, ### response ~ xvars
948948 length(numInt ) == length(time )
949949 if (! .numInt_len_check )
950950 stop(" Length of integration weights and time vector are not equal." )
951- weights <- weights * numInt
952951 data_weights <- numInt
953952 if (! is.null(ydim )){ # # only blow up for array model
954- w <- rep(weights , each = nr )
955953 data_weights <- rep(data_weights , each = nr )
956954 }
957955 }else {
@@ -960,9 +958,9 @@ FDboost <- function(formula, ### response ~ xvars
960958 if (! is.numeric(time ))
961959 stop(" Riemann integration weights only implemented for a single numeric time variable." )
962960 data_weights <- as.vector(integrationWeights(X1 = response , time , id = id ))
963- w <- w * data_weights
964961 }
965962 }
963+ w <- w * data_weights
966964
967965 # ## set weights of missing values to 0
968966 if (sum(is.na(dresponse )) > 0 ){
You can’t perform that action at this time.
0 commit comments