convert_to_seconds <-function(time_str) {if (is.na(time_str) || time_str =="DNF") return(NA) parts <-unlist(strsplit(time_str, ":")) minutes <-as.numeric(parts[1]) seconds <-as.numeric(parts[2]) milliseconds <-as.numeric(parts[3]) total_seconds <- minutes *60+ seconds + milliseconds /1000return(total_seconds)}British <- British %>%mutate(Time_Retired =sapply(Time_Retired, convert_to_seconds))British$Team <-as.factor(British$Team)fit_race_1 <-brm(formula = Time_Retired ~ Position + Team + Laps + Points + Speed_mph,data = British,family =gaussian(),refresh =0,silent =2,seed =9)
Warning: Rows containing NAs were excluded from the model.
Warning: There were 57 divergent transitions after warmup. See
https://mc-stan.org/misc/warnings.html#divergent-transitions-after-warmup
to find out why this is a problem and how to eliminate them.
Warning: There were 823 transitions after warmup that exceeded the maximum treedepth. Increase max_treedepth above 10. See
https://mc-stan.org/misc/warnings.html#maximum-treedepth-exceeded
Warning: Examine the pairs() plot to diagnose sampling problems
Warning: The largest R-hat is 3.04, indicating chains have not mixed.
Running the chains for more iterations may help. See
https://mc-stan.org/misc/warnings.html#r-hat
Warning: Bulk Effective Samples Size (ESS) is too low, indicating posterior means and medians may be unreliable.
Running the chains for more iterations may help. See
https://mc-stan.org/misc/warnings.html#bulk-ess
Warning: Tail Effective Samples Size (ESS) is too low, indicating posterior variances and tail quantiles may be unreliable.
Running the chains for more iterations may help. See
https://mc-stan.org/misc/warnings.html#tail-ess