View source: R/cellwise_utils.R
| cellWeights | R Documentation |
For each continuous column, standardize by median and MAD,
then apply a robust weight function (Huber or Tukey bisquare)
to obtain a weight in [0, 1] per cell. Categorical
(factor, character, logical) columns receive weight 1.
cellWeights(X, method = "huber", alpha = NULL)
X |
a data frame or matrix of dimension |
method |
weight function: |
alpha |
tuning constant. If |
an n \times p numeric matrix of weights
Matthias Templ
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.