Skip to content

R package that computes empirical rank-based scores

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md
Notifications You must be signed in to change notification settings

probaverse/uscore

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

uscore

Codecov test coverage

This package is being phased out and replaced by gristmill

The goal of uscore is to calculate empirical-based scores from data.

  • uscore() essentially fits data so they are equally spaced between 0 and 1.
  • nscore() spaces data along a standard Normal distribution.
  • rpscore() calculates empirical return periods.

Installation

You can install the development version of uscore like so:

remotes::install_github("probaverse/uscore")

Example

Consider a numeric vector:

library(uscore)
x <- c(0.3, 0.56, NA, 0.1, -12)

Uniform scores:

uscore(x)
#> [1] 0.625 0.875    NA 0.375 0.125

Normal scores:

nscore(x)
#> [1]  0.3186394  1.1503494         NA -0.3186394 -1.1503494

Empirical return periods:

rpscore(x)
#> [1] 2.666667 8.000000       NA 1.600000 1.142857

About

R package that computes empirical rank-based scores

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages