R/geoCV.R

Defines functions geoCV

Documented in geoCV

geoCV = function(y)
{
  y = y[!is.na(y) & y > 0]
  if (length(y) == 0) return(NA)
  ly = log(y)
  vly = var(ly, na.rm=T)
  return(sqrt(exp(vly) - 1)*100)
}

Try the sasLM package in your browser

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

sasLM documentation built on Nov. 19, 2023, 5:12 p.m.