Skip to content

Commit 422b4d3

Browse files
authored
Merge branch 'main' into strengejacke/issue810
2 parents 0c73645 + 0783a1e commit 422b4d3

File tree

5 files changed

+13
-13
lines changed

5 files changed

+13
-13
lines changed

DESCRIPTION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
Type: Package
22
Package: performance
33
Title: Assessment of Regression Models Performance
4-
Version: 0.13.0.6
4+
Version: 0.13.0.7
55
Authors@R:
66
c(person(given = "Daniel",
77
family = "Lüdecke",
88
role = c("aut", "cre"),
9-
email = "d.luedecke@uke.de",
9+
email = "officialeasystats@gmail.com",
1010
comment = c(ORCID = "0000-0002-8895-3206")),
1111
person(given = "Dominique",
1212
family = "Makowski",

NEWS.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
number of observations in the returned base-model, thus calculating the correct
2323
log-likelihood and returning the correct pseudo-R2.
2424

25+
* Fixed examples in `check_outliers()`.
26+
2527
# performance 0.13.0
2628

2729
## Breaking changes

R/check_outliers.R

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -303,17 +303,16 @@
303303
#' data <- mtcars # Size nrow(data) = 32
304304
#'
305305
#' # For single variables ------------------------------------------------------
306-
#' outliers_list <- check_outliers(data$mpg) # Find outliers
306+
#' # Find all observations beyond +/- 2 SD
307+
#' outliers_list <- check_outliers(data$mpg, method = "zscore", threshold = 2)
307308
#' outliers_list # Show the row index of the outliers
308309
#' as.numeric(outliers_list) # The object is a binary vector...
309310
#' filtered_data <- data[!outliers_list, ] # And can be used to filter a data frame
310-
#' nrow(filtered_data) # New size, 28 (4 outliers removed)
311+
#' nrow(filtered_data) # New size, 30 (2 outliers removed)
311312
#'
312-
#' # Find all observations beyond +/- 2 SD
313-
#' check_outliers(data$mpg, method = "zscore", threshold = 2)
314313
#'
315314
#' # For dataframes ------------------------------------------------------
316-
#' check_outliers(data) # It works the same way on data frames
315+
#' check_outliers(data, threshold = 2) # It works the same way on data frames
317316
#'
318317
#' # You can also use multiple methods at once
319318
#' outliers_list <- check_outliers(data, method = c(

man/check_outliers.Rd

Lines changed: 4 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/performance-package.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)