R/get_ecdf.R

Defines functions get_ecdf

get_ecdf <-
function(obj, x = obj$monti$x)  {
  
  Fn <- ecdf(1 - unclass(obj$consensus.diss))
  y <- Fn(x)
  n <- length(y)
  area <- sum((y[2:n] + y[1:(n-1)])*(x[2:n] - x[1:(n-1)])/2)
  ans <- list(y = y, area = area)
  invisible(ans)
  
}

Try the yaConsensus package in your browser

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

yaConsensus documentation built on April 3, 2025, 10:12 p.m.