Calcualtes standard error

SE(x, NA.val = "NA")

Arguments

x

numeric value

NA.val

the value to exclude, default is 'NA'

Value

Calculates standard error (sd()/sqrt(n)).

Examples

set.seed(123)
example=c(rnorm(12),NA,NA,NA)
SE(example);#should return 0.2671171
#> [1] 0.2671171