Diverse Package

https://cran.r-project.org/web/packages/diverse/diverse.pdf

Head of sample data-set

head(geese)
##                1996  1997  1998  1999  2000  2001   2002   2003   2004   2005
## Little Grebe    274   247   336   704   815   825    948    844    815   1134
## Crested Grebe 10788 12319 11299 11680 10996 10524  11626  10617   9080  10050
## Mute Swan      4786  5551  6646  8125  9025 10150  10853  11056  11393  10771
## Greylag Goose 39273 47714 53448 67675 76547 87425 101680 100901 110316 114651
##                 2006
## Little Grebe    1036
## Crested Grebe   9494
## Mute Swan      11457
## Greylag Goose 119559

balance()

Computes the proportions or probabilities of raw values.

category_row() - A flag to indicate that categories are in the rows. The analysis assumes that the categories are in the columns of the matrix. If the categories are in the rows and the entities in the columns, then the argument “category_row” has to be set to TRUE. The default value is FALSE.

Returns: A matrix of entities-categories with proportions

balance(data=geese, category_row = FALSE)
##                     1996       1997       1998       1999       2000       2001
## Little Grebe  0.03434445 0.03096014 0.04211582 0.08824267 0.10215593 0.10340938
## Crested Grebe 0.09105872 0.10398150 0.09537194 0.09858786 0.09281440 0.08883037
## Mute Swan     0.04794967 0.05561400 0.06658451 0.08140222 0.09041908 0.10169016
## Greylag Goose 0.04272571 0.05190880 0.05814691 0.07362468 0.08327667 0.09511102
##                     2002       2003       2004       2005      2006
## Little Grebe  0.11882677 0.10579093 0.10215593 0.14214089 0.1298571
## Crested Grebe 0.09813206 0.08961536 0.07664194 0.08482945 0.0801364
## Mute Swan     0.10873333 0.11076713 0.11414345 0.10791180 0.1147846
## Greylag Goose 0.11061925 0.10977177 0.12001449 0.12473060 0.1300701

disparity()

Data

head(pantheon)
str(pantheon)
## 'data.frame':    119 obs. of  3 variables:
##  $ Country   : Factor w/ 10 levels "Canada","Chile",..: 10 5 4 9 2 8 7 6 3 1 ...
##  $ Occupation: Factor w/ 52 levels "Actor","Architect",..: 40 40 40 40 40 40 40 40 40 40 ...
##  $ Value     : int  6 2 8 5 10 9 17 36 38 10 ...

Computes the sum and the average of distances or disparities between the categories.

methods =
- Euclidean, Kullback, Canberra.
- This argument also accepts a similarity method available in the “proxy” package, as for example: “cosine”, “correlation” or “Jaccard” among others.

Returns: A data frame with disparity measures for each entity in the dataset. Both the sum of disparities and the average of disparities are computed.

disparity(data = pantheon, method='Canberra')

dis_categories()

A procedure to create a disparity matrix between categories.

dis_categories(pantheon)
##                     Politician Religious Figure  Nobleman Military Person
## Politician             0.00000         53.67495 57.436922       56.133769
## Religious Figure      53.67495          0.00000 11.224972       11.401754
## Nobleman              57.43692         11.22497  0.000000        4.472136
## Military Person       56.13377         11.40175  4.472136        0.000000
## Philosopher           52.07687         13.07670 10.344080        6.244998
## Writer                46.09772         17.94436 15.874508       13.564660
## Historian             58.00000         11.26943  2.236068        3.000000
## Journalist            58.40377         11.40175  2.449490        4.242641
## Soccer Player         45.58509         28.93095 26.814175       28.896367
## Referee               58.56620         11.44552  2.236068        4.123106
## Coach                 57.27128         11.26943  1.000000        4.582576
## Tennis Player         57.39338         11.70470  3.872983        4.358899
## Basketball Player     57.85326         11.22497  2.449490        3.162278
## Hocker Player         58.48077         11.44552  2.236068        4.123106
## Racecar Driver        58.15497         11.70470  3.605551        5.000000
## Martial Arts          58.00000         11.26943  2.236068        3.000000
## Mountaineer           58.61740         11.44552  2.236068        4.123106
## Wrestler              58.09475         12.08305  4.472136        5.656854
## Athlete               58.33524         11.40175  2.449490        4.242641
## Chess Master          58.51496         11.44552  2.236068        4.123106
## Biologist             58.04309         11.48913  3.162278        4.690416
## Chemist               57.28001         12.16553  5.099020        5.477226
## Physicist             55.49775         11.78983  5.567764        3.316625
## Astronomer            58.36095         10.44031  2.236068        4.123106
## Physician             56.55086         10.63015  3.316625        5.567764
## Phychologist          58.33524         11.57584  2.828427        4.472136
## Economist             58.09475         12.08305  4.472136        5.656854
## Political Scientist   58.00000         11.26943  2.236068        3.000000
## Engineer              58.00000         11.26943  2.236068        3.000000
## Mathematician         58.00000         11.26943  2.236068        3.000000
## Computer Scientist    58.48077         11.44552  2.236068        4.123106
## Inventor              57.20140         11.26943  3.000000        2.236068
## Actor                 60.64652         38.89730 37.563280       37.188708
## Musician              57.16642         13.82027  8.306624        8.544004
## Singer                56.43580         18.76166 15.099669       15.748016
## Composer              58.33524         11.57584  2.828427        4.472136
## Sculptor              58.51496         11.44552  2.236068        4.123106
## Artist                57.87055         11.31371  2.449490        3.162278
## Architect             57.21888         11.18034  1.732051        3.316625
## Comic Artist          58.48077         11.44552  2.236068        4.123106
## Film Director         56.26722         11.53256  4.358899        2.645751
## Dancer                58.51496         11.44552  2.236068        4.123106
## Social Activist       55.73150         11.53256  5.385165        3.000000
## Model                 58.16356         11.57584  3.162278        4.690416
## Magician              58.48077         11.44552  2.236068        4.123106
## Presenter             58.47222         11.57584  2.828427        4.472136
## Pornographic Actor    58.33524         11.57584  2.828427        4.472136
## Businessperson        57.85326         11.22497  2.449490        3.162278
## Explorer              53.80520         11.74734  4.472136        6.324555
## Astronaut             58.00000         11.26943  2.236068        3.000000
## Companion             57.22762          8.36660  3.162278        5.099020
## Extremist             58.36095         10.44031  2.236068        4.123106
##                     Philosopher   Writer Historian Journalist Soccer Player
## Politician            52.076866 46.09772 58.000000  58.403767      45.58509
## Religious Figure      13.076697 17.94436 11.269428  11.401754      28.93095
## Nobleman              10.344080 15.87451  2.236068   2.449490      26.81418
## Military Person        6.244998 13.56466  3.000000   4.242641      28.89637
## Philosopher            0.000000 10.44031  9.165151  10.246951      30.29851
## Writer                10.440307  0.00000 15.524175  16.062378      26.73948
## Historian              9.165151 15.52417  0.000000   1.732051      28.63564
## Journalist            10.246951 16.06238  1.732051   0.000000      28.51315
## Soccer Player         30.298515 26.73948 28.635642  28.513155       0.00000
## Referee               10.198039 16.09348  1.414214   1.732051      28.28427
## Coach                 10.392305 15.58846  2.449490   2.645751      26.64583
## Tennis Player          9.591663 14.38749  3.162278   3.605551      28.24889
## Basketball Player      9.219544 15.29706  1.000000   1.414214      28.51315
## Hocker Player         10.099505 15.84298  1.414214   1.732051      28.60070
## Racecar Driver        10.392305 15.26434  3.162278   3.000000      28.56571
## Martial Arts           9.165151 15.52417  0.000000   1.732051      28.63564
## Mountaineer           10.198039 16.21727  1.414214   1.732051      28.63564
## Wrestler              10.535654 14.96663  4.123106   4.242641      28.75761
## Athlete               10.148892 15.62050  1.732051   1.414214      28.47806
## Chess Master          10.099505 16.15549  1.414214   1.732051      28.60070
## Biologist             10.344080 15.16575  2.645751   2.000000      28.23119
## Chemist                9.746794 14.07125  4.582576   4.898979      28.82707
## Physicist              6.633250 11.95826  4.472136   5.196152      28.84441
## Astronomer            10.099505 16.27882  1.414214   1.732051      28.63564
## Physician             10.488088 14.59452  4.000000   3.872983      26.75818
## Phychologist          10.148892 15.49193  2.236068   2.449490      28.61818
## Economist             10.535654 14.96663  4.123106   4.242641      28.75761
## Political Scientist    9.165151 15.52417  0.000000   1.732051      28.63564
## Engineer               9.165151 15.52417  0.000000   1.732051      28.63564
## Mathematician          9.165151 15.52417  0.000000   1.732051      28.63564
## Computer Scientist    10.099505 15.84298  1.414214   1.732051      28.60070
## Inventor               8.124038 14.38749  1.414214   2.645751      28.67054
## Actor                 36.551334 31.79623 37.389838  37.483330      46.21688
## Musician              11.489125 13.89244  8.000000   8.185353      29.46184
## Singer                17.464249 15.81139 15.264338  15.231546      29.98333
## Composer              10.148892 15.49193  2.236068   2.449490      28.61818
## Sculptor              10.099505 16.15549  1.414214   1.732051      28.60070
## Artist                 9.110434 15.42725  1.000000   2.000000      28.61818
## Architect              9.165151 14.86607  1.414214   2.236068      27.71281
## Comic Artist          10.099505 15.84298  1.414214   1.732051      28.60070
## Film Director          7.211103 13.15295  3.162278   4.123106      28.77499
## Dancer                10.099505 16.15549  1.414214   1.732051      28.60070
## Social Activist        6.928203 13.00000  4.242641   4.582576      28.63564
## Model                 10.344080 15.74802  2.645751   1.414214      28.54820
## Magician              10.099505 15.84298  1.414214   1.732051      28.60070
## Presenter             10.344080 16.37071  2.236068   1.414214      28.68798
## Pornographic Actor    10.148892 15.49193  2.236068   2.449490      28.61818
## Businessperson         9.219544 15.29706  1.000000   1.414214      28.51315
## Explorer              10.148892 14.42221  6.082763   6.480741      23.38803
## Astronaut              9.165151 15.52417  0.000000   1.732051      28.63564
## Companion             10.344080 16.30951  3.316625   3.464102      27.87472
## Extremist             10.099505 16.27882  1.414214   1.732051      28.63564
##                       Referee     Coach Tennis Player Basketball Player
## Politician          58.566202 57.271284     57.393379         57.853263
## Religious Figure    11.445523 11.269428     11.704700         11.224972
## Nobleman             2.236068  1.000000      3.872983          2.449490
## Military Person      4.123106  4.582576      4.358899          3.162278
## Philosopher         10.198039 10.392305      9.591663          9.219544
## Writer              16.093477 15.588457     14.387495         15.297059
## Historian            1.414214  2.449490      3.162278          1.000000
## Journalist           1.732051  2.645751      3.605551          1.414214
## Soccer Player       28.284271 26.645825     28.248894         28.513155
## Referee              0.000000  2.449490      3.464102          1.732051
## Coach                2.449490  0.000000      3.162278          2.645751
## Tennis Player        3.464102  3.162278      0.000000          3.316625
## Basketball Player    1.732051  2.645751      3.316625          0.000000
## Hocker Player        1.414214  2.449490      3.162278          1.732051
## Racecar Driver       3.162278  3.741657      4.000000          3.000000
## Martial Arts         1.414214  2.449490      3.162278          1.000000
## Mountaineer          1.414214  2.449490      3.464102          1.732051
## Wrestler             4.123106  4.582576      4.358899          4.242641
## Athlete              1.732051  2.645751      3.316625          1.414214
## Chess Master         1.414214  2.449490      3.464102          1.732051
## Biologist            2.645751  3.000000      3.000000          2.000000
## Chemist              4.795832  5.196152      4.795832          4.690416
## Physicist            5.291503  5.656854      4.898979          4.358899
## Astronomer           1.414214  2.449490      3.464102          1.732051
## Physician            4.000000  3.464102      4.472136          3.872983
## Phychologist         2.236068  3.000000      3.316625          2.449490
## Economist            4.123106  4.582576      4.358899          4.242641
## Political Scientist  1.414214  2.449490      3.162278          1.000000
## Engineer             1.414214  2.449490      3.162278          1.000000
## Mathematician        1.414214  2.449490      3.162278          1.000000
## Computer Scientist   1.414214  2.449490      3.162278          1.732051
## Inventor             2.449490  3.162278      3.162278          1.732051
## Actor               37.523326 37.576588     36.523965         37.349699
## Musician             8.124038  8.366600      7.615773          8.062258
## Singer              15.264338 15.066519     14.387495         15.231546
## Composer             2.236068  3.000000      3.316625          2.449490
## Sculptor             1.414214  2.449490      3.464102          1.732051
## Artist               1.732051  2.645751      3.316625          1.414214
## Architect            2.000000  2.000000      3.162278          1.732051
## Comic Artist         1.414214  2.449490      3.162278          1.732051
## Film Director        4.000000  4.472136      4.000000          3.316625
## Dancer               1.414214  2.449490      3.464102          1.732051
## Social Activist      5.099020  5.477226      5.291503          3.605551
## Model                2.645751  3.316625      3.872983          2.449490
## Magician             1.414214  2.449490      3.162278          1.732051
## Presenter            2.236068  3.000000      3.872983          2.449490
## Pornographic Actor   2.236068  3.000000      3.316625          2.449490
## Businessperson       1.732051  2.645751      3.316625          0.000000
## Explorer             6.403124  4.582576      6.855655          6.164414
## Astronaut            1.414214  2.449490      3.162278          1.000000
## Companion            3.316625  3.316625      4.582576          3.464102
## Extremist            1.414214  2.449490      3.464102          1.732051
##                     Hocker Player Racecar Driver Martial Arts Mountaineer
## Politician              58.480766      58.154965    58.000000   58.617404
## Religious Figure        11.445523      11.704700    11.269428   11.445523
## Nobleman                 2.236068       3.605551     2.236068    2.236068
## Military Person          4.123106       5.000000     3.000000    4.123106
## Philosopher             10.099505      10.392305     9.165151   10.198039
## Writer                  15.842980      15.264338    15.524175   16.217275
## Historian                1.414214       3.162278     0.000000    1.414214
## Journalist               1.732051       3.000000     1.732051    1.732051
## Soccer Player           28.600699      28.565714    28.635642   28.635642
## Referee                  1.414214       3.162278     1.414214    1.414214
## Coach                    2.449490       3.741657     2.449490    2.449490
## Tennis Player            3.162278       4.000000     3.162278    3.464102
## Basketball Player        1.732051       3.000000     1.000000    1.732051
## Hocker Player            0.000000       2.449490     1.414214    1.414214
## Racecar Driver           2.449490       0.000000     3.162278    2.449490
## Martial Arts             1.414214       3.162278     0.000000    1.414214
## Mountaineer              1.414214       2.449490     1.414214    0.000000
## Wrestler                 3.000000       3.000000     4.123106    4.123106
## Athlete                  1.000000       2.236068     1.732051    1.732051
## Chess Master             1.414214       3.162278     1.414214    1.414214
## Biologist                2.236068       2.645751     2.645751    2.645751
## Chemist                  3.872983       2.645751     4.582576    4.358899
## Physicist                4.690416       4.242641     4.472136    5.099020
## Astronomer               1.414214       3.162278     1.414214    1.414214
## Physician                3.162278       3.162278     4.000000    4.000000
## Phychologist             1.000000       2.236068     2.236068    2.236068
## Economist                3.000000       3.000000     4.123106    4.123106
## Political Scientist      1.414214       3.162278     0.000000    1.414214
## Engineer                 1.414214       3.162278     0.000000    1.414214
## Mathematician            1.414214       3.162278     0.000000    1.414214
## Computer Scientist       0.000000       2.449490     1.414214    1.414214
## Inventor                 2.000000       3.162278     1.414214    2.449490
## Actor                   36.523965      35.383612    37.389838   37.443290
## Musician                 7.071068       6.480741     8.000000    8.124038
## Singer                  14.247807      13.228757    15.264338   15.198684
## Composer                 1.000000       2.236068     2.236068    2.236068
## Sculptor                 1.414214       3.162278     1.414214    1.414214
## Artist                   1.732051       3.316625     1.000000    1.732051
## Architect                1.414214       2.828427     1.414214    2.000000
## Comic Artist             0.000000       2.449490     1.414214    1.414214
## Film Director            3.464102       3.464102     3.162278    3.741657
## Dancer                   1.414214       3.162278     1.414214    1.414214
## Social Activist          5.099020       5.291503     4.242641    5.099020
## Model                    2.236068       3.000000     2.645751    2.645751
## Magician                 0.000000       2.449490     1.414214    1.414214
## Presenter                2.236068       3.605551     2.236068    2.236068
## Pornographic Actor       1.000000       2.236068     2.236068    2.236068
## Businessperson           1.732051       3.000000     1.000000    1.732051
## Explorer                 6.403124       7.000000     6.082763    6.403124
## Astronaut                1.414214       3.162278     0.000000    1.414214
## Companion                3.316625       4.358899     3.316625    3.316625
## Extremist                1.414214       3.162278     1.414214    1.414214
##                      Wrestler   Athlete Chess Master Biologist   Chemist
## Politician          58.094750 58.335238    58.514955 58.043087 57.280014
## Religious Figure    12.083046 11.401754    11.445523 11.489125 12.165525
## Nobleman             4.472136  2.449490     2.236068  3.162278  5.099020
## Military Person      5.656854  4.242641     4.123106  4.690416  5.477226
## Philosopher         10.535654 10.148892    10.099505 10.344080  9.746794
## Writer              14.966630 15.620499    16.155494 15.165751 14.071247
## Historian            4.123106  1.732051     1.414214  2.645751  4.582576
## Journalist           4.242641  1.414214     1.732051  2.000000  4.898979
## Soccer Player       28.757608 28.478062    28.600699 28.231188 28.827071
## Referee              4.123106  1.732051     1.414214  2.645751  4.795832
## Coach                4.582576  2.645751     2.449490  3.000000  5.196152
## Tennis Player        4.358899  3.316625     3.464102  3.000000  4.795832
## Basketball Player    4.242641  1.414214     1.732051  2.000000  4.690416
## Hocker Player        3.000000  1.000000     1.414214  2.236068  3.872983
## Racecar Driver       3.000000  2.236068     3.162278  2.645751  2.645751
## Martial Arts         4.123106  1.732051     1.414214  2.645751  4.582576
## Mountaineer          4.123106  1.732051     1.414214  2.645751  4.358899
## Wrestler             0.000000  3.162278     4.123106  3.741657  2.449490
## Athlete              3.162278  0.000000     1.732051  1.414214  4.000000
## Chess Master         4.123106  1.732051     0.000000  2.645751  4.582576
## Biologist            3.741657  1.414214     2.645751  0.000000  4.472136
## Chemist              2.449490  4.000000     4.582576  4.472136  0.000000
## Physicist            4.358899  4.582576     5.291503  4.795832  3.605551
## Astronomer           4.123106  1.732051     1.414214  2.645751  4.795832
## Physician            2.645751  3.000000     4.000000  3.316625  3.605551
## Phychologist         2.000000  1.414214     2.236068  2.449490  3.162278
## Economist            0.000000  3.162278     4.123106  3.741657  2.449490
## Political Scientist  4.123106  1.732051     1.414214  2.645751  4.582576
## Engineer             4.123106  1.732051     1.414214  2.645751  4.582576
## Mathematician        4.123106  1.732051     1.414214  2.645751  4.582576
## Computer Scientist   3.000000  1.000000     1.414214  2.236068  3.872983
## Inventor             3.605551  2.236068     2.449490  3.000000  3.872983
## Actor               33.570821 36.482873    37.523326 36.482873 33.331667
## Musician             4.123106  7.141428     8.124038  7.416198  4.582576
## Singer              11.313708 14.212670    15.264338 14.212670 11.401754
## Composer             2.000000  1.414214     2.236068  2.449490  3.162278
## Sculptor             4.123106  1.732051     0.000000  2.645751  4.582576
## Artist               4.242641  2.000000     1.000000  2.828427  4.472136
## Architect            3.316625  1.732051     2.000000  2.645751  3.872983
## Comic Artist         3.000000  1.000000     1.414214  2.236068  3.872983
## Film Director        3.872983  3.605551     3.741657  4.123106  3.000000
## Dancer               4.123106  1.732051     0.000000  2.645751  4.582576
## Social Activist      6.403124  4.582576     5.099020  4.358899  6.244998
## Model                3.741657  2.000000     2.645751  2.449490  4.472136
## Magician             3.000000  1.000000     1.414214  2.236068  3.872983
## Presenter            4.472136  2.449490     2.236068  3.162278  5.099020
## Pornographic Actor   2.000000  1.414214     2.236068  2.449490  3.162278
## Businessperson       4.242641  1.414214     1.732051  2.000000  4.690416
## Explorer             7.483315  6.480741     6.403124  6.782330  7.615773
## Astronaut            4.123106  1.732051     1.414214  2.645751  4.582576
## Companion            5.099020  3.464102     3.316625  4.000000  5.656854
## Extremist            4.123106  1.732051     1.414214  2.645751  4.795832
##                     Physicist Astronomer Physician Phychologist Economist
## Politician          55.497748  58.360946 56.550862    58.335238 58.094750
## Religious Figure    11.789826  10.440307 10.630146    11.575837 12.083046
## Nobleman             5.567764   2.236068  3.316625     2.828427  4.472136
## Military Person      3.316625   4.123106  5.567764     4.472136  5.656854
## Philosopher          6.633250  10.099505 10.488088    10.148892 10.535654
## Writer              11.958261  16.278821 14.594520    15.491933 14.966630
## Historian            4.472136   1.414214  4.000000     2.236068  4.123106
## Journalist           5.196152   1.732051  3.872983     2.449490  4.242641
## Soccer Player       28.844410  28.635642 26.758176    28.618176 28.757608
## Referee              5.291503   1.414214  4.000000     2.236068  4.123106
## Coach                5.656854   2.449490  3.464102     3.000000  4.582576
## Tennis Player        4.898979   3.464102  4.472136     3.316625  4.358899
## Basketball Player    4.358899   1.732051  3.872983     2.449490  4.242641
## Hocker Player        4.690416   1.414214  3.162278     1.000000  3.000000
## Racecar Driver       4.242641   3.162278  3.162278     2.236068  3.000000
## Martial Arts         4.472136   1.414214  4.000000     2.236068  4.123106
## Mountaineer          5.099020   1.414214  4.000000     2.236068  4.123106
## Wrestler             4.358899   4.123106  2.645751     2.000000  0.000000
## Athlete              4.582576   1.732051  3.000000     1.414214  3.162278
## Chess Master         5.291503   1.414214  4.000000     2.236068  4.123106
## Biologist            4.795832   2.645751  3.316625     2.449490  3.741657
## Chemist              3.605551   4.795832  3.605551     3.162278  2.449490
## Physicist            0.000000   5.291503  4.690416     4.358899  4.358899
## Astronomer           5.291503   0.000000  3.741657     2.236068  4.123106
## Physician            4.690416   3.741657  0.000000     2.645751  2.645751
## Phychologist         4.358899   2.236068  2.645751     0.000000  2.000000
## Economist            4.358899   4.123106  2.645751     2.000000  0.000000
## Political Scientist  4.472136   1.414214  4.000000     2.236068  4.123106
## Engineer             4.472136   1.414214  4.000000     2.236068  4.123106
## Mathematician        4.472136   1.414214  4.000000     2.236068  4.123106
## Computer Scientist   4.690416   1.414214  3.162278     1.000000  3.000000
## Inventor             3.162278   2.449490  3.741657     2.236068  3.605551
## Actor               34.088121  37.523326 34.583233    35.538711 33.570821
## Musician             6.000000   8.124038  5.656854     6.082763  4.123106
## Singer              12.845233  15.264338 12.124356    13.266499 11.313708
## Composer             4.358899   2.236068  2.645751     0.000000  2.000000
## Sculptor             5.291503   1.414214  4.000000     2.236068  4.123106
## Artist               4.582576   1.732051  4.123106     2.449490  4.242641
## Architect            4.000000   2.000000  2.828427     1.732051  3.316625
## Comic Artist         4.690416   1.414214  3.162278     1.000000  3.000000
## Film Director        2.000000   4.000000  4.242641     3.316625  3.872983
## Dancer               5.291503   1.414214  4.000000     2.236068  4.123106
## Social Activist      3.741657   5.099020  5.830952     5.385165  6.403124
## Model                5.000000   2.645751  3.605551     2.449490  3.741657
## Magician             4.690416   1.414214  3.162278     1.000000  3.000000
## Presenter            5.567764   2.236068  4.358899     2.828427  4.472136
## Pornographic Actor   4.358899   2.236068  2.645751     0.000000  2.000000
## Businessperson       4.358899   1.732051  3.872983     2.449490  4.242641
## Explorer             7.141428   6.403124  5.567764     6.633250  7.483315
## Astronaut            4.472136   1.414214  4.000000     2.236068  4.123106
## Companion            6.082763   2.236068  3.872983     3.741657  5.099020
## Extremist            5.291503   0.000000  3.741657     2.236068  4.123106
##                     Political Scientist  Engineer Mathematician
## Politician                    58.000000 58.000000     58.000000
## Religious Figure              11.269428 11.269428     11.269428
## Nobleman                       2.236068  2.236068      2.236068
## Military Person                3.000000  3.000000      3.000000
## Philosopher                    9.165151  9.165151      9.165151
## Writer                        15.524175 15.524175     15.524175
## Historian                      0.000000  0.000000      0.000000
## Journalist                     1.732051  1.732051      1.732051
## Soccer Player                 28.635642 28.635642     28.635642
## Referee                        1.414214  1.414214      1.414214
## Coach                          2.449490  2.449490      2.449490
## Tennis Player                  3.162278  3.162278      3.162278
## Basketball Player              1.000000  1.000000      1.000000
## Hocker Player                  1.414214  1.414214      1.414214
## Racecar Driver                 3.162278  3.162278      3.162278
## Martial Arts                   0.000000  0.000000      0.000000
## Mountaineer                    1.414214  1.414214      1.414214
## Wrestler                       4.123106  4.123106      4.123106
## Athlete                        1.732051  1.732051      1.732051
## Chess Master                   1.414214  1.414214      1.414214
## Biologist                      2.645751  2.645751      2.645751
## Chemist                        4.582576  4.582576      4.582576
## Physicist                      4.472136  4.472136      4.472136
## Astronomer                     1.414214  1.414214      1.414214
## Physician                      4.000000  4.000000      4.000000
## Phychologist                   2.236068  2.236068      2.236068
## Economist                      4.123106  4.123106      4.123106
## Political Scientist            0.000000  0.000000      0.000000
## Engineer                       0.000000  0.000000      0.000000
## Mathematician                  0.000000  0.000000      0.000000
## Computer Scientist             1.414214  1.414214      1.414214
## Inventor                       1.414214  1.414214      1.414214
## Actor                         37.389838 37.389838     37.389838
## Musician                       8.000000  8.000000      8.000000
## Singer                        15.264338 15.264338     15.264338
## Composer                       2.236068  2.236068      2.236068
## Sculptor                       1.414214  1.414214      1.414214
## Artist                         1.000000  1.000000      1.000000
## Architect                      1.414214  1.414214      1.414214
## Comic Artist                   1.414214  1.414214      1.414214
## Film Director                  3.162278  3.162278      3.162278
## Dancer                         1.414214  1.414214      1.414214
## Social Activist                4.242641  4.242641      4.242641
## Model                          2.645751  2.645751      2.645751
## Magician                       1.414214  1.414214      1.414214
## Presenter                      2.236068  2.236068      2.236068
## Pornographic Actor             2.236068  2.236068      2.236068
## Businessperson                 1.000000  1.000000      1.000000
## Explorer                       6.082763  6.082763      6.082763
## Astronaut                      0.000000  0.000000      0.000000
## Companion                      3.316625  3.316625      3.316625
## Extremist                      1.414214  1.414214      1.414214
##                     Computer Scientist  Inventor    Actor  Musician    Singer
## Politician                   58.480766 57.201399 60.64652 57.166424 56.435804
## Religious Figure             11.445523 11.269428 38.89730 13.820275 18.761663
## Nobleman                      2.236068  3.000000 37.56328  8.306624 15.099669
## Military Person               4.123106  2.236068 37.18871  8.544004 15.748016
## Philosopher                  10.099505  8.124038 36.55133 11.489125 17.464249
## Writer                       15.842980 14.387495 31.79623 13.892444 15.811388
## Historian                     1.414214  1.414214 37.38984  8.000000 15.264338
## Journalist                    1.732051  2.645751 37.48333  8.185353 15.231546
## Soccer Player                28.600699 28.670542 46.21688 29.461840 29.983329
## Referee                       1.414214  2.449490 37.52333  8.124038 15.264338
## Coach                         2.449490  3.162278 37.57659  8.366600 15.066519
## Tennis Player                 3.162278  3.162278 36.52396  7.615773 14.387495
## Basketball Player             1.732051  1.732051 37.34970  8.062258 15.231546
## Hocker Player                 0.000000  2.000000 36.52396  7.071068 14.247807
## Racecar Driver                2.449490  3.162278 35.38361  6.480741 13.228757
## Martial Arts                  1.414214  1.414214 37.38984  8.000000 15.264338
## Mountaineer                   1.414214  2.449490 37.44329  8.124038 15.198684
## Wrestler                      3.000000  3.605551 33.57082  4.123106 11.313708
## Athlete                       1.000000  2.236068 36.48287  7.141428 14.212670
## Chess Master                  1.414214  2.449490 37.52333  8.124038 15.264338
## Biologist                     2.236068  3.000000 36.48287  7.416198 14.212670
## Chemist                       3.872983  3.872983 33.33167  4.582576 11.401754
## Physicist                     4.690416  3.162278 34.08812  6.000000 12.845233
## Astronomer                    1.414214  2.449490 37.52333  8.124038 15.264338
## Physician                     3.162278  3.741657 34.58323  5.656854 12.124356
## Phychologist                  1.000000  2.236068 35.53871  6.082763 13.266499
## Economist                     3.000000  3.605551 33.57082  4.123106 11.313708
## Political Scientist           1.414214  1.414214 37.38984  8.000000 15.264338
## Engineer                      1.414214  1.414214 37.38984  8.000000 15.264338
## Mathematician                 1.414214  1.414214 37.38984  8.000000 15.264338
## Computer Scientist            0.000000  2.000000 36.52396  7.071068 14.247807
## Inventor                      2.000000  0.000000 36.30427  7.071068 14.387495
## Actor                        36.523965 36.304270  0.00000 29.495762 22.781571
## Musician                      7.071068  7.071068 29.49576  0.000000  7.549834
## Singer                       14.247807 14.387495 22.78157  7.549834  0.000000
## Composer                      1.000000  2.236068 35.53871  6.082763 13.266499
## Sculptor                      1.414214  2.449490 37.52333  8.124038 15.264338
## Artist                        1.732051  1.732051 37.40321  8.062258 15.297059
## Architect                     1.414214  1.414214 36.41428  7.071068 14.177447
## Comic Artist                  0.000000  2.000000 36.52396  7.071068 14.247807
## Film Director                 3.464102  2.000000 35.18522  6.480741 13.601471
## Dancer                        1.414214  2.449490 37.52333  8.124038 15.264338
## Social Activist               5.099020  3.741657 37.14835  9.055385 15.842980
## Model                         2.236068  3.000000 36.53765  7.416198 14.352700
## Magician                      0.000000  2.000000 36.52396  7.071068 14.247807
## Presenter                     2.236068  3.000000 37.56328  8.306624 15.362291
## Pornographic Actor            1.000000  2.236068 35.53871  6.082763 13.266499
## Businessperson                1.732051  1.732051 37.34970  8.062258 15.231546
## Explorer                      6.403124  6.082763 37.77565 10.049876 15.748016
## Astronaut                     1.414214  1.414214 37.38984  8.000000 15.264338
## Companion                     3.316625  3.872983 37.64306  8.660254 15.427249
## Extremist                     1.414214  2.449490 37.52333  8.124038 15.264338
##                      Composer  Sculptor    Artist Architect Comic Artist
## Politician          58.335238 58.514955 57.870545 57.218878    58.480766
## Religious Figure    11.575837 11.445523 11.313708 11.180340    11.445523
## Nobleman             2.828427  2.236068  2.449490  1.732051     2.236068
## Military Person      4.472136  4.123106  3.162278  3.316625     4.123106
## Philosopher         10.148892 10.099505  9.110434  9.165151    10.099505
## Writer              15.491933 16.155494 15.427249 14.866069    15.842980
## Historian            2.236068  1.414214  1.000000  1.414214     1.414214
## Journalist           2.449490  1.732051  2.000000  2.236068     1.732051
## Soccer Player       28.618176 28.600699 28.618176 27.712813    28.600699
## Referee              2.236068  1.414214  1.732051  2.000000     1.414214
## Coach                3.000000  2.449490  2.645751  2.000000     2.449490
## Tennis Player        3.316625  3.464102  3.316625  3.162278     3.162278
## Basketball Player    2.449490  1.732051  1.414214  1.732051     1.732051
## Hocker Player        1.000000  1.414214  1.732051  1.414214     0.000000
## Racecar Driver       2.236068  3.162278  3.316625  2.828427     2.449490
## Martial Arts         2.236068  1.414214  1.000000  1.414214     1.414214
## Mountaineer          2.236068  1.414214  1.732051  2.000000     1.414214
## Wrestler             2.000000  4.123106  4.242641  3.316625     3.000000
## Athlete              1.414214  1.732051  2.000000  1.732051     1.000000
## Chess Master         2.236068  0.000000  1.000000  2.000000     1.414214
## Biologist            2.449490  2.645751  2.828427  2.645751     2.236068
## Chemist              3.162278  4.582576  4.472136  3.872983     3.872983
## Physicist            4.358899  5.291503  4.582576  4.000000     4.690416
## Astronomer           2.236068  1.414214  1.732051  2.000000     1.414214
## Physician            2.645751  4.000000  4.123106  2.828427     3.162278
## Phychologist         0.000000  2.236068  2.449490  1.732051     1.000000
## Economist            2.000000  4.123106  4.242641  3.316625     3.000000
## Political Scientist  2.236068  1.414214  1.000000  1.414214     1.414214
## Engineer             2.236068  1.414214  1.000000  1.414214     1.414214
## Mathematician        2.236068  1.414214  1.000000  1.414214     1.414214
## Computer Scientist   1.000000  1.414214  1.732051  1.414214     0.000000
## Inventor             2.236068  2.449490  1.732051  1.414214     2.000000
## Actor               35.538711 37.523326 37.403208 36.414283    36.523965
## Musician             6.082763  8.124038  8.062258  7.071068     7.071068
## Singer              13.266499 15.264338 15.297059 14.177447    14.247807
## Composer             0.000000  2.236068  2.449490  1.732051     1.000000
## Sculptor             2.236068  0.000000  1.000000  2.000000     1.414214
## Artist               2.449490  1.000000  0.000000  1.732051     1.732051
## Architect            1.732051  2.000000  1.732051  0.000000     1.414214
## Comic Artist         1.000000  1.414214  1.732051  1.414214     0.000000
## Film Director        3.316625  3.741657  3.000000  2.828427     3.464102
## Dancer               2.236068  0.000000  1.000000  2.000000     1.414214
## Social Activist      5.385165  5.099020  4.358899  4.472136     5.099020
## Model                2.449490  2.645751  2.828427  2.645751     2.236068
## Magician             1.000000  1.414214  1.732051  1.414214     0.000000
## Presenter            2.828427  2.236068  2.449490  2.645751     2.236068
## Pornographic Actor   0.000000  2.236068  2.449490  1.732051     1.000000
## Businessperson       2.449490  1.732051  1.414214  1.732051     1.732051
## Explorer             6.633250  6.403124  6.164414  5.196152     6.403124
## Astronaut            2.236068  1.414214  1.000000  1.414214     1.414214
## Companion            3.741657  3.316625  3.464102  3.316625     3.316625
## Extremist            2.236068  1.414214  1.732051  2.000000     1.414214
##                     Film Director    Dancer Social Activist     Model  Magician
## Politician              56.267220 58.514955       55.731499 58.163562 58.480766
## Religious Figure        11.532563 11.445523       11.532563 11.575837 11.445523
## Nobleman                 4.358899  2.236068        5.385165  3.162278  2.236068
## Military Person          2.645751  4.123106        3.000000  4.690416  4.123106
## Philosopher              7.211103 10.099505        6.928203 10.344080 10.099505
## Writer                  13.152946 16.155494       13.000000 15.748016 15.842980
## Historian                3.162278  1.414214        4.242641  2.645751  1.414214
## Journalist               4.123106  1.732051        4.582576  1.414214  1.732051
## Soccer Player           28.774989 28.600699       28.635642 28.548205 28.600699
## Referee                  4.000000  1.414214        5.099020  2.645751  1.414214
## Coach                    4.472136  2.449490        5.477226  3.316625  2.449490
## Tennis Player            4.000000  3.464102        5.291503  3.872983  3.162278
## Basketball Player        3.316625  1.732051        3.605551  2.449490  1.732051
## Hocker Player            3.464102  1.414214        5.099020  2.236068  0.000000
## Racecar Driver           3.464102  3.162278        5.291503  3.000000  2.449490
## Martial Arts             3.162278  1.414214        4.242641  2.645751  1.414214
## Mountaineer              3.741657  1.414214        5.099020  2.645751  1.414214
## Wrestler                 3.872983  4.123106        6.403124  3.741657  3.000000
## Athlete                  3.605551  1.732051        4.582576  2.000000  1.000000
## Chess Master             3.741657  0.000000        5.099020  2.645751  1.414214
## Biologist                4.123106  2.645751        4.358899  2.449490  2.236068
## Chemist                  3.000000  4.582576        6.244998  4.472136  3.872983
## Physicist                2.000000  5.291503        3.741657  5.000000  4.690416
## Astronomer               4.000000  1.414214        5.099020  2.645751  1.414214
## Physician                4.242641  4.000000        5.830952  3.605551  3.162278
## Phychologist             3.316625  2.236068        5.385165  2.449490  1.000000
## Economist                3.872983  4.123106        6.403124  3.741657  3.000000
## Political Scientist      3.162278  1.414214        4.242641  2.645751  1.414214
## Engineer                 3.162278  1.414214        4.242641  2.645751  1.414214
## Mathematician            3.162278  1.414214        4.242641  2.645751  1.414214
## Computer Scientist       3.464102  1.414214        5.099020  2.236068  0.000000
## Inventor                 2.000000  2.449490        3.741657  3.000000  2.000000
## Actor                   35.185224 37.523326       37.148351 36.537652 36.523965
## Musician                 6.480741  8.124038        9.055385  7.416198  7.071068
## Singer                  13.601471 15.264338       15.842980 14.352700 14.247807
## Composer                 3.316625  2.236068        5.385165  2.449490  1.000000
## Sculptor                 3.741657  0.000000        5.099020  2.645751  1.414214
## Artist                   3.000000  1.000000        4.358899  2.828427  1.732051
## Architect                2.828427  2.000000        4.472136  2.645751  1.414214
## Comic Artist             3.464102  1.414214        5.099020  2.236068  0.000000
## Film Director            0.000000  3.741657        4.000000  4.123106  3.464102
## Dancer                   3.741657  0.000000        5.099020  2.645751  1.414214
## Social Activist          4.000000  5.099020        0.000000  5.000000  5.099020
## Model                    4.123106  2.645751        5.000000  0.000000  2.236068
## Magician                 3.464102  1.414214        5.099020  2.236068  0.000000
## Presenter                4.358899  2.236068        5.385165  1.414214  2.236068
## Pornographic Actor       3.316625  2.236068        5.385165  2.449490  1.000000
## Businessperson           3.316625  1.732051        3.605551  2.449490  1.732051
## Explorer                 6.557439  6.403124        7.000000  6.782330  6.403124
## Astronaut                3.162278  1.414214        4.242641  2.645751  1.414214
## Companion                5.000000  3.316625        5.916080  4.000000  3.316625
## Extremist                4.000000  1.414214        5.099020  2.645751  1.414214
##                     Presenter Pornographic Actor Businessperson  Explorer
## Politician          58.472216          58.335238      57.853263 53.805204
## Religious Figure    11.575837          11.575837      11.224972 11.747340
## Nobleman             2.828427           2.828427       2.449490  4.472136
## Military Person      4.472136           4.472136       3.162278  6.324555
## Philosopher         10.344080          10.148892       9.219544 10.148892
## Writer              16.370706          15.491933      15.297059 14.422205
## Historian            2.236068           2.236068       1.000000  6.082763
## Journalist           1.414214           2.449490       1.414214  6.480741
## Soccer Player       28.687977          28.618176      28.513155 23.388031
## Referee              2.236068           2.236068       1.732051  6.403124
## Coach                3.000000           3.000000       2.645751  4.582576
## Tennis Player        3.872983           3.316625       3.316625  6.855655
## Basketball Player    2.449490           2.449490       0.000000  6.164414
## Hocker Player        2.236068           1.000000       1.732051  6.403124
## Racecar Driver       3.605551           2.236068       3.000000  7.000000
## Martial Arts         2.236068           2.236068       1.000000  6.082763
## Mountaineer          2.236068           2.236068       1.732051  6.403124
## Wrestler             4.472136           2.000000       4.242641  7.483315
## Athlete              2.449490           1.414214       1.414214  6.480741
## Chess Master         2.236068           2.236068       1.732051  6.403124
## Biologist            3.162278           2.449490       2.000000  6.782330
## Chemist              5.099020           3.162278       4.690416  7.615773
## Physicist            5.567764           4.358899       4.358899  7.141428
## Astronomer           2.236068           2.236068       1.732051  6.403124
## Physician            4.358899           2.645751       3.872983  5.567764
## Phychologist         2.828427           0.000000       2.449490  6.633250
## Economist            4.472136           2.000000       4.242641  7.483315
## Political Scientist  2.236068           2.236068       1.000000  6.082763
## Engineer             2.236068           2.236068       1.000000  6.082763
## Mathematician        2.236068           2.236068       1.000000  6.082763
## Computer Scientist   2.236068           1.000000       1.732051  6.403124
## Inventor             3.000000           2.236068       1.732051  6.082763
## Actor               37.563280          35.538711      37.349699 37.775654
## Musician             8.306624           6.082763       8.062258 10.049876
## Singer              15.362291          13.266499      15.231546 15.748016
## Composer             2.828427           0.000000       2.449490  6.633250
## Sculptor             2.236068           2.236068       1.732051  6.403124
## Artist               2.449490           2.449490       1.414214  6.164414
## Architect            2.645751           1.732051       1.732051  5.196152
## Comic Artist         2.236068           1.000000       1.732051  6.403124
## Film Director        4.358899           3.316625       3.316625  6.557439
## Dancer               2.236068           2.236068       1.732051  6.403124
## Social Activist      5.385165           5.385165       3.605551  7.000000
## Model                1.414214           2.449490       2.449490  6.782330
## Magician             2.236068           1.000000       1.732051  6.403124
## Presenter            0.000000           2.828427       2.449490  6.633250
## Pornographic Actor   2.828427           0.000000       2.449490  6.633250
## Businessperson       2.449490           2.449490       0.000000  6.164414
## Explorer             6.633250           6.633250       6.164414  0.000000
## Astronaut            2.236068           2.236068       1.000000  6.082763
## Companion            3.741657           3.741657       3.464102  6.164414
## Extremist            2.236068           2.236068       1.732051  6.403124
##                     Astronaut Companion Extremist
## Politician          58.000000 57.227616 58.360946
## Religious Figure    11.269428  8.366600 10.440307
## Nobleman             2.236068  3.162278  2.236068
## Military Person      3.000000  5.099020  4.123106
## Philosopher          9.165151 10.344080 10.099505
## Writer              15.524175 16.309506 16.278821
## Historian            0.000000  3.316625  1.414214
## Journalist           1.732051  3.464102  1.732051
## Soccer Player       28.635642 27.874720 28.635642
## Referee              1.414214  3.316625  1.414214
## Coach                2.449490  3.316625  2.449490
## Tennis Player        3.162278  4.582576  3.464102
## Basketball Player    1.000000  3.464102  1.732051
## Hocker Player        1.414214  3.316625  1.414214
## Racecar Driver       3.162278  4.358899  3.162278
## Martial Arts         0.000000  3.316625  1.414214
## Mountaineer          1.414214  3.316625  1.414214
## Wrestler             4.123106  5.099020  4.123106
## Athlete              1.732051  3.464102  1.732051
## Chess Master         1.414214  3.316625  1.414214
## Biologist            2.645751  4.000000  2.645751
## Chemist              4.582576  5.656854  4.795832
## Physicist            4.472136  6.082763  5.291503
## Astronomer           1.414214  2.236068  0.000000
## Physician            4.000000  3.872983  3.741657
## Phychologist         2.236068  3.741657  2.236068
## Economist            4.123106  5.099020  4.123106
## Political Scientist  0.000000  3.316625  1.414214
## Engineer             0.000000  3.316625  1.414214
## Mathematician        0.000000  3.316625  1.414214
## Computer Scientist   1.414214  3.316625  1.414214
## Inventor             1.414214  3.872983  2.449490
## Actor               37.389838 37.643060 37.523326
## Musician             8.000000  8.660254  8.124038
## Singer              15.264338 15.427249 15.264338
## Composer             2.236068  3.741657  2.236068
## Sculptor             1.414214  3.316625  1.414214
## Artist               1.000000  3.464102  1.732051
## Architect            1.414214  3.316625  2.000000
## Comic Artist         1.414214  3.316625  1.414214
## Film Director        3.162278  5.000000  4.000000
## Dancer               1.414214  3.316625  1.414214
## Social Activist      4.242641  5.916080  5.099020
## Model                2.645751  4.000000  2.645751
## Magician             1.414214  3.316625  1.414214
## Presenter            2.236068  3.741657  2.236068
## Pornographic Actor   2.236068  3.741657  2.236068
## Businessperson       1.000000  3.464102  1.732051
## Explorer             6.082763  6.164414  6.403124
## Astronaut            0.000000  3.316625  1.414214
## Companion            3.316625  0.000000  2.236068
## Extremist            1.414214  2.236068  0.000000

dis_entities

A procedure to create a disparity matrix between entities

dis_entities(pantheon, method = "euclidean", category_row = FALSE)
##                Vietnam New Zealand    Latvia   Uruguay     Chile South Africa
## Vietnam       0.000000    6.855655  5.000000 10.954451  9.327379     8.426150
## New Zealand   6.855655    0.000000  7.745967 11.618950 11.661904    10.099505
## Latvia        5.000000    7.745967  0.000000  9.949874  6.928203     6.928203
## Uruguay      10.954451   11.618950  9.949874  0.000000  8.185353     9.000000
## Chile         9.327379   11.661904  6.928203  8.185353  0.000000     6.000000
## South Africa  8.426150   10.099505  6.928203  9.000000  6.000000     0.000000
## Saudi Arabia 16.248077   19.519221 15.000000 19.697716 15.652476    15.264338
## Portugal     40.730824   43.772137 38.444766 35.735137 34.351128    35.860842
## China        37.202150   39.962482 34.423829 38.444766 32.726136    33.090784
## Canada       42.731721   39.887341 42.154478 43.335897 41.821047    39.987498
##              Saudi Arabia Portugal    China   Canada
## Vietnam          16.24808 40.73082 37.20215 42.73172
## New Zealand      19.51922 43.77214 39.96248 39.88734
## Latvia           15.00000 38.44477 34.42383 42.15448
## Uruguay          19.69772 35.73514 38.44477 43.33590
## Chile            15.65248 34.35113 32.72614 41.82105
## South Africa     15.26434 35.86084 33.09078 39.98750
## Saudi Arabia      0.00000 34.51087 29.35984 44.49719
## Portugal         34.51087  0.00000 31.22499 55.21775
## China            29.35984 31.22499  0.00000 48.10405
## Canada           44.49719 55.21775 48.10405  0.00000

diversity()

Code Name Information
hh The Herfindahl-Hirschman Index The major benefit of the Herfindahl index in relation to measures such as the concentration ratio is that the HHI gives more weight to larger firms. Other advantages of the HHI include its simple calculation method and the small amount of often easily obtainable data required for the calculation
gs Gini-Simpson index per object This measure is also known as the Gibbs-Martin index or the Blau index in sociology, psychology and management studies.< > > The original Simpson index λ equals the probability that two entities taken at random from the dataset of interest (with replacement) represent the same type.
s. Simpson index per entity NA
td,hn Hill Numbers NA
bp Berger-Parker index Equals to the maximum pi value in the entity, i.e. the proportional abundance of the most abundant type. When this measure is required, the reciprocal measure is also computed.
re Renyi entropy It corresponds to the logarithm of the hill numbers
ev Pielou evenness Pielou’s evenness is an index that measures diversity along with species richness. While species richness is the number of different species in a given area, evenness is the count of individuals of each species in an area. A calculated value of Pielou’s evenness ranges from 0 (no evenness) to 1 (complete evenness). When taken into account along with other indices such as Simpson’s index or Shannon’s index, a more thorough description of a community’s structure can be interpreted.
rao Rao diversity NA
rs. (Rao-Stirling diversity) For the pairwise disparities the measure allows to consider the Jaccard Index, Euclidean distances, Cosine Similarity among others.
diversity(pantheon)

Robust Rao

https://cran.r-project.org/web/packages/robustrao/robustrao.pdf

pubdata1 <- data(pubdata1)
## Warning in data(pubdata1): data set 'pubdata1' not found