R/sem.R

Defines functions SEM

Documented in SEM

#' SEM
#'
#' This function returns the standard error of the mean.
#' @param x A vector.
#' @keywords sem, standard error
#' @export
#' @examples
#' Sem()

SEM <- function(x,na.rm=TRUE) {
    sd(x,na.rm=TRUE)/
        sqrt(length(x[!is.na(x)]))
}
fiksdala/fiksdal documentation built on Jan. 9, 2022, 10:54 p.m.