The following learners are available for continuous outcomes:
Details
lnr_meanlnr_earthlnr_gamlnr_glmlnr_glmerlnr_glmnetlnr_lmlnr_lmerlnr_rangerlnr_rflnr_xgboost
See ?density_learners to learn more about using conditional density
estimation in nadir.
lnr_mean is generally provided only for benchmarking purposes to compare
other learners against to ensure correct specification of learners, since any
prediction algorithm should (in theory) out-perform just using the mean of
the outcome for all predictions.
If you'd like to build a new learner, we recommend reading the
source code of several of the learners provided with {nadir} to
get a sense of how they should be specified.
A learner, as {nadir} understands them, is a function which
takes in `data`, a `formula`, possibly `...`, and
returns a function that predicts on its input `newdata`.
A simple example is reproduced here for ease of reference:
