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))
}
wasquith/copBasic documentation built on March 10, 2024, 11:24 a.m.