R/model_using_instant_velocity.R
mixed_model_using_instant_velocity.RdThis function models the sprint instantaneous velocity using mono-exponential equation and non-linear
mixed model using nlme to estimate fixed and random maximum sprinting speed (MSS)
and relative acceleration (TAU) parameters. In mixed model, fixed and random effects are estimated for
MSS and TAU parameters using athlete as levels. velocity is used as target or outcome
variable, and time as predictor.
mixed_model_using_instant_velocity( data, time, velocity, athlete, time_correction = 0, na.rm = FALSE )
| data | Data frame |
|---|---|
| time | Character string. Name of the column in |
| velocity | Character string. Name of the column in |
| athlete | Character string. Name of the column in |
| time_correction | Numeric vector. Used to filter out noisy data from the radar gun.
This correction is done by adding |
| na.rm | Logical. Default is FALSE |
List object with the following elements:
List with two data frames: fixed and random containing the following
estimated parameters: MSS, TAU, MAC, and PMAX
List with the following components:
RSE, R_squared, minErr, maxErr, and RMSE
Model returned by the nlme function
Data frame used to estimate the sprint parameters, consisting of athlete, time,
velocity, and pred_velocity columns
Samozino P. 2018. A Simple Method for Measuring Force, Velocity and Power Capabilities and Mechanical Effectiveness During Sprint Running. In: Morin J-B, Samozino P eds. Biomechanics of Training and Testing. Cham: Springer International Publishing, 237–267. DOI: 10.1007/978-3-319-05633-3_11.
data("radar_gun_data") mixed_model <- mixed_model_using_instant_velocity(radar_gun_data, "time", "velocity", "athlete") mixed_model$parameters#> $fixed #> MSS TAU MAC PMAX #> 1 8.301178 1.007782 8.23708 17.09437 #> #> $random #> athlete MSS TAU MAC PMAX #> 1 James 9.998556 1.1108457 9.000851 22.49888 #> 2 Jim 7.997945 0.8886712 8.999892 17.99516 #> 3 John 8.000051 1.0690357 7.483427 14.96695 #> 4 Kimberley 9.005500 1.2855706 7.005061 15.77102 #> 5 Samantha 6.503839 0.6847851 9.497635 15.44277 #>