https://github.com/cran/Hmisc
Raw File
Tip revision: 756202ad5070d5ebcadc19712ed6f7f983d4e990 authored by Frank E Harrell Jr on 31 December 2016, 08:59:06 UTC
version 4.0-2
Tip revision: 756202a
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