R/nullmod.R

Defines functions predict.nullmod

Documented in predict.nullmod

# nullmod.R
# ::rtemis::
# E.D. Gennatas www.lambdamd.org

#' \pkg{rtemis} internal: predict for an object of class `nullmod`
#'
#' @param object Object of class `nullmod`
#' @param newdata Not used
#' @param ... Not used
#' 
#' @method predict nullmod
#' @export

predict.nullmod <- function(object, newdata = NULL, ...) {

  if (!is.null(object$fitted)) object$fitted else 0

} # rtemis::predict.nullmod
egenn/rtemis documentation built on April 24, 2024, 6:58 p.m.