R/conv.test.r

conv.test <- function(theta1, theta2, epsilon) {
  diffvec <- theta1 - theta2
  diff <- sqrt(sum(diffvec**2))/sqrt(sum(theta1**2))
  (diff < epsilon)
}
mdonoghoe/addreg documentation built on May 22, 2019, 4:19 p.m.