R/predict.R

#' @rdname predict
#' @title Prediction Methods for Various Models
#' @description Predict values on `mlm_stressor`, `reg_asym`, or `reg_sine`
#'  objects. This expands the \link[stats]{predict} function.
#' @param object A `mlm_stressor`, `reg_asym`, or `reg_sine` object.
#' @param newdata A data.frame object that is the data to be predicted on.
#' @param train_data A data.frame object defaulted to `NULL`. This is only used
#'  when an `mlm_stressor` object needs to be refitted.
#' @param ... Extending the \link[stats]{predict} function default. In this
#'  case, it is ignored.
#' @return A data.frame of predictions if `mlm_stressor` object or vector of
#'  predicted values.
#' @name predict
NULL

Try the stressor package in your browser

Any scripts or data that you put into this service are public.

stressor documentation built on May 29, 2024, 3:09 a.m.