R/update.DirichletRegModel.R

Defines functions update.DirichletRegModel

Documented in update.DirichletRegModel

update.DirichletRegModel <- function(object, formula., ..., evaluate = TRUE){
  new_formula <- update(object$formula, formula.)
  new_call <- object$call
  new_call$formula <- as.formula(new_formula)
  if(evaluate) eval(new_call) else return(new_call)
}

Try the DirichletReg package in your browser

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

DirichletReg documentation built on May 18, 2021, 3 p.m.