R/especov.R

Defines functions especov

Documented in especov

especov <- function(thres1,thres2,ncat,r,C){

  sum <- 0
  ncat1 <- ncat[1]

  for (i in 1:ncat1){
    for (j in 1:ncat1){
      tmp <- i * j * C[i,j]
      sum <- sum + tmp
    }
  }

  espcov <- sum
  return(espcov)
}

Try the SINRELEF.LD package in your browser

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

SINRELEF.LD documentation built on June 22, 2024, 9:14 a.m.