Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Oct 22, 2024
1 parent 8b52f6c commit 90d0008
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 6 deletions.
10 changes: 10 additions & 0 deletions R/performance_aicc.R
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@
#' scale. To get back to the original scale, the likelihood of the model is
#' multiplied by the Jacobian/derivative of the transformation.
#'
#' In case it is not possible to return the corrected AIC value, a waring
#' is given that the corrected log-likelihood value could not be computed.
#'
#' @references
#' - Akaike, H. (1973) Information theory as an extension of the maximum
#' likelihood principle. In: Second International Symposium on Information
Expand All @@ -52,6 +55,13 @@
#' # performance_aic() correctly detects transformed response and
#' # returns corrected AIC
#' performance_aic(model)
#'
#' \dontrun{
#' # there are a few exceptions where the corrected log-likelihood values
#' # cannot be returned. The following exampe gives a warning.
#' model <- lm(1 / mpg ~ factor(cyl), mtcars)
#' performance_aic(model)
#' }
#' @export
performance_aicc <- function(x, ...) {
UseMethod("performance_aicc")
Expand Down
12 changes: 6 additions & 6 deletions man/performance-package.Rd

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

10 changes: 10 additions & 0 deletions man/performance_aicc.Rd

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

0 comments on commit 90d0008

Please sign in to comment.