Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
drizopoulos committed May 26, 2024
1 parent 1597542 commit 6e8ccbd
Show file tree
Hide file tree
Showing 14 changed files with 120 additions and 117 deletions.
4 changes: 2 additions & 2 deletions R/basic_methods.R
Original file line number Diff line number Diff line change
Expand Up @@ -695,7 +695,7 @@ predict.jm <- function (object, newdata = NULL, newdata2 = NULL, times = NULL,
if (is.null(con$cores)) {
n <- if (!is.data.frame(newdata)) length(unique(newdata$newdataL[[id_var]]))
else length(unique(newdata[[id_var]]))
cores <- if (n > 20) 4L else 1L
con$cores <- if (n > 20) 4L else 1L
}
components_newdata <-
get_components_newdata(object, newdata, con$n_samples,
Expand Down Expand Up @@ -1221,7 +1221,7 @@ predict.jmList <- function (object, weights, newdata = NULL, newdata2 = NULL,
if (is.data.frame(x)) attr(x, "mcmc") else x[["mcmc"]]
}
MCMC <- lapply(preds, extract_mcmc)
alp <- 1 - level
alp <- 1 - con$level
if (is.list(MCMC[[1L]])) {
n_outcomes <- length(MCMC[[1L]])
pred_ <- qs <- vector("list", n_outcomes)
Expand Down
4 changes: 2 additions & 2 deletions R/predict_funs.R
Original file line number Diff line number Diff line change
Expand Up @@ -907,8 +907,8 @@ predict_Event <- function (object, components_newdata, newdata, newdata2,
"maximum time to predict; redefine 'times' accordingly.")
}
if (times_per_id) {
g <- function (lt, tt, tm) c(lt, min(tt, tm))
times <- mapply2(g, lt = last_times, tt = times,
gg <- function (lt, tt, tm) c(lt, min(tt, tm))
times <- mapply2(gg, lt = last_times, tt = times,
MoreArgs = list(tm = t_max))

} else {
Expand Down
2 changes: 1 addition & 1 deletion docs/pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ articles:
Super_Learning: Super_Learning.html
Time_Varying_Effects: Time_Varying_Effects.html
Transformation_Functions: Transformation_Functions.html
last_built: 2024-05-25T18:21Z
last_built: 2024-05-26T06:56Z
urls:
reference: https://drizopoulos.github.io/JMbayes2/reference
article: https://drizopoulos.github.io/JMbayes2/articles
Expand Down
Binary file modified docs/reference/Rplot001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/reference/Rplot002.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/reference/Rplot003.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/reference/Rplot004.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/reference/Rplot005.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/reference/Rplot006.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/reference/Rplot007.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/reference/Rplot008.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
142 changes: 71 additions & 71 deletions docs/reference/accuracy.html

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions docs/reference/jm.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

79 changes: 41 additions & 38 deletions docs/reference/predict.html

Large diffs are not rendered by default.

0 comments on commit 6e8ccbd

Please sign in to comment.