getCourseCorrection: Get Course Correction Parameter

Description Usage Arguments Value Examples

View source: R/getCourseCorrection.R

Description

This function estimates and returns the course correction parameter, gamma, for courses that are not the base course.

Usage

1
2
3
4
getCourseCorrection(results, alpha = 4.4, beta = 2355,
  lower_thresh = 0.7, upper_thresh = 1, race_dist = "8k",
  baseID = "mGeneseo15", baseIntercept = 1531.96,
  teams_to_drop = NULL)

Arguments

results

The results for the race you are speed rating

alpha

The number of seconds one speed rating point is equal to

beta

The number of seconds marking the zero point of the scale

lower_thresh

The quantile results must be greater than to contribute to calculating the course correction

upper_thresh

The quantile results must be less than to contribute to calculating the course correction

race_dist

The distance of the race being analyzed

baseID

The race ID for the base race

baseIntercept

The regression intercept for the base race

Value

gammaFit The best fit estimate for the course correction parameter, gamma.

Examples

1
getCourseCorrection(results = geneseo16, alpha = 4.4, beta = 2355, lower_thresh = 0.1, upper_thresh = 0.95, race_dist = "8k", baseID = "mGeneseo15", baseIntercept = 1527.197)

sf585978/speedR documentation built on Nov. 25, 2019, 10:10 p.m.