R/ssdd.R

Defines functions ssdd

Documented in ssdd

#' @title Sample variance computation
#' @description Computes the sample variance of a vector of observations
#' @param x vector of observations
#' @return the sample variance
#' @export ssdd
#' @examples
#' x = rnorm(100,1,2)
#' ssdd(x)
ssdd <- function(x){
v <- sqrt(var(x)*(length(x)-1)/length(x))
return(v)
}

Try the OVL.CI package in your browser

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

OVL.CI documentation built on Nov. 14, 2023, 1:06 a.m.