Skip to content

Commit

Permalink
Add a data example
Browse files Browse the repository at this point in the history
  • Loading branch information
coatless committed Jun 11, 2024
1 parent 4b04c89 commit f825633
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 0 deletions.
1 change: 1 addition & 0 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@ RoxygenNote: 7.3.1
Roxygen: list(markdown = TRUE)
Suggests:
altdoc
LazyData: true
19 changes: 19 additions & 0 deletions R/residual_surrealism.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#' Residual (Sur)Realism
#'
#' A dataset containing residuals from a surreal model.
#'
#' @format
#' A data frame with 5,395 rows and 7 columns:
#'
#' @examples
#' data(residual_surrealism)
#'
#' model = lm(V1 ~ ., residual_surrealism)
#'
#' plot(fitted(model),resid(model))
#' abline(0, 0, col = "red")
#'
#' @source
#' Leonard A Stefanski
#' <https://www.tandfonline.com/doi/abs/10.1198/000313007X190079>
"residual_surrealism"
Binary file added data/residual_surrealism.rda
Binary file not shown.
29 changes: 29 additions & 0 deletions man/residual_surrealism.Rd

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

0 comments on commit f825633

Please sign in to comment.