Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions R/nullmodel.R
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,18 @@ predict.nullmodel <- function (object, new_data = NULL, type = NULL, ...) {

#' Null model
#'
#' Fit a single mean or largest class model. `null_model()` is the user-facing
#' function that relies on the underlying computational function, `nullmodel()`.
#'
#' `null_model()` defines a simple, non-informative model. It doesn't have any
#' main arguments. This function can fit classification and regression models.
#'
#' `null_model()` emulates other model building functions, but returns the
#' simplest model possible given a training set: a single mean for numeric
#' outcomes and the most prevalent class for factor outcomes. When class
#' probabilities are requested, the percentage of the training set samples with
#' the most prevalent class is returned.
#'
#' @param mode A single character string for the type of model. The only
#' possible values for this model are `"regression"` and `"classification"`.
#' @param engine A single character string specifying what computational engine
Expand Down
10 changes: 10 additions & 0 deletions man/null_model.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading