-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
104 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
R/zzz.R | ||
R/threedx-package.R | ||
R/autoplot.R | ||
R/fitted.R | ||
R/residuals.R |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#' Extract fitted values from a `threedx` model | ||
#' | ||
#' Returns the fitted one-step-ahead predictions for the training data of the | ||
#' `threedx` model. At least the first value will be missing. | ||
#' | ||
#' @param object A `threedx` model as returned by [learn_weights()] | ||
#' @param ... Other arguments passed to `fitted()`, ignored | ||
#' | ||
#' @return A numeric vector of same length as `object$y` | ||
#' | ||
#' @export | ||
fitted.threedx <- function(object, ...) { | ||
checkmate::assert_class(x = object, classes = "threedx") | ||
return(object$fitted) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#' Extract residuals from a `threedx` model | ||
#' | ||
#' Returns the residuals from one-step-ahead predictions for the training data | ||
#' of the `threedx` model. At least the first value will be missing. | ||
#' | ||
#' @param object A `threedx` model as returned by [learn_weights()] | ||
#' @param ... Other arguments passed to `residuals()`, ignored | ||
#' | ||
#' @return A numeric vector of same length as `object$y` | ||
#' | ||
#' @export | ||
residuals.threedx <- function(object, ...) { | ||
checkmate::assert_class(x = object, classes = "threedx") | ||
return(object$residuals) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.