R/gb.R

Defines functions gboot

Documented in gboot

gboot <- function(x,gldobj,statistic,...)
{
    if(!(class(gldobj)=='gld'||class(gldobj)=='egld'))
      stop("'gldobj' must be a fitted GLD/EGLD.")
    rgld <- function(data,gldobj)
      ifelse(class(gldobj)=="gld",
             rrsgld(length(data),gldobj$para),
             regld(length(data),gldobj$para))
    boot::boot(x,statistic, sim='parametric',
         ran.gen = rgld, mle = gldobj,...)
  }

Try the gb package in your browser

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

gb documentation built on May 2, 2019, 5:31 a.m.