cosinor_reg()
is a parsnip friendly method for specification of cosinor regression model before fitting.
Arguments
- mode
A character string that describes the type of model. In this case, it only supports type of "regression".
- period
A non-negative number or vector of numbers that represent the expected periodicity of the data to be analyzed.
- object
Cosinor model specification
- fresh
A logical for whether the arguments should be modified in place or replaced altogether
- ...
Extensible
- x
Cosinor model specification
Examples
library(parsnip)
cosinor_reg(period = c(24, 8)) |>
parsnip::set_engine("card") |>
parsnip::set_mode("regression")
#> Cosinor Model Specification (regression)
#>
#> Main Arguments:
#> period = c(24, 8)
#>
#> Computational engine: card
#>