Skip to content

Commit d948f05

Browse files
committed
remove unused level example bhistx
1 parent 1563c3e commit d948f05

4 files changed

Lines changed: 16 additions & 11 deletions

File tree

R/baselearnersX.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -409,8 +409,8 @@ X_histx <- function(mf, vary, args) {
409409
#' dataList$X1h <- I(X1h)
410410
#' dataList$svals <- attr(data1, "xindex")
411411
#' ## add a factor variable
412-
#' dataList$zlong <- factor(gl(n = 2, k = n/2, length = n*nygrid), levels = 1:3)
413-
#' dataList$z <- factor(gl(n = 2, k = n/2, length = n), levels = 1:3)
412+
#' dataList$zlong <- factor(gl(n = 2, k = n/2, length = n*nygrid), levels = 1:2)
413+
#' dataList$z <- factor(gl(n = 2, k = n/2, length = n), levels = 1:2)
414414
#'
415415
#' ## do the model fit with main effect of bhistx() and interaction of bhistx() and bolsc()
416416
#' mod <- FDboost(Y ~ 1 + bhistx(x = X1h, df = 5, knots = 5) +

R/bootstrapCIs.R

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,6 @@
148148
#' bootCIs <- bootstrapCI(m1, resampling_fun_inner = my_inner_fun,
149149
#' resampling_fun_outer = my_outer_fun,
150150
#' B_inner = 5, B_outer = 10)
151-
# -> provide B_inner & B_outer only for enabling default plot
152151
#' }
153152
#'
154153
#' ######## Example for scalar-on-function-regression with bsignal()

R/crossvalidation.R

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -460,9 +460,10 @@ applyFolds <- function(object, folds = cv(rep(1, length(unique(object$id))), typ
460460
}
461461

462462
# compute risk with integration weights like in FDboost::validateFDboost
463-
risk <- sapply(grid, function(g){riskfct( response_oobweights,
464-
withCallingHandlers(predict(mod[g], newdata = dat_oobweights, toFDboost = FALSE), warning = h2),
465-
w = oobwstand )}) ## oobwstand[oobweights[object$id] != 0 ]
463+
risk <- sapply(grid, function(g){riskfct(
464+
response_oobweights,
465+
withCallingHandlers(predict(mod[g], newdata = dat_oobweights, toFDboost = FALSE), warning = h2),
466+
w = oobwstand )}) ## oobwstand[oobweights[object$id] != 0 ]
466467

467468
}else{
468469

@@ -474,9 +475,10 @@ applyFolds <- function(object, folds = cv(rep(1, length(unique(object$id))), typ
474475
}
475476

476477
# compute risk with integration weights like in FDboost::validateFDboost
477-
risk <- sapply(grid, function(g){riskfct( response_oobweights,
478-
withCallingHandlers(predict(mod[g], newdata = dat_oobweights, toFDboost = FALSE), warning = h2),
479-
w = oobwstand[oobweights != 0 ])})
478+
risk <- sapply(grid, function(g){riskfct(
479+
response_oobweights,
480+
withCallingHandlers(predict(mod[g], newdata = dat_oobweights, toFDboost = FALSE), warning = h2),
481+
w = oobwstand[oobweights != 0 ])})
480482

481483
}
482484

man/bhistx.Rd

Lines changed: 6 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)