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:Robin K. S. Hankin [aut, cre]

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'))

Peer review:

Bug tracker:https://github.com/robinhankin/hyper2/issues

Uses libs:
  • c++– GNU Standard C++ Library v3
Datasets:

On CRAN:

7.94 score 5 stars 1 packages 38 scripts 684 downloads 163 exports 19 dependencies

Last updated 13 days agofrom:6c928ad1a9. Checks:OK: 9. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 09 2024
R-4.5-win-x86_64OKNov 09 2024
R-4.5-linux-x86_64OKNov 09 2024
R-4.4-win-x86_64OKNov 09 2024
R-4.4-mac-x86_64OKNov 09 2024
R-4.4-mac-aarch64OKNov 09 2024
R-4.3-win-x86_64OKNov 09 2024
R-4.3-mac-x86_64OKNov 09 2024
R-4.3-mac-aarch64OKNov 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.Rmdusingknitr::rmarkdownon Nov 09 2024.

Last update: 2024-01-26
Started: 2024-01-19

Generalized Plackett-Luce Likelihoods

Rendered fromhyper3.Rmdusingknitr::rmarkdownon Nov 09 2024.

Last update: 2024-08-19
Started: 2022-04-14

Creating hyper3 objects in the hyper2 package

Rendered fromhyper3_creation.Rmdusingknitr::rmarkdownon 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.Rmdusingknitr::rmarkdownon Nov 09 2024.

Last update: 2024-01-26
Started: 2018-11-16

Integration in hyper2

Rendered fromintegration.Rnwusingutils::Sweaveon Nov 09 2024.

Last update: 2024-05-15
Started: 2019-02-04

The ordertrans() function in the hyper2 package

Rendered fromordertrans.Rmdusingknitr::rmarkdownon Nov 09 2024.

Last update: 2024-03-04
Started: 2024-01-26

The hyper2 package

Rendered fromhyper2.Rnwusingutils::Sweaveon Nov 09 2024.

Last update: 2024-05-15
Started: 2017-10-01

The zero-sum-power issue in the hyper2 package

Rendered fromzeropower.Rmdusingknitr::rmarkdownon Nov 09 2024.

Last update: 2024-04-12
Started: 2024-01-21

Readme and manuals

Help Manual

Help pageTopics
The Hyperdirichlet Distribution, Mark 2hyper2-package
Convert an order table with DNS entries to a nice order tableas.ordertable
Translate attempt tables to hyper3 support functionsattemptstable2supp attemptstable2supp3
Normalizing constant for the hyperdirichlet distributionB dhyper2 dhyper2_e e_to_p Jacobian mean mean_hyper2 mgf probability p_to_e
Enforce the zero power sum conditionbalance
Baseball results, following Agrestibaseball baseball_maxp baseball_table
Carcinoma dataset discussed by Agresticarcinoma carcinoma_count carcinoma_maxp carcinoma_table
Convert a character vector to a numeric vectorchar2num character_to_number
Chess playing datasetchess chess_maxp chess_table rock_paper_scissors
Consistency check for hyper2 objectsconsistency consistencyplot
Formula 1 dataset: the constructors' championshipconstructor constructors constructor_2020 constructor_2020_maxp constructor_2020_table constructor_2021 constructor_2021_maxp constructor_2021_table constructor_table_2020 constructor_table_2021
Counterstrikecounterstrike counterstrike_likelihood counterstrike_maxp zacslist
Wrappers to c callsaccessor 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-2018Curling curling curling1 curling1_maxp curling2 curling2_maxp curling_maxp curling_table
Dirichlet distribution and generalizationsConnor Dirichlet dirichlet dirichlet3 GD gd GD_wong is.dirichlet Mosimann rdirichlet rp_unif
Eurovision Dance contest datasetEurodance eurodance eurodance_maxp eurodance_table
Eurovision Song contest dataseteuro euro2009 Eurovision eurovision Eurovision2009 eurovision2009 eurovision2009_votingtable eurovision_maxp Eurovision_song_contest eurovision_table
Extract or replace parts of a hyper2 objectassign_lowlevel extract Extract.hyper2 extractor overwrite_lowlevel [.hyper2 [<-.hyper2
Fillup functionfillup indep
Formula 1 datasetF1 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 statisticschoose_losers choose_winners elimination general_grouped_order_likelihood general_grouped_rank_likelihood ggol ggrl goodbad Plackett Plackett-Luce race rankvec_likelihood rank_likelihood
Differential calculusbordered_hessian gradient gradientn hessian hessian_bordered hessian_lowlevel is_ok_hessian
Dataset on communication breakdown in handover between physicianshandoff handover handover_maxp handover_table malpractice
First few terms of a distributionhead.hyper2
Hepatitis dataset discussed by Agrestihepatitis hepatitis_count hepatitis_maxp hepatitis_table
Basic functions in the hyper2 packageas.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' objectsas.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'Neillicons icons_matrix icons_maxp icons_table oneill
Increment and decrement operatorsdec decrement inc increment trial
1963 World Chess Championshipscollusion curacao curacao3 interzonal interzonal_collusion interzonal_collusion_maxp interzonal_maxp interzonal_table stockholm1962
Javelin datasetjavelin javelin1 javelin1_maxp javelin2 javelin2_maxp javelin_maxp javelin_table javelin_vector
Jester datasethumor humour jester jester_maxp jester_table jokes maxjest
Karate datasetkarate karate_maxp karate_table karate_zermelo
Karpov, Kasparov, Anandblack_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 playersdiscard discard_flawed discard_flawed2 drop drop_flawed keep keep_flawed keep_flawed2 retain retain_flawed
Length method for hyper2 objectslength length.hyper2
Log likelihood functionslike_series like_single_list loglik loglik_single
Masterchef series 6MasterChef masterchef masterchef_constrained_maxp masterchef_maxp
Convert a matrix to a likelihood functionmatrix2supp matrix_to_HD saffy volley
Maximum likelihood estimationallequal equalp equalprobs maxp maxplist maxp_lsl maxp_simplex maxp_single maxp_single2
MotoGP datasetmoto motoGP motoGP_2019 moto_maxp moto_table
Kronecker matrix product functionalitymult_grid pair_grid
Basketball datasetbasketball NBA NBA_likelihood NBA_maxp NBA_table
Arithmetic Ops Group Methods for hyper2 objectshyper2_add hyper2_prod hyper2_sum_numeric Ops Ops.hyper2 sum.hyper2
Arithmetic Ops Group Methods for hyper3 objectshyper3_add hyper3_equal hyper3_prod hyper3_sum_numeric Ops.hyper3 sum.hyper3
Order tablesordertable order_table
Calculate points from an order tableordertable2points
Translate order tables to support functionsordertable2supp ordervec2supp order_obs salad
Order transformationordertrans ordertransplot
Various functionality for races and hyper3 likelihood functionsargs2ordervec char2nv cheering cheering3 den3 num3 ordertable2supp3 ordervec2supp3 ordervec2supp3a race3 race_to_hyper3 rankvec_likelihood3
Pairwise comparisonshome_away home_away3 pairwise white_draw white_draw3 zermelo
Pentathlonpentathlon pentathlon_maxp pentathlon_ordertable pentathlon_table
Powerboat datasetpowerboat powerboat2018 powerboat_2018 powerboat_maxp powerboat_table
Print methodsgive_warning_on_nonzero_power_sum nonzero_power_sum pnv power_sum Print print print.hyper2 print.hyper3
Profile likelihood and supportprofile profile_likelihood profile_likelihood_single profile_support profile_support_single proflike profsup profsupp
Substitute players of a hyper2 objectpsubs psubs_names psubs_pnames psubs_single
Player with advantageadditional_strength chameleon extra_strength pwa training_strength wet_strength white_strength
Convert rank tables to and from order tablesordertable_to_ranktable print.ranktablesummary ranktable ranktable_to_ordertable ranktable_to_printable_object summary.ranktable wikitable_to_ranktable
Random 'hyper2' objectsrhyper2
Random hyper3 objectsrhyper3 rpair3 rrace3 rracehyper3 rwinner3
Rowing dataset, scullingallrowers rowing rowing_maxp rowing_minimal rowing_minimal_maxp rowing_minimal_table rowing_table sculling sculls2016
Random samples from the prior of a 'hyper2' objectrp
A random race with given BT strengthsrrace
Random ranksprint.ranktable rorder_single rrank rrank_single
Figure skating at the 2002 Winter Olympicsskating skating_maxp skating_table skeleton
Sailing at the 2000 Summer Olympics - solingsoling 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 objectsprint.summary.hyper2 summary.hyper2
Methods for suplist objectsas.suplist loglik_lsl lsl lsl_add Ops.lsl Ops.suplist sum.suplist suplist suplist_add suplist_times_scalar supplist
Surfing datasetsurfing surfing_maxp surfing_table surfing_venuetypes
Indian Premier League T20 cricketT20 T20_maxp T20_table T20_toss T20_toss_maxp
Match outcomes from repeated table tennis matchesping_pong table_tennis table_tennis_serve
Match outcomes from repeated doubles tennis matchesdoubles doubles_ghost doubles_noghost tennis tennis_ghost tennis_ghost_maxp tennis_maxp tennis_noghost
Hypothesis testingequalp.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 objecttidy
New Zealand University ranking datauniversities universities_maxp universities_table
Results from the NOCS volleyball leaguevb vb_synthetic volleyball volleyball_matrix volleyball_maxp volleyball_results volleyball_table
Race results from the 2014-2015 Volvo Ocean Racevolvo volvo2014 volvo_maxp volvo_ocean_race volvo_table volvo_table_2014
Zap weak competitorszapweak
Zipf's lawzipf