R/CV.R

Defines functions CV

Documented in CV

CV = function(y)
{
  y = y[!is.na(y)]
  if (length(y) == 0) return(NA)
  sd(y, na.rm=TRUE)/mean(y, na.rm=TRUE)*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.