abc | R Documentation |
Perform ABC analysis on a set of time series.
abc(x, prc = c(0.2, 0.3, 0.5))
## S3 method for class 'abc'
plot(x, cex.prc = 0.8, ...)
x |
this can either be an array, where each column is a series, or a vector of values. If |
prc |
a vector of percentages indicating how many items are included in each class. By default this is |
cex.prc |
font size of percentages reported in plot. |
... |
additional arguments passed to the plot. |
Return object of class abc
and contains:
value
: a vector containing the importance value of each series.
class
: a vector containing the class membership of each series.
rank
: a vector containing the rank of each series, with 1 being the highest ranking series.
conc
: the importance concentration of each class, as percentage of total value.
plot(abc)
: plot ABC or XYZ analyses.
Nikolaos Kourentzes, nikolaos@kourentzes.com.
Ord K., Fildes R., Kourentzes N. (2017) Principles of Business Forecasting, 2e. Wessex Press Publishing Co., p.515-518.
xyz
, abcxyz
.
x <- abs(matrix(cumsum(rnorm(5400,0,1)),36,150))
z <- abc(x)
print(z)
plot(z)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.