Skip to content

Commit afe4a2e

Browse files
committed
docs: update documentation for PRESS
1 parent 3aa22ef commit afe4a2e

16 files changed

Lines changed: 29 additions & 14 deletions

File tree

.Rbuildignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
^_pkgdown\.yml$
1212
^docs$
1313
^pkgdown$
14+
^vignettes/\.quarto$
1415
^vignettes/articles/\.quarto$
1516
^vignettes/articles/*_files$
1617
^vignettes/articles$

R/press.R

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@
2929
#' \item \eqn{obs} defines model observations at time step \eqn{i}
3030
#' }
3131
#'
32+
#' @note
33+
#' The $PRESS$ statistic is not appropriate for comparison of models having
34+
#' different transformations of response variable, e.g. linear regression and
35+
#' log-transformed linear regression (*Helsel et al., 2020*).
36+
#'
3237
#' @family numeric metrics
3338
#' @family accuracy metrics
3439
#' @templateVar fn press

README.Rmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ requireNamespace("bench", quietly = TRUE)
2424
<p align="center">
2525
<a href="https://github.com/atsyplenkov/tidyhydro/releases">
2626
<img src="https://img.shields.io/github/v/release/atsyplenkov/tidyhydro?style=flat&labelColor=1C2C2E&color=198ce7&logo=GitHub&logoColor=white"></a>
27-
<a href="https://cran.r-project.org/package=tidyhydro">
28-
<img src="https://img.shields.io/cran/v/tidyhydro?style=flat&labelColor=1C2C2E&color=198ce7&logo=R&logoColor=white"></a>
27+
<!-- <a href="https://cran.r-project.org/package=tidyhydro">
28+
<img src="https://img.shields.io/cran/v/tidyhydro?style=flat&labelColor=1C2C2E&color=198ce7&logo=R&logoColor=white"></a> -->
2929
<a href="https://app.codecov.io/gh/atsyplenkov/tidyhydro">
3030
<img src="https://img.shields.io/codecov/c/gh/atsyplenkov/tidyhydro?style=flat&labelColor=1C2C2E&color=256bc0&logo=Codecov&logoColor=white"></a>
3131
<a href="https://github.com/atsyplenkov/tidyhydro/actions/workflows/check-r-pkg.yaml">

README.md

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,19 @@
44
# tidyhydro
55

66
<!-- badges: start -->
7+
78
<p align="center">
9+
810
<a href="https://github.com/atsyplenkov/tidyhydro/releases">
911
<img src="https://img.shields.io/github/v/release/atsyplenkov/tidyhydro?style=flat&labelColor=1C2C2E&color=198ce7&logo=GitHub&logoColor=white"></a>
10-
<a href="https://cran.r-project.org/package=tidyhydro">
11-
<img src="https://img.shields.io/cran/v/tidyhydro?style=flat&labelColor=1C2C2E&color=198ce7&logo=R&logoColor=white"></a>
12+
<!-- <a href="https://cran.r-project.org/package=tidyhydro">
13+
<img src="https://img.shields.io/cran/v/tidyhydro?style=flat&labelColor=1C2C2E&color=198ce7&logo=R&logoColor=white"></a> -->
1214
<a href="https://app.codecov.io/gh/atsyplenkov/tidyhydro">
1315
<img src="https://img.shields.io/codecov/c/gh/atsyplenkov/tidyhydro?style=flat&labelColor=1C2C2E&color=256bc0&logo=Codecov&logoColor=white"></a>
1416
<a href="https://github.com/atsyplenkov/tidyhydro/actions/workflows/check-r-pkg.yaml">
1517
<img src="https://img.shields.io/github/actions/workflow/status/atsyplenkov/tidyhydro/check-r-pkg.yaml?style=flat&labelColor=1C2C2E&color=256bc0&logo=GitHub%20Actions&logoColor=white"></a>
1618
</p>
19+
1720
<!-- badges: end -->
1821

1922
The `tidyhydro` package provides a set of commonly used metrics in
@@ -140,15 +143,15 @@ bench::mark(
140143
#> # A tibble: 3 × 6
141144
#> expression min median `itr/sec` mem_alloc `gc/sec`
142145
#> <bch:expr> <dbl> <dbl> <dbl> <dbl> <dbl>
143-
#> 1 tidyhydro 1 1 29.2 NaN NaN
144-
#> 2 hydroGOF 15.8 21.2 1 Inf Inf
145-
#> 3 baseR 8.54 10.6 2.32 Inf Inf
146+
#> 1 tidyhydro 1 1 39.1 NaN NaN
147+
#> 2 hydroGOF 30.8 33.7 1 Inf Inf
148+
#> 3 baseR 20.5 21.6 1.92 Inf Inf
146149
```
147150

148151
## See also
149152

150-
- [`hydroGOF`](https://github.com/hzambran/hydroGOF) - Goodness-of-fit
151-
functions for comparison of simulated and observed hydrological time
152-
series.
153-
- [`yardstick`](https://github.com/tidymodels/yardstick/tree/main) -
154-
tidy methods for models performance assessment.
153+
- [`hydroGOF`](https://github.com/hzambran/hydroGOF) - Goodness-of-fit
154+
functions for comparison of simulated and observed hydrological time
155+
series.
156+
- [`yardstick`](https://github.com/tidymodels/yardstick/tree/main) -
157+
tidy methods for models performance assessment.

man/press.Rd

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

src/RcppExports.o

-752 KB
Binary file not shown.

src/kge.o

-545 KB
Binary file not shown.

src/mse.o

-529 KB
Binary file not shown.

src/nse.o

-582 KB
Binary file not shown.

src/pbias.o

-581 KB
Binary file not shown.

0 commit comments

Comments
 (0)