R/mi_report.R

Defines functions mi_report

mi_report <- function(theta){
  fxy <- theta$f
  fx <- theta$fx
  fy <- theta$fy
  fx.fy <- fx[fxy$x] * fy[fxy$y]
  den <- fxy$prob / ifelse(fx.fy == 0,1e-300,fx.fy)
  den <- ifelse(den == 0,1e-300, den)
  IM <- sum(fxy$prob * log(den))
  return(IM)
}

Try the MLCOPULA package in your browser

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

MLCOPULA documentation built on Oct. 24, 2024, 1:06 a.m.