Skip to contents

Packages the arguments required by [dkge_contrast()] into a reusable service object. The service can be passed to [dkge_pipeline()] (via the `service` argument when it gains support) or executed manually with `.dkge_run_contrast_service()`.

Usage

dkge_contrast_service(method = c("loso", "kfold", "analytic"), ridge = 0, ...)

Arguments

method

Cross-fitting strategy ("loso", "kfold", or "analytic").

ridge

Ridge penalty forwarded to [dkge_contrast()].

...

Additional arguments stored with the service (e.g. `folds`, `parallel`).

Value

Object of class `dkge_contrast_service`.

Examples

contrast_srv <- dkge_contrast_service(method = "loso", ridge = 0)