https://github.com/cran/Hmisc
Raw File
Tip revision: a1ea504ec71906d11995b2fc2f7b34d735428e3d authored by Frank E Harrell Jr on 30 April 2015, 09:58:55 UTC
version 3.16-0
Tip revision: a1ea504
na.keep.s
na.keep <- function(mf)
{
  w <- na.detail.response(mf)
  if(length(w))
    class(w) <- 'keep'
  
  attr(mf, "na.action") <- w
  mf
}


naprint.keep <- function(x, ...)
{
  if(length(x)) {
    cat("\nStatistics on Response by Missing/Non-Missing Status of Predictors\n\n")
    print(unclass(x))
    cat("\n")
  }
  
  invisible()
}


naresid.keep <- function(omit, x, ...) x
back to top