Skip to content

Commit

Permalink
Differences between get_predicted and get_predicted_ci for mixed models
Browse files Browse the repository at this point in the history
Fixes #797
  • Loading branch information
strengejacke committed Sep 26, 2023
1 parent 0ef5213 commit a9937a0
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 8 deletions.
7 changes: 5 additions & 2 deletions R/get_predicted.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,14 @@
#' with lots of caveats and complications. Read the 'Details' section for more
#' information.
#'
#' `get_predicted_ci()` returns the confidence (or prediction) interval (CI)
#' [`get_predicted_ci()`] returns the confidence (or prediction) interval (CI)
#' associated with predictions made by a model. This function can be called
#' separately on a vector of predicted values. `get_predicted()` usually
#' returns confidence intervals (included as attribute, and accessible via the
#' `as.data.frame()` method) by default.
#' `as.data.frame()` method) by default. It is preferred to rely on the
#' `get_predicted()` function for standard errrors and confidence intervals -
#' use `get_predicted_ci()` only if standard errors and confidence intervals
#' are not available otherwise.
#'
#' @param x A statistical model (can also be a data.frame, in which case the
#' second argument has to be a model).
Expand Down
3 changes: 3 additions & 0 deletions R/get_predicted_ci.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
#' standard errors are calculated based on the variance-covariance matrix.
#' @inheritParams get_predicted
#'
#' @details
#' TBD.
#'
#' @examplesIf require("boot") && require("datawizard") && require("bayestestR")
#' # Confidence Intervals for Model Predictions
#' # ------------------------------------------
Expand Down
7 changes: 5 additions & 2 deletions man/get_predicted.Rd

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

3 changes: 3 additions & 0 deletions man/get_predicted_ci.Rd

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

8 changes: 4 additions & 4 deletions man/get_transformation.Rd

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

0 comments on commit a9937a0

Please sign in to comment.