R/StatsFunctions.R

Defines functions st.err

##This contains various stats functions


st.err <- function(x){
  x.noNA <- x[!(is.na(x))]
  if(length(x.noNA) < length(x) ){warning("There were NAs")}
  y <- sd(x.noNA)/sqrt(length(x.noNA))
  return(y)
}
UW-L-S-Academic-Information-Management/UWdataUTIL documentation built on April 25, 2022, 1:11 a.m.