R/factor_mode.R

factor_mode <- function(x) {
  
  p_vector <- m_estimator(x)
  x_levels <- levels(x)
  x_mode <- which_maximum(p_vector)
  
  # return
  rout <- x_levels[x_mode]
  return(rout)

}
  
dsnavega/imputeForest documentation built on May 8, 2019, 2:43 p.m.