Skip to content

MetricsWeighted

1.0.4Package record

Weighted Metrics and Performance Measures for Machine Learning

3packages depend
11.1Kdownloads / year
95.4%test coverage
13/13flavors OK

Overview

About

Provides weighted versions of several metrics and performance measures used in machine learning, including average unit deviances of the Bernoulli, Tweedie, Poisson, and Gamma distributions, see Jorgensen B. (1997, ISBN: 978-0412997112). The package also contains a weighted version of generalized R-squared, see e.g. Cohen, J. et al. (2002, ISBN: 978-0805822236). Furthermore, 'dplyr' chains are supported.

Changes in 1.0.4

Minor improvements

  • Better code formatting.
  • More return() statements.
  • Speed-up for some regression metrics.
  • Push code coverage version.

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 1.7 min · r-oldrel-macos-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 1.0.4
READMEYes · 89 wordsVignettesYes · 1 · dynamicNEWSYes · 100% structured · mentions 1.0.4Citation fileNo
Help pages
12
Examples that run
100%12 run in a plain check
Exported functions with examples
100%
Documented parameters
99%
Return-value docs
100%
Help pages citing references
33%
Vignettes (1)

Downloads

11.1K
CRAN downloads in the past year
Rank #4,357 · ~30/day · ~925/mo
Daily download trend is not available in this view yet.
83830 days
2K90 days
11.1K1 year
Compare downloads with other packages →
Also on133 r2u5 autocran

Repository

11Stars
4Forks
0Open issues
0Open PRs
9Releases
128Commits
2Commit identities
machine-learningmetricsperformancerr-packagerstatsstatistics
License file reads as GPL-2.0 · 128 commits · Last activity 2025-04-12
Responsiveness
How these are sampled
PRs merged (all time)
100%
Median days to close, 50 most recently updated closed issues
7
Median days to close, 50 most recently updated closed PRs
0

Stars over time

2024-05-28 · 112026-07-07 · 11
PracticesBeta

9 development-tooling and community-health practices detected across 5 families in the upstream repository

Checks run against github.com/mayer79/metricsweighted on 2026-10-18.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel

Docs source (2)

GitHub Pages site last deployed 2025-04-12 · The repository has a site deploy workflow

Coverage (1)
Coverage reporting
CRAN release process (3)
cran-comments.mdrevdep/CRAN-SUBMISSION
Show all practicesHide 1 practice
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v3 (2026-09-26)

Dependencies

Declared dependencies
3 external dependencies (excludes base and recommended)

Installing MetricsWeighted adds no packages beyond those that come with R.

Depends (1)
R >= 3.1.0
Imports (2)
graphicsstats
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
3direct
1indirect
Imports 3
Depends, Imports or LinkingTo, most downloaded first

People & History

People (2)
Author, Maintainer since 0.1.0 (2019)
Contributor · added in 0.2.0
Releases (15)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • 1.0.4Latest
    record
    2025-04-12 · current release · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • 1.0.3
    record
    2023-11-16 · diff ↗
  • 1.0.2
    record
    2023-06-05 · diff ↗
  • 1.0.1
    record
    2023-05-12 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • 1.0.0
    record
    2023-04-16 · diff ↗
  • 0.5.5
    record
    2023-03-24 · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • 0.5.4
    record
    2022-01-23 · diff ↗
  • 0.5.3
    record
    2021-06-06 · diff ↗ ·
    added 1 export
    murphy_diagram
  • R
    R 4.1.0 released · 2021-05-18
  • 0.5.2
    record
    2021-04-16 · diff ↗
  • R
    R 4.0.0 released · 2020-04-24
Show 7 earlier eventsHide 7 earlier events
  • 0.5.1
    record
    2020-04-18 · diff ↗ ·
    added 2 exports
    prop_within, weighted_cor
  • 0.5.0
    record
    2020-01-09 · diff ↗ ·
    added 3 exports
    elementary_score_expectile, elementary_score_quantile, multi_metric
  • 0.4.0
    record
    2019-12-02 · diff ↗ ·
    added 3 exports
    r_squared_bernoulli, r_squared_gamma, r_squared_poisson
  • 0.3.0
    record
    2019-11-08 · diff ↗ ·
    added 1 export
    weighted_var
  • 0.2.0
    record
    2019-08-19 · diff ↗ ·
    added 3 exports
    medae, weighted_median, weighted_quantile
  • 0.1.0
    record
    2019-07-28
  • R
    R 3.6.0 released · 2019-04-26

Package metadata

First published
2019-07-28
Total releases
15 / 7 yrs
License
GPL (>= 2) OSI
Minimum R
≥ 3.1.0
Download size
70 KB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("MetricsWeighted")
Mayer, M., & Lorentzen, C. (2025). MetricsWeighted: Weighted Metrics and Performance Measures for Machine Learning (Version 1.0.4) [Computer software]. https://doi.org/10.32614/CRAN.package.MetricsWeighted

This package has no citation file, so citation() returns this entry built from DESCRIPTION.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for MetricsWeighted version 1.0.4 [Data set]. HJJB, LLC. Data release v2026-10-22. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-22, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy