https://github.com/cran/Hmisc
Raw File
Tip revision: 577a7aff6615d2ef5c3e240948e4c060758580af authored by Frank E Harrell Jr on 23 March 2020, 06:20:17 UTC
version 4.4-0
Tip revision: 577a7af
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