R/EMPIRcopdf.R

"EMPIRcopdf" <-
function(para=NULL, ...) {
  if(length(names(para)) != 2) {
    warning("a data.frame having only two columns is required")
    return(NULL)
  }

  uobs <- para[,1];
  vobs <- para[,2];
  n <- length(uobs);
  
  m <- length(uobs);
  if(m != length(vobs)) {
    warning("lengths of u and v are not identical")
    return(NULL) 
  }
  empcop <- EMPIRcop(uobs,vobs, para=para, ...)
  return(data.frame(u=uobs, v=vobs, empcop=empcop))
}

Try the copBasic package in your browser

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

copBasic documentation built on Oct. 17, 2023, 5:08 p.m.