https://github.com/cran/Hmisc
Raw File
Tip revision: 4159964dd155507be9cd8a3ba0e59a7d9c9c82a0 authored by Frank E Harrell Jr on 26 January 2019, 22:20:03 UTC
version 4.2-0
Tip revision: 4159964
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