1 views

Uploaded by omr7

R package

- Excel_IF
- Fortran-90-95-manual.pdf
- RPG400 Tutorial
- C++ Notes
- Info
- arraylists.pdf
- RPG Programming
- Fortran95 Manual
- ms excel Text Functions 3
- Borlan Pascal Programs for Scientist-SAM
- C++ for Physicist
- CRM 2015 Cheat Sheet Client API (1)
- Matlab Coding -- First Slopes
- ,,mn,mnm
- Post Processor Manual
- unstuck_coding_interview_cheatsheet.pdf
- Cal_07_EL9650_9400
- Metadata
- 01.Algorithms and Complexity 2008
- Some Useful R Pointers (1)

You are on page 1of 15

Type Package

Title Computed ABC Analysis

Version 1.2.1

Date 2017-03-13

Author Michael Thrun, Jorn Lotsch, Alfred Ultsch

Maintainer Florian Lerch <lerch@mathematik.uni-marburg.de>

Description For a given data set, the package provides a novel method of computing precise lim-

its to acquire subsets which are easily interpreted. Closely re-

lated to the Lorenz curve, the ABC curve visualizes the data by graphically representing the cu-

mulative distribution function. Based on an ABC analysis the algorithm calcu-

lates, with the help of the ABC curve, the optimal limits by exploiting the mathematical proper-

ties pertaining to distribution of analyzed items. The data containing positive values is di-

vided into three disjoint subsets A, B and C, with subset A comprising very profitable val-

ues, i.e. largest data values (``the important few''), subset B comprising val-

ues where the yield equals to the effort required to obtain it, and the subset C comprising of non-

profitable values, i.e., the smallest data sets (``the trivial many''). Package is based on ``Com-

puted ABC Analysis for rational Selection of most informative Variables in multivari-

ate Data'', PLoS One. Ultsch. A., Lotsch J. (2015) <DOI:10.1371/journal.pone.0129767>.

Imports plotrix

Depends R (>= 2.10)

License GPL-3

LazyLoad yes

URL https://www.uni-marburg.de/fb12/datenbionik/software-en

Encoding UTF-8

NeedsCompilation no

Repository CRAN

Date/Publication 2017-03-13 14:31:38

1

2 ABCanalysis-package

R topics documented:

ABCanalysis-package . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2

ABCanalysis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3

ABCanalysis4curve . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4

ABCanalysisPlot . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5

ABCcleanData . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7

ABCcurve . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8

ABCplot . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9

ABCRemoveSmallYields . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10

calculatedABCanalysis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11

Gini4ABC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12

GiniIndex . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13

SwissInhabitants . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13

Index 15

Description

Computed ABC Analysis allows the optimal calculation of three disjoint subsets A,B,C in data sets

containing positive values:

subset A containing few most profitable values, i.e. largest data values ("the important few"), subset

B containing data, where the profit gain equals effort required to obtain this gain, and the subset C

of non-profitable values, i.e. the smallest data sets ("the trivial many").

This package calculates the three subsets A, B and C by means of an algorithm based on statistically

valid definitions of thresholds for the three sets A,B and C.

Note

Check out our new Umatrix package for visualisation and clustering of high-dimensional data on

our Webpage.

Author(s)

Michael Thrun, Jorn Lotsch, Alfred Ultsch

http://www.uni-marburg.de/fb12/datenbionik

<mthrun@mathematik.uni-marburg.de>

References

Ultsch. A ., Lotsch J.: Computed ABC Analysis for Rational Selection of Most Informative Vari-

ables in Multivariate Data, PloS one, Vol. 10(6), pp. e0129767. doi 10.1371/journal.pone.0129767,

2015.

ABCanalysis 3

Examples

data("SwissInhabitants")

abc=ABCanalysis(SwissInhabitants,PlotIt=TRUE)

SetA=SwissInhabitants[abc$Aind]

SetB=SwissInhabitants[abc$Bind]

SetC=SwissInhabitants[abc$Cind]

A, B and C

Description

divide the Data in 3 classes A, B and C such that

A=Data[Aind] : with low effort much yield

B=Data[Bind] : yield and effort are about equal

C=Data[Cind] : with much effort low yield

Usage

ABCanalysis(Data,ABCcurvedata,PlotIt=FALSE)

Arguments

Data vector(1:n) describes an array of data: n cases in rows of one variable, if matrix

or dataframe then first column will be used.

ABCcurvedata only for internal usage, list from ABCcurve

PlotIt default(FALSE), if variable is used, a plot is made, set with arbitrary value

Details

Pareto point: Minimum distance to (0,1) = minimal unrealized potential

BreakEven Point: B_x is the x value of the point, where the slope of ABCcurve equals one.

For further description to p in variable AlimitIndInInterpolation see ABCcurve

Value

Output is of type list which parts are described in the following

Bind vector [1:l], B==Data(Bind) : effort and Yield are balanced

Cind (vector [1:m], C==Data(Cind) : much effort for little Yield

ABexchanged Boolean, TRUE if Point A is the Break Even and point B is the Pareto Point,

FALSE otherwise

4 ABCanalysis4curve

B c(Bx,By), Pareto point or BreakEven Point indicated by ABexchanged

C Submarginal point: minimum distance to [B_x,1]

smallestAData Boundary AB, defined by point A or B with ABexchanged

smallestBData Boundary BC, defined by point C

AlimitIndInInterpolation

index of AB Boundary in [p, ABC], the interpolation of the ABC plot

BlimitIndInInterpolation

index of BC Boundary in [p, ABC], the interpolation of the ABC plot

Author(s)

Michael Thrun

http://www.uni-marburg.de/fb12/datenbionik

References

Ultsch. A ., Lotsch J.: Computed ABC Analysis for Rational Selection of Most Informative Vari-

ables in Multivariate Data, PloS one, Vol. 10(6), pp. e0129767. doi 10.1371/journal.pone.0129767,

2015.

See Also

ABCplot

Examples

data("SwissInhabitants")

abc=ABCanalysis(SwissInhabitants,PlotIt=TRUE)

A=abc$Aind

B=abc$Bind

C=abc$Cind

Agroup=SwissInhabitants[A]

Bgroup=SwissInhabitants[B]

Cgroup=SwissInhabitants[C]

Description

calculate points A B C of the ABC Analysis from a given curve.

ABCanalysisPlot 5

Arguments

ABC[1:m] given values of the curve at positions from p

Value

tIndex = SubmarginalPunktIndex, ABx = Effort[AB], ABy = Yield[AB], BCx = Effort[BC], BCy =

Yield[BC], Bx = Effort[B], By = Yield[B]))

BreakEvenPunktIndex

Index of breakeven point

ParetoPunktIndex

Index of pareto point

SubmarginalPunktIndex

Index of submarginal point

ABx Position of AB point on x axis

ABy Position of AB point on y axis

BCx Position of BC point on x axis

BCy Position of BC point on y axis

Bx Position of the unused point (breakeven or pareto) on the x axis

By Position of the unused point (breakeven or pareto) on the y axis

Author(s)

Florian Lerch

Description

Displays ABC Curve : cumulative percentage of largest Data (effort) vs cumlative percentage of

sum of largest data (yield) with set limits generated by an calculated ABCanalysis.

Usage

ShowUniform = TRUE,title, limits = TRUE, MarkPoints = TRUE,

ABCcurvedata,ResetPlotDefaults=TRUE)

6 ABCanalysisPlot

Arguments

Data vector[1:n] describes an array of data: n cases in rows of one variable

LineType integer, optional, for plot default: LineType=0 for solid line; for other line codes

see documentation about pch

LineWidth integer, optional, width of Line, see lwd in par

ShowUniform boolean, optional, the ABC curve of the uniform distribution is shown in plot if

TRUE (default)

title string, optional, see parameter main in plot

limits boolean, = TRUE, lines of division in A, B and C are drawn, default = FALSE

MarkPoints boolean, optional, default= TRUE, Mark the three points of interest

ABCcurvedata optional, see ABCcurve

ResetPlotDefaults

optional, default =TRUE. If ResetPlotDefaults=FALSE, multiple plots in one

window possible, but no resetting of plot to default parameters.

Value

object is a list of items with

ABC Output of ABCplot

ABCanalysis Output of ABCanalysis

Note

The Break Even point is always marked with a green star.

The diagonal from (0,1) to (1,0) is the equilibrium, where effort equals yield.

Author(s)

Michael Thrun

http://www.uni-marburg.de/fb12/datenbionik

See Also

ABCanalysis

Examples

## Standard Example

data("SwissInhabitants")

abc=ABCanalysisPlot(SwissInhabitants)

## Multiple plots in one Window:

m=runif(4,100,200)

s=runif(4,1,10)

Data=sapply(1:4,FUN=function(x,m,s) rnorm(1000,m,s),m,s)

# windows() #screen devices should not be used in examples etc

par(mfrow=c(2,2))

ABCcleanData 7

for (i in 1:4)

{

ABCanalysisPlot(Data[,i],ResetPlotDefaults=FALSE)

}

Description

Only the first column of Data is used, anything not beeinh positive numerical value is set to zero

Usage

ABCcleanData(Data)

Arguments

Details

Data <0 are set to zero, non-numeric values (NA,NaN,etc.) in Data are set to zero strings and chars

are set to zero infinitive numbers are set to max(Data)

Value

CleanedData vector [1:m], columnvector containing Data>=0 and zeros for all NA, NaN and

negative values in Data(1:n)

Data2CleanInd vector [1:k], Index such that CleanedData = nantozero(Data(Data2CleanInd))

RemovedInd vector [1:l], Index such that Data(RemovedInd) is the data that has been removed

if RemoveSmallYields==1

Author(s)

http://www.uni-marburg.de/fb12/datenbionik

Michael Thrun

8 ABCcurve

Description

Calculates cumulative percentage of largest data (effort) and cumulative percentages of sum of

largest Data (yield) with spline interpolation (second order, piecewise) of values in-between.

Usage

ABCcurve(Data, p)

Arguments

Data vector[1:n] describes an array of data: n cases in rows of one variable

p optional, an vector of values specifying where interpolation takes place, created

by seq of package base

Value

Output is of type list which parts are described in the following

Effort:vector [1:k], cumulative population in percent

Yield: vector [1:k], cumulative high data in percent

CleanedData vector [1:m], columnvector containing Data>=0 and zeros for all NA, NaN and

negative values in Data(1:n)

Slope A list with

p: X-values for spline interpolation, defualt: p = (0:0.01:1)

dABC: first deviation of the functio ABC(p)=Effort(Yield

Author(s)

Michael Thrun

http://www.uni-marburg.de/fb12/datenbionik

References

Ultsch. A ., Lotsch J.: Computed ABC Analysis for Rational Selection of Most Informative Vari-

ables in Multivariate Data, PloS one, Vol. 10(6), pp. e0129767. doi 10.1371/journal.pone.0129767,

2015.

ABCplot 9

Description

Plots cumulative percentage of largest data (effort) vs. cumulative percentage of sum of largest data

(yield)

Usage

ABCplot(Data, LineType = 0, LineWidth = 3, ShowUniform = TRUE,

title, ABCcurvedata,defaultAxes = TRUE)

Arguments

Data vector[1:n], describes an array of data: n cases in rows of one variable

LineType for plot default: LineType=0 for a line, other line codes see documentation about

pch in par

LineWidth integer, width of Line, see lwd in par

ShowUniform bool, =TRUE: the ABC curve of the uniform distribution is shown in plot

title string, optional, see parameter main in plot

ABCcurvedata optional, see ABCcurve

defaultAxes optional, boolean, see parameter axes in plot

Value

Output is of type list which parts are described in the following

ABCy vector [1:k], cumulative high Data in percent

Note

The diagonal from (1,0) to (0,1) is the Equilibrium, where effort equals yield

Author(s)

Michael Thrun

http://www.uni-marburg.de/fb12/datenbionik

Examples

data("SwissInhabitants")

vec=ABCplot(SwissInhabitants)

10 ABCRemoveSmallYields

Description

Only the first column of Data is used, anything not beeing positive numerical value is set to zero

Usage

ABCRemoveSmallYields(Data,CumSumSmallestPercentage)

Arguments

CumSumSmallestPercentage

(default =0.5),the smallest data up to a cumulated sum of less than CumSumS-

mallestPercentage

Details

Data <0 are set to zero, non-numeric values (NA,NaN,etc.) in Data are set to zero strings and chars

are set to zero infinitive numbers are set to max(Data) the smallest data up to a cumulated sum of

less than CumSumSmallestPercentage of the total sum (yield) is removed

Value

SubstantialData

columnvector containing Data>=0 and zeros for all NaN and negative values in

Data(1:n)

Data2CleanInd Index such that SubstantialData = nantozero(Data(Data2SubstantialInd))

RemovedInd Data(RemovedInd) is the data that has been removed

Author(s)

http://www.uni-marburg.de/fb12/datenbionik

Michael Thrun

calculatedABCanalysis 11

A, B and C

Description

divide the Data in 3 classes A, B and C such that

A=Data[Aind] : with low effort much yield

B=Data[Bind] : yield and effort are about equal

C=Data[Cind] : with much effort low yield

Usage

calculatedABCanalysis(Data)

Arguments

Data vector(1:n) describes an array of data: n cases in rows of one variable, if matrix

or dataframe then first column will be used.

Details

Pareto point: Minimum distance to (0,1) = minimal unrealized potential

BreakEven Point: B_x is the x value of the point, where the slope of ABCcurve equals one.

For further description to p in variable AlimitIndInInterpolation see ABCcurve

Value

Output is of type list which parts are described in the following

Aind vector [1:j], A==Data(Aind) : with little effort much Yield

Bind vector [1:l], B==Data(Bind) : effort and Yield are balanced

Cind (vector [1:m], C==Data(Cind) : much effort for little Yield

smallestAData Boundary AB, defined by point A or B with ABexchanged

smallestBData Boundary BC, defined by point C

Author(s)

Michael Thrun

http://www.uni-marburg.de/fb12/datenbionik

References

Ultsch. A ., Lotsch J.: Computed ABC Analysis for Rational Selection of Most Informative Vari-

ables in Multivariate Data, PloS one, Vol. 10(6), pp. e0129767. doi 10.1371/journal.pone.0129767,

2015.

12 Gini4ABC

See Also

ABCanalysis

Examples

data("SwissInhabitants")

abc=calculatedABCanalysis(SwissInhabitants)

A=abc$Aind

B=abc$Bind

C=abc$Cind

Agroup=SwissInhabitants[A]

Bgroup=SwissInhabitants[B]

Cgroup=SwissInhabitants[C]

Description

Usage

Gini4ABC(p, ABC)

Arguments

ABC vector [1:k], cumulative high data in percent

Value

Gini gini index i.e. the integral over ABC(p) / 0.5 *100

given in percent i.e in [0..100]

Author(s)

FL?MT?

GiniIndex 13

GiniIndex Gini-Index

Description

calculation of the Gini-Index from Data

Usage

GiniIndex(Data,p)

Arguments

Data vector[1:n] describes an array of data: n cases in rows of one variable

p optional, an vector of values specifying where interpolation takes place, created

by seq of package base

Details

uses ABCcurve and Gini4ABC

Value

Gini gini index i.e. the integral over Area *200 -100 given in percent i.e in [0..100]

p vector [1:k], cumulative population in percent

ABC vector [1:k], cumulative high data in percent

CleanedData vector [1:m], columnvector containing Data>=0 and zeros for all NA, NaN and

negative values in Data(1:n)

Author(s)

Michael Thrun

Description

Number of inhabitants in the 2896 villages of Switzerland in the year 1900.

Usage

data("SwissInhabitants")

14 SwissInhabitants

Details

This data set consists of the number of inhabitants in the 2896 communes, i.e. cities and villages, in

the year 1900. The individual count is the total number of persons living in the particular commune.

The data set is unordered for anonymity reasons. The data set has been used as part of a larger data

set to identify patterns of concentration in Switzerland (see reference).

Source

Schuler,M., Ullmann, D. Eidgenossische Volkszahlung:Bevoelkerungsentwicklung der Gemeinden,

Bundesamt fur Statistik, Neuchatel, Switzerland, 2002

References

Behnisch, M., Ultsch, A.: Population Patterns in Switzerland 1850-2000, in: Gaul, W. et al (Eds),

Advances in Data Analysis, Data Handling and Business Intelligence, Springer, Heidelberg, pp.

163-173, 2010.

Examples

data(SwissInhabitants)

## maybe str(SwissInhabitants) ; plot(SwissInhabitants) ...

Index

ABCanalysis, 3 ABCcurve, 3, 6, 8, 9, 11

ABCanalysisPlot, 5 ABCplot, 4, 6, 9

ABCplot, 9 ABCRemoveSmallYields, 10

calculatedABCanalysis, 11

∗Topic ABC curve calculatedABCanalysis, 11

ABCcurve, 8

∗Topic ABCanalysis dbt.ABC (ABCanalysis-package), 2

ABCanalysis, 3 dbt.ABCanalyse (ABCanalysis-package), 2

ABCanalysisPlot, 5 dbt.ABCanalysis (ABCanalysis-package), 2

calculatedABCanalysis, 11

Gini4ABC, 12

∗Topic ABCcurve

GiniIndex, 13

ABCcurve, 8

∗Topic ABC par, 6, 9

ABCanalysis, 3 plot, 6, 9

ABCplot, 9

calculatedABCanalysis, 11 seq, 8, 13

∗Topic Computed ABC analysis SwissInhabitants, 13

calculatedABCanalysis, 11 SwissInhabitants1900

∗Topic Lorenz curve (SwissInhabitants), 13

ABCanalysis, 3

ABCcurve, 8

ABCplot, 9

calculatedABCanalysis, 11

∗Topic Lorenz

ABCanalysis, 3

ABCcurve, 8

ABCplot, 9

calculatedABCanalysis, 11

∗Topic

datasets,SwissInhabitants,SwissInhabitants1900

SwissInhabitants, 13

∗Topic package

ABCanalysis-package, 2

ABCanalyse (ABCanalysis-package), 2

ABCanalysis, 3, 6, 12

ABCanalysis-package, 2

ABCanalysis4curve, 4

ABCanalysisPlot, 5

15

- Excel_IFUploaded byArslan Saleem
- Fortran-90-95-manual.pdfUploaded bysayyadmannan
- RPG400 TutorialUploaded byVISHNU400
- C++ NotesUploaded byNikhil Kant Saxena
- InfoUploaded bySuryabhan Bind
- arraylists.pdfUploaded bySebastian York
- RPG ProgrammingUploaded byLuis Panao
- Fortran95 ManualUploaded bytpaiva
- ms excel Text Functions 3Uploaded byVidit Vishnoi
- Borlan Pascal Programs for Scientist-SAMUploaded byEkpe Samuel
- C++ for PhysicistUploaded bydoppler9effect
- CRM 2015 Cheat Sheet Client API (1)Uploaded byArchaon
- Matlab Coding -- First SlopesUploaded byTheodor Munteanu
- ,,mn,mnmUploaded byAbdul Ahad
- Post Processor ManualUploaded byVagner Aux Cad
- unstuck_coding_interview_cheatsheet.pdfUploaded byFreetxt Api
- Cal_07_EL9650_9400Uploaded byMohit
- MetadataUploaded byKrishna Eela
- 01.Algorithms and Complexity 2008Uploaded byIgor Stojkov
- Some Useful R Pointers (1)Uploaded byMoonKang
- EUT CSC1164 http://www.scribd.com/upload-document?archive_doc=80894170&metadata=%7B%22platform%22%3A%22web%22%2C%22context%22%3A%22archive%22%2C%22action%22%3A%22toolbar_download%22%2C%22page%22%3A%22read%22%2C%22logged_in%22%3Atrue%7DUploaded byMuhd Ashim
- xtableUploaded byRizky Ramdhani
- CS Class XI Syllabus.pdfUploaded byBalaji Dharani
- CompForEng_Lab6Uploaded byWalid Ali
- projegrowarrayUploaded bybilalc15
- frezza-buet13a.pdfUploaded byDuke Panzer
- UntitledUploaded byapi-127299018
- LVCore1 ExerciseManual English SampleUploaded byAnonymous kT0ONW
- Cbse Class 12 Syllabus 2019 20 Computer Science OldUploaded byAnkit Yadav
- Java CollectionGenericUploaded byniko.chu7100

- Guia BeamerUploaded bybenyi1
- Bayesianbetareg-2Uploaded byomr7
- Selection 2Uploaded byomr7
- ABCUploaded byomr7
- a5comb.pdfUploaded byomr7
- a0_eng.pdfUploaded byomr7
- CaretUploaded byomr7
- R PDF ToolsUploaded byomr7
- Semi ParUploaded byomr7
- non-parametricUploaded byomr7
- Font AwesomeUploaded byBrahim Letaief
- LaTeX Caption EngUploaded byomr7
- Documentation Chilean 45778Uploaded byomr7
- List of Math SymbolsUploaded byBob Ca
- article two importantUploaded byomr7
- article OneUploaded byomr7
- RcolorUploaded byVicky Ruiz
- xkcd.pdfUploaded byomr7
- ggplot2Uploaded byomr7
- Gamlss.distUploaded byomr7
- CodaUploaded byomr7
- BRugsUploaded byomr7
- Article Title 2Uploaded byomr7
- Article TitleUploaded byomr7

- 17-21_Ayna.pdfUploaded byMeseret Tesfa
- 2180507Uploaded byYash Bhalerao
- Test BencherUploaded bySidharth Chaturvedy
- JSF DetailsUploaded bygoat420
- Tekla Crane Version 1 0Uploaded byRizza_Zee
- 1400-2377-1-SMUploaded bywiwit0490
- As 2805.11-2000 Electronic Funds Transfer - Requirements for Interfaces Card Parameter TableUploaded bySAI Global - APAC
- Kerangka Kerja Imtermal AuditUploaded bykaranzia
- 2203.pdfUploaded bychaitanya s
- PreprocessorUploaded byAmitKumar
- timeline week1Uploaded byapi-273146380
- EI6501 QB 2017-18Uploaded byKotteeswaran Rangasamy R
- SONAR X3 User Guide.pdfUploaded byThelma Brown
- Mri Gradients Phase and Frequency EncodingUploaded byskycall28
- Figliola Beasley Mechanical Measurements 4th SolutionsUploaded byLaurel Moorhead
- Controlling by Henry FayolUploaded byHarshVardhan Arya
- c++Uploaded byAmit Verma
- Torno de Arquímedes_1Uploaded byCasilisto
- Senior Marketing Manager In Boston MA Resume Louise DownsUploaded byLouise Downs
- 7-3-04 - Internal Forces - LessonUploaded bymorgan
- The decision of becoming a scientist and its side effects.pdfUploaded byHaydee Pacheco
- Influence of n.t.a Enugu Commercials on the Product Promotion of Indomie Instant Noodles (1)Uploaded byNiyi Seidu
- Lotz Critique of DeleuzeUploaded bytheofrids
- EECS-2015-165Uploaded byShuvadeep Kumar
- FPGA IMPLEMENTATION OF VGA CONTROLLERGaVgAUploaded byMuhammad Atif
- Gaby Saiz ThesisUploaded bydeepeshk_11
- Heat Recovery Steam Generators for Power GenerationUploaded bySugar Maker
- [Carlo Cercignani, Ester Gabetta] Transport Phenom(BookFi)Uploaded byShilbhushan Shambharkar
- Bearing Capacity Technical GuidanceUploaded byFarouq SHah
- 9146-DSL-2750U_C1_Manual_v1.00(ET).pdfUploaded byJanesha