dorem | R Documentation |
dorem
dorem()
fits a model.
dorem(x, ...) ## Default S3 method: dorem(x, ...) ## S3 method for class 'data.frame' dorem(x, y, ...) ## S3 method for class 'matrix' dorem(x, y, ...) ## S3 method for class 'formula' dorem(formula, data, ...) ## S3 method for class 'recipe' dorem(x, data, ...)
x |
Depending on the context:
|
... |
Not currently used, but required for extensibility. |
y |
When
|
formula |
A formula specifying the outcome terms on the left-hand side, and the predictor terms on the right-hand side. |
data |
When a recipe or formula is used,
|
A dorem
object.
require(tidyverse) data("bike_score") banister_model <- dorem( Test_5min_Power ~ BikeScore, bike_score, method = "banister" ) bike_score$pred <- predict(banister_model, bike_score)$.pred ggplot(bike_score, aes(x = Day, y = pred)) + theme_bw() + geom_line() + geom_point(aes(y = Test_5min_Power), color = "red") + ylab("Test 5min Power")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.