R/se.R

Defines functions se

Documented in se

se <-
function(x,
               na.rm = FALSE)
{
  if(!is.vector(x))
    stop("The function is only defined for vectors")
  if(na.rm)
    x <- x[!is.na(x)]
  sqrt(var(x) / length(x))
}

Try the lmf package in your browser

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

lmf documentation built on June 24, 2022, 5:06 p.m.