View source: R/head_to_head_lmer.R
Fit an 'lmer()' model to prior head-to-head results for a set of skiers in order to plot expected vs observed performances. This is attempting to serve the same general purpose as 'head_to_head_race()' but using a more "sophisticated" method.
1 2 3 |
ath_names |
character vector of athlete names |
race_id |
integer; id of the race to assess performance of |
num_opp |
integer; number of opponents to consider in each race, if 'Inf' use all opponents |
cutoff |
integer; size of time window in days to collect prior races from |
min_encounters |
integer; only include opponents who have faced an athlete at least this many times |
measure |
character; one of "rank", "fispints" or "pb" (percent back) |
restrict_by |
currently unused |
race_title |
character; race title to add to the plot |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.