Package: hyper2 3.1-0
hyper2: The Hyperdirichlet Distribution, Mark 2
A suite of routines for the hyperdirichlet distribution and reified Bradley-Terry; supersedes the 'hyperdirichlet' package; uses 'disordR' discipline <doi:10.48550/ARXIV.2210.03856>. To cite in publications please use Hankin 2017 <doi:10.32614/rj-2017-061>, and for Generalized Plackett-Luce likelihoods use Hankin 2024 <doi:10.18637/jss.v109.i08>.
Authors:
hyper2_3.1-0.tar.gz
hyper2_3.1-0.zip(r-4.5)hyper2_3.1-0.zip(r-4.4)hyper2_3.1-0.zip(r-4.3)
hyper2_3.1-0.tgz(r-4.4-x86_64)hyper2_3.1-0.tgz(r-4.4-arm64)hyper2_3.1-0.tgz(r-4.3-x86_64)hyper2_3.1-0.tgz(r-4.3-arm64)
hyper2_3.1-0.tar.gz(r-4.5-noble)hyper2_3.1-0.tar.gz(r-4.4-noble)
hyper2_3.1-0.tgz(r-4.4-emscripten)hyper2_3.1-0.tgz(r-4.3-emscripten)
hyper2.pdf |hyper2.html✨
hyper2/json (API)
NEWS
# Install 'hyper2' in R: |
install.packages('hyper2', repos = c('https://robinhankin.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/robinhankin/hyper2/issues
- F1_points_2017 - Formula 1 dataset
- F1_table_2016 - Formula 1 dataset
- F1_table_2017 - Formula 1 dataset
- F1_table_2018 - Formula 1 dataset
- F1_table_2019 - Formula 1 dataset
- NBA - Basketball dataset
- NBA_maxp - Basketball dataset
- NBA_table - Basketball dataset
- T20 - Indian Premier League T20 cricket
- T20_maxp - Indian Premier League T20 cricket
- T20_table - Indian Premier League T20 cricket
- T20_toss - Indian Premier League T20 cricket
- baseball - Baseball results, following Agresti
- baseball_maxp - Baseball results, following Agresti
- baseball_table - Baseball results, following Agresti
- carcinoma - Carcinoma dataset discussed by Agresti
- carcinoma_count - Carcinoma dataset discussed by Agresti
- carcinoma_maxp - Carcinoma dataset discussed by Agresti
- carcinoma_table - Carcinoma dataset discussed by Agresti
- chess - Chess playing dataset
- chess3 - Karpov, Kasparov, Anand
- chess3_maxp - Karpov, Kasparov, Anand
- chess_maxp - Chess playing dataset
- chess_table - Chess playing dataset
- constructor_2020 - Formula 1 dataset: the constructors' championship
- constructor_2020_maxp - Formula 1 dataset: the constructors' championship
- constructor_2020_table - Formula 1 dataset: the constructors' championship
- constructor_2021 - Formula 1 dataset: the constructors' championship
- constructor_2021_maxp - Formula 1 dataset: the constructors' championship
- constructor_2021_table - Formula 1 dataset: the constructors' championship
- counterstrike - Counterstrike
- counterstrike_maxp - Counterstrike
- curling1 - Curling at the Winter Olympics, 1998-2018
- curling1_maxp - Curling at the Winter Olympics, 1998-2018
- curling2 - Curling at the Winter Olympics, 1998-2018
- curling2_maxp - Curling at the Winter Olympics, 1998-2018
- curling_table - Curling at the Winter Olympics, 1998-2018
- eurodance - Eurovision Dance contest dataset
- eurodance_maxp - Eurovision Dance contest dataset
- eurodance_table - Eurovision Dance contest dataset
- eurovision - Eurovision Song contest dataset
- eurovision_maxp - Eurovision Song contest dataset
- eurovision_table - Eurovision Song contest dataset
- formula1 - Formula 1 dataset
- handover - Dataset on communication breakdown in handover between physicians
- handover_maxp - Dataset on communication breakdown in handover between physicians
- handover_table - Dataset on communication breakdown in handover between physicians
- hepatitis - Hepatitis dataset discussed by Agresti
- hepatitis_count - Hepatitis dataset discussed by Agresti
- hepatitis_maxp - Hepatitis dataset discussed by Agresti
- hepatitis_table - Hepatitis dataset discussed by Agresti
- icons - Dataset on climate change due to O'Neill
- icons_maxp - Dataset on climate change due to O'Neill
- icons_table - Dataset on climate change due to O'Neill
- interzonal - 1963 World Chess Championships
- interzonal_collusion - 1963 World Chess Championships
- interzonal_collusion_maxp - 1963 World Chess Championships
- interzonal_maxp - 1963 World Chess Championships
- interzonal_table - 1963 World Chess Championships
- javelin1 - Javelin dataset
- javelin1_maxp - Javelin dataset
- javelin2 - Javelin dataset
- javelin2_maxp - Javelin dataset
- javelin_table - Javelin dataset
- javelin_vector - Javelin dataset
- jester - Jester dataset
- jester_maxp - Jester dataset
- jester_table - Jester dataset
- karate - Karate dataset
- karate_maxp - Karate dataset
- karate_table - Karate dataset
- karate_zermelo - Karate dataset
- karpov_kasparov_anand - Karpov, Kasparov, Anand
- kka - Karpov, Kasparov, Anand
- kka_3draws - Karpov, Kasparov, Anand
- kka_3whites - Karpov, Kasparov, Anand
- kka_array - Karpov, Kasparov, Anand
- masterchef - Masterchef series 6
- masterchef_constrained_maxp - Masterchef series 6
- masterchef_maxp - Masterchef series 6
- moto - MotoGP dataset
- moto_maxp - MotoGP dataset
- moto_table - MotoGP dataset
- pentathlon - Pentathlon
- pentathlon_maxp - Pentathlon
- pentathlon_table - Pentathlon
- powerboat - Powerboat dataset
- powerboat_maxp - Powerboat dataset
- powerboat_table - Powerboat dataset
- rowing - Rowing dataset, sculling
- rowing_maxp - Rowing dataset, sculling
- rowing_minimal - Rowing dataset, sculling
- rowing_minimal_maxp - Rowing dataset, sculling
- rowing_minimal_table - Rowing dataset, sculling
- rowing_table - Rowing dataset, sculling
- skating - Figure skating at the 2002 Winter Olympics
- skating_maxp - Figure skating at the 2002 Winter Olympics
- skating_table - Figure skating at the 2002 Winter Olympics
- soling - Sailing at the 2000 Summer Olympics - soling
- soling_after - Sailing at the 2000 Summer Olympics - soling
- soling_after_maxp - Sailing at the 2000 Summer Olympics - soling
- soling_maxp - Sailing at the 2000 Summer Olympics - soling
- soling_qf - Sailing at the 2000 Summer Olympics - soling
- soling_rr1 - Sailing at the 2000 Summer Olympics - soling
- soling_rr2 - Sailing at the 2000 Summer Olympics - soling
- soling_table - Sailing at the 2000 Summer Olympics - soling
- surfing - Surfing dataset
- surfing_maxp - Surfing dataset
- surfing_table - Surfing dataset
- surfing_venuetypes - Surfing dataset
- table_tennis - Match outcomes from repeated table tennis matches
- tennis - Match outcomes from repeated doubles tennis matches
- tennis_ghost - Match outcomes from repeated doubles tennis matches
- tennis_ghost_maxp - Match outcomes from repeated doubles tennis matches
- tennis_maxp - Match outcomes from repeated doubles tennis matches
- universities - New Zealand University ranking data
- universities_maxp - New Zealand University ranking data
- universities_table - New Zealand University ranking data
- volleyball - Results from the NOCS volleyball league
- volleyball_maxp - Results from the NOCS volleyball league
- volleyball_table - Results from the NOCS volleyball league
- volvo - Race results from the 2014-2015 Volvo Ocean Race
- volvo_maxp - Race results from the 2014-2015 Volvo Ocean Race
- volvo_table - Race results from the 2014-2015 Volvo Ocean Race
- zacslist - Counterstrike
Last updated 13 days agofrom:6c928ad1a9. Checks:OK: 9. Indexed: yes.
Target | Result | Date |
---|---|---|
Doc / Vignettes | OK | Nov 09 2024 |
R-4.5-win-x86_64 | OK | Nov 09 2024 |
R-4.5-linux-x86_64 | OK | Nov 09 2024 |
R-4.4-win-x86_64 | OK | Nov 09 2024 |
R-4.4-mac-x86_64 | OK | Nov 09 2024 |
R-4.4-mac-aarch64 | OK | Nov 09 2024 |
R-4.3-win-x86_64 | OK | Nov 09 2024 |
R-4.3-mac-x86_64 | OK | Nov 09 2024 |
R-4.3-mac-aarch64 | OK | Nov 09 2024 |
Exports:accessoraccessor3addLaddL3args2ordervecas.hyper3as.namedvectorlistas.ordertableas.suplistas.weightassign_lowlevelassignerassigner3attemptstable2supp3Bbalancebracketschar2numcharacter_to_numbercheering3choose_loserschoose_winnersconsistencydecden3dhyper2differentiatedifferentiate3dirichletdirichlet3discard_flaweddiscard_flawed2e_to_peliminationequalityequality3equalpequalp.testevaluateevaluate3fillupformula1_points_systemsGDGD_wonggeneral_grouped_rank_likelihoodggrlgoodbadgradientgradientnhessianhome_awayhome_away3hyper2hyper2_addhyper3hyper3_addhyper3_bwhyper3_equalhyper3_mhyper3_nvhyper3_prodhyper3_to_hyper2identityLidentityL3incindepis_ok_hessianis_ok_weightedplayersis_valid_hyper2is_valid_hyper3is.dirichletis.hyper2is.hyper3keep_flawedknownp.testlengthlike_serieslike_single_listlist2nvloglikloglik_lslloglik_single_redundantlsllsl_addmaxpmaxp_lslmaxp_simplexmaxp_singlemaxp_single2maxp3maxplistmean_hyper2mgfmult_gridnum3Ops.lslordertable_to_ranktableordertable2pointsordertable2suppordertable2supp3ordertransordertransplotordervec2suppordervec2supp3ordervec2supp3aoverwriteoverwrite_lowleveloverwrite_lowlevel3overwrite3p_to_epair_gridpairwisepnamespnames<-pnames<-.hyper3pnvpowerspowers<-printprobabilityprofile_support_singleprofsupppsubspsubs_singlepwaracerank_likelihoodranktable_to_ordertableranktable_to_printable_objectrankvec_likelihoodrdirichletrhyper2rhyper3rorder_singlerprp_unifrpair3rracerrace3rracehyper3rrankrrank_singlerwinner3saffysamep.testsetweightsizespecificp.gt.testspecificp.lt.testspecificp.ne.testspecificp.testsum.suplistsuplist_addsuplist_times_scalartidytrialvolleyweights.hyper3white_draw3wikitable_to_ranktablezapweakzermelozipf
Dependencies:alabamacalibratorcubaturedigestdisordRemulatorgmplatticemagrittrmathjaxrMatrixmvtnormnumDerivpartitionspolynomrbibutilsRcppRdpacksets
The dirichlet() function in the hyper2 package
Rendered fromdirichlet.Rmd
usingknitr::rmarkdown
on Nov 09 2024.Last update: 2024-01-26
Started: 2024-01-19
Generalized Plackett-Luce Likelihoods
Rendered fromhyper3.Rmd
usingknitr::rmarkdown
on Nov 09 2024.Last update: 2024-08-19
Started: 2022-04-14
Creating hyper3 objects in the hyper2 package
Rendered fromhyper3_creation.Rmd
usingknitr::rmarkdown
on Nov 09 2024.Last update: 2024-09-26
Started: 2024-08-15
Public perception of climate change: the icons dataset in the hyper2 package
Rendered fromicons.Rmd
usingknitr::rmarkdown
on Nov 09 2024.Last update: 2024-01-26
Started: 2018-11-16
Integration in hyper2
Rendered fromintegration.Rnw
usingutils::Sweave
on Nov 09 2024.Last update: 2024-05-15
Started: 2019-02-04
The ordertrans() function in the hyper2 package
Rendered fromordertrans.Rmd
usingknitr::rmarkdown
on Nov 09 2024.Last update: 2024-03-04
Started: 2024-01-26
The hyper2 package
Rendered fromhyper2.Rnw
usingutils::Sweave
on Nov 09 2024.Last update: 2024-05-15
Started: 2017-10-01
The zero-sum-power issue in the hyper2 package
Rendered fromzeropower.Rmd
usingknitr::rmarkdown
on Nov 09 2024.Last update: 2024-04-12
Started: 2024-01-21
Readme and manuals
Help Manual
Help page | Topics |
---|---|
The Hyperdirichlet Distribution, Mark 2 | hyper2-package |
Convert an order table with DNS entries to a nice order table | as.ordertable |
Translate attempt tables to hyper3 support functions | attemptstable2supp attemptstable2supp3 |
Normalizing constant for the hyperdirichlet distribution | B dhyper2 dhyper2_e e_to_p Jacobian mean mean_hyper2 mgf probability p_to_e |
Enforce the zero power sum condition | balance |
Baseball results, following Agresti | baseball baseball_maxp baseball_table |
Carcinoma dataset discussed by Agresti | carcinoma carcinoma_count carcinoma_maxp carcinoma_table |
Convert a character vector to a numeric vector | char2num character_to_number |
Chess playing dataset | chess chess_maxp chess_table rock_paper_scissors |
Consistency check for hyper2 objects | consistency consistencyplot |
Formula 1 dataset: the constructors' championship | constructor constructors constructor_2020 constructor_2020_maxp constructor_2020_table constructor_2021 constructor_2021_maxp constructor_2021_table constructor_table_2020 constructor_table_2021 |
Counterstrike | counterstrike counterstrike_likelihood counterstrike_maxp zacslist |
Wrappers to c calls | accessor accessor3 addL addL3 assigner assigner3 cplusplus differentiate differentiate3 differentiate_n equal equality equality3 evaluate evaluate3 hyper2_accessor hyper2_addL hyper2_assigner hyper2_differentiate hyper2_equal hyper2_evaluate hyper2_identityL hyper2_overwrite identityL identityL3 overwrite overwrite3 |
Curling at the Winter Olympics, 1998-2018 | Curling curling curling1 curling1_maxp curling2 curling2_maxp curling_maxp curling_table |
Dirichlet distribution and generalizations | Connor Dirichlet dirichlet dirichlet3 GD gd GD_wong is.dirichlet Mosimann rdirichlet rp_unif |
Eurovision Dance contest dataset | Eurodance eurodance eurodance_maxp eurodance_table |
Eurovision Song contest dataset | euro euro2009 Eurovision eurovision Eurovision2009 eurovision2009 eurovision2009_votingtable eurovision_maxp Eurovision_song_contest eurovision_table |
Extract or replace parts of a hyper2 object | assign_lowlevel extract Extract.hyper2 extractor overwrite_lowlevel [.hyper2 [<-.hyper2 |
Fillup function | fillup indep |
Formula 1 dataset | F1 F1_2014 F1_2015 F1_2016 F1_2017 F1_2018 F1_2019 F1_points_2017 F1_table_2016 F1_table_2017 F1_table_2018 F1_table_2019 formula1 formula1_2017_table formula1_points_2017 formula1_points_systems formula1_table_2017 formula_1 formula_one |
Order statistics | choose_losers choose_winners elimination general_grouped_order_likelihood general_grouped_rank_likelihood ggol ggrl goodbad Plackett Plackett-Luce race rankvec_likelihood rank_likelihood |
Differential calculus | bordered_hessian gradient gradientn hessian hessian_bordered hessian_lowlevel is_ok_hessian |
Dataset on communication breakdown in handover between physicians | handoff handover handover_maxp handover_table malpractice |
First few terms of a distribution | head.hyper2 |
Hepatitis dataset discussed by Agresti | hepatitis hepatitis_count hepatitis_maxp hepatitis_table |
Basic functions in the hyper2 package | as.hyper2 brackets brackets.hyper2 hyper2 is.hyper2 is_constant is_valid_hyper2 pnames pnames.hyper2 pnames.suplist pnames<- pnames<-.hyper2 powers powers.hyper2 powers<- powers<-.hyper2 size size.hyper2 |
Weighted probability vectors: 'hyper3' objects | as.hyper3 as.namedvectorlist as.weight assign_lowlevel3 hyper3 hyper3_bw hyper3_m hyper3_nv hyper3_to_hyper2 is.hyper3 is_ok_weightedplayers is_valid_hyper3 list2nv loglik_single_redundant maxp3 overwrite_lowlevel3 pnames<-.hyper3 powers<-.hyper3 setweight weights weights.hyper3 |
Dataset on climate change due to O'Neill | icons icons_matrix icons_maxp icons_table oneill |
Increment and decrement operators | dec decrement inc increment trial |
1963 World Chess Championships | collusion curacao curacao3 interzonal interzonal_collusion interzonal_collusion_maxp interzonal_maxp interzonal_table stockholm1962 |
Javelin dataset | javelin javelin1 javelin1_maxp javelin2 javelin2_maxp javelin_maxp javelin_table javelin_vector |
Jester dataset | humor humour jester jester_maxp jester_table jokes maxjest |
Karate dataset | karate karate_maxp karate_table karate_zermelo |
Karpov, Kasparov, Anand | black_wins chess3 chess3_maxp drawn_games karpov_kasparov_anand kka kka_3draws kka_3whites kka_array plays_white_draws plays_white_loses plays_white_wins white_wins |
Keep or discard players | discard discard_flawed discard_flawed2 drop drop_flawed keep keep_flawed keep_flawed2 retain retain_flawed |
Length method for hyper2 objects | length length.hyper2 |
Log likelihood functions | like_series like_single_list loglik loglik_single |
Masterchef series 6 | MasterChef masterchef masterchef_constrained_maxp masterchef_maxp |
Convert a matrix to a likelihood function | matrix2supp matrix_to_HD saffy volley |
Maximum likelihood estimation | allequal equalp equalprobs maxp maxplist maxp_lsl maxp_simplex maxp_single maxp_single2 |
MotoGP dataset | moto motoGP motoGP_2019 moto_maxp moto_table |
Kronecker matrix product functionality | mult_grid pair_grid |
Basketball dataset | basketball NBA NBA_likelihood NBA_maxp NBA_table |
Arithmetic Ops Group Methods for hyper2 objects | hyper2_add hyper2_prod hyper2_sum_numeric Ops Ops.hyper2 sum.hyper2 |
Arithmetic Ops Group Methods for hyper3 objects | hyper3_add hyper3_equal hyper3_prod hyper3_sum_numeric Ops.hyper3 sum.hyper3 |
Order tables | ordertable order_table |
Calculate points from an order table | ordertable2points |
Translate order tables to support functions | ordertable2supp ordervec2supp order_obs salad |
Order transformation | ordertrans ordertransplot |
Various functionality for races and hyper3 likelihood functions | args2ordervec char2nv cheering cheering3 den3 num3 ordertable2supp3 ordervec2supp3 ordervec2supp3a race3 race_to_hyper3 rankvec_likelihood3 |
Pairwise comparisons | home_away home_away3 pairwise white_draw white_draw3 zermelo |
Pentathlon | pentathlon pentathlon_maxp pentathlon_ordertable pentathlon_table |
Powerboat dataset | powerboat powerboat2018 powerboat_2018 powerboat_maxp powerboat_table |
Print methods | give_warning_on_nonzero_power_sum nonzero_power_sum pnv power_sum Print print print.hyper2 print.hyper3 |
Profile likelihood and support | profile profile_likelihood profile_likelihood_single profile_support profile_support_single proflike profsup profsupp |
Substitute players of a hyper2 object | psubs psubs_names psubs_pnames psubs_single |
Player with advantage | additional_strength chameleon extra_strength pwa training_strength wet_strength white_strength |
Convert rank tables to and from order tables | ordertable_to_ranktable print.ranktablesummary ranktable ranktable_to_ordertable ranktable_to_printable_object summary.ranktable wikitable_to_ranktable |
Random 'hyper2' objects | rhyper2 |
Random hyper3 objects | rhyper3 rpair3 rrace3 rracehyper3 rwinner3 |
Rowing dataset, sculling | allrowers rowing rowing_maxp rowing_minimal rowing_minimal_maxp rowing_minimal_table rowing_table sculling sculls2016 |
Random samples from the prior of a 'hyper2' object | rp |
A random race with given BT strengths | rrace |
Random ranks | print.ranktable rorder_single rrank rrank_single |
Figure skating at the 2002 Winter Olympics | skating skating_maxp skating_table skeleton |
Sailing at the 2000 Summer Olympics - soling | soling soling2000 soling2000_qf soling2000_rr1 soling2000_rr2 soling_after soling_after_maxp soling_maxp soling_qf soling_rr1 soling_rr2 soling_table soling_table_2000 |
Summary method for hyper2 objects | print.summary.hyper2 summary.hyper2 |
Methods for suplist objects | as.suplist loglik_lsl lsl lsl_add Ops.lsl Ops.suplist sum.suplist suplist suplist_add suplist_times_scalar supplist |
Surfing dataset | surfing surfing_maxp surfing_table surfing_venuetypes |
Indian Premier League T20 cricket | T20 T20_maxp T20_table T20_toss T20_toss_maxp |
Match outcomes from repeated table tennis matches | ping_pong table_tennis table_tennis_serve |
Match outcomes from repeated doubles tennis matches | doubles doubles_ghost doubles_noghost tennis tennis_ghost tennis_ghost_maxp tennis_maxp tennis_noghost |
Hypothesis testing | equalp.test knownp.test print.equalptest print.hyper2test samep.test specificp.ge.test specificp.gt.test specificp.le.test specificp.lt.test specificp.ne.test specificp.test |
Tidy up a hyper2 object | tidy |
New Zealand University ranking data | universities universities_maxp universities_table |
Results from the NOCS volleyball league | vb vb_synthetic volleyball volleyball_matrix volleyball_maxp volleyball_results volleyball_table |
Race results from the 2014-2015 Volvo Ocean Race | volvo volvo2014 volvo_maxp volvo_ocean_race volvo_table volvo_table_2014 |
Zap weak competitors | zapweak |
Zipf's law | zipf |