R/scode.R

scode <- function(p) {
# lifted from stats::printCoefmat
  p <- abs(p)
  if (p <= 0.001) return("***") else
    if (p <= 0.01) return("**") else
      if (p <= 0.05) return("*") else
        if (p <= 0.1) return(".") else
          return(" ")
}

Try the cwhmisc package in your browser

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

cwhmisc documentation built on May 1, 2019, 7:55 p.m.