Description Usage Arguments Details Value
Assess and establish the performance of a winner by using the ratings from many different, but similar, races, calls zipf_race.
1 2 |
race |
dataframe of race to handicap |
past_races |
dataframe of past races used to handicap |
race_id |
name of variable to split past_races up by so each split is one race |
btn_var |
name of variable in race with margins between horses |
rating |
name of variable (if applicable) in past_races that contains the ratings of those runners |
results |
default detail, determines the output, other option is simple, which will return the mean rating. |
.progress |
plyr's progress bar (default = "none", options inc. "text", "time", "tk" or "win") |
The past_races dataframe is split according to race_id, so each split should be a small dataframe of a single race. For each of these races they are entered into the zipf_race function as race_2, while the race being handicapped is the race param. The return is a dataframe with the race_id and a rating for the winner of race based on the data from each race in past_races.
Depending on param in results it either returns a solitary rating (the mean of all ratings returned), or a detailed list that can be analysed further, the list contains
n_races number of races used
mean_rtg mean rating for the race
summary summary statistics of ratings returned
ratings ratings dataframe (with vars race_id and zipf_rtg)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.