R/process.sd.R

"process.sd" <- function(x)
{
  # Log transform first, then exp back
  # Should be equivalent to:
  # sqrt(prod(var(x)[upper.tri(var(x))])^(2/(dim(x)[2]*(dim(x)[2]-1))))
  
  sqrt(exp(sum(log(var(x)[upper.tri(var(x))]))*(2/(dim(x)[2]*(dim(x)[2]-1)))))
}

Try the merror package in your browser

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

merror documentation built on Aug. 29, 2023, 5:06 p.m.