R/allS4.R

setOldClass("Registry")
setGeneric("parGLM", function(formula, store, ..., jobids) standardGeneric("parGLM"))
setMethod("parGLM", c("formula", "Registry"), function(formula, store, ..., jobids) {
 theCall = match.call()
 ndots = names(list(...))
 stopifnot(all(c("family", "binit", "tol", "maxit") %in% ndots))
 stopifnot(inherits(list(...)$family, "function"))
 stopifnot(inherits(list(...)$binit, "numeric"))
 stopifnot(inherits(list(...)$maxit, "numeric"))
 stopifnot(inherits(list(...)$tol, "numeric"))
 # try to check compatibility of length(binit) with features of formula?
 .parglm(formula, store, ..., jobids, theCall)
})
  

Try the parglms package in your browser

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

parglms documentation built on Nov. 8, 2020, 5:51 p.m.