R/sem.R

#' Calculate standard error
#'
#' @param x the  vector of numbers
#' @return the standard error
#' @import
#'     igraph
#'     stats
#' @examples
#'     sem(1:10)
#' @export

sem <- function(x) {

  x1 <- sd(x, na.rm=T) /  sqrt(length(x[!is.na(x)]))
  return(x1)

}
jalapic/unicorno documentation built on May 18, 2019, 8:09 p.m.