metric_score.pkg_metric_downloads_1yr {riskmetric} | R Documentation |
Defining an Assessment Scoring Function
Description
Score a package for the number of downloads in the past year regularized
Convert the number of downloads x
in the past year into a validation
score [0,1]
Usage
## S3 method for class 'pkg_metric_downloads_1yr'
metric_score(x, ...)
Arguments
x |
a |
... |
additional arguments unused |
Details
The scoring function is a simplification of the classic logistic curve
with a log scale for the number of downloads
, sigmoid midpoint is 1000 downloads, ie.
, and logistic growth rate of
.
Value
numeric value between 0
(low) and 1
(high download
volume) converting the number of downloads.
Examples
## Not run: metric_score(assess_downloads_1yr(pkg_ref("riskmetric")))
[Package riskmetric version 0.2.4 Index]