R/formula.distfreereg.R

Defines functions formula.distfreereg

Documented in formula.distfreereg

formula.distfreereg <-
  function(x, ...){
    stopifnot(is.list(x))
    if(is.null(x[["test_mean"]])){
      output <- NULL
    } else {
      output <- tryCatch(formula(x[["test_mean"]]), error = function(e) NULL)
    }
    return(output)
  }

Try the distfreereg package in your browser

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

distfreereg documentation built on April 4, 2025, 12:30 a.m.