S3 method for returning predictions of shorts_model
# S3 method for shorts_model predict(object, ...)
object |
|
---|---|
... | Extra arguments. Not used |
split_times <- data.frame( distance = c(5, 10, 20, 30, 35), time = c(1.20, 1.96, 3.36, 4.71, 5.35) ) # Simple model simple_model <- with( split_times, model_using_splits(distance, time) ) predict(simple_model)#> [1] 1.219807 1.960767 3.339339 4.694821 5.371333