R/update.R

#' Update and refit an \pkg{ouch} model
#'
#' `update` will update a model and re-fit.
#' This allows one to change the data and/or parameters.
#' 
#' @name update
#' @docType methods
#' @rdname update
#' @family methods for ouch trees
#' @importFrom stats update
#'
#' @return `update` returns a new fitted-model object of the same class as  `object`.
#' @param object fitted model object.
#' @param data data that replace those used in the original fit.
#' @param ... Additional arguments replace the corresponding arguments in the original call.
NULL

Try the ouch package in your browser

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

ouch documentation built on April 25, 2023, 9:10 a.m.