R/onload.R

'.onAttach' <- function(lib, pkg="lava.tobit") {
  addhook("lava.tobit.estimate.hook","estimate.hooks")
  addhook("lava.tobit.color.hook","color.hooks")
  addhook("lava.tobit.sim.hook","sim.hooks")
  addhook("lava.tobit.init.hook","init.hooks")

  lava.options(tobitAlgorithm=mvtnorm::GenzBretz(abseps=1e-5),
               tobitseed=1, threshold=1)
  desc <- utils::packageDescription(pkg)
  packageStartupMessage("\nLoading '", desc$Package, "' package...\n",
                        "Version    : ", desc$Version, "\n")
}

Try the lava.tobit package in your browser

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

lava.tobit documentation built on May 2, 2019, 4:58 p.m.