View source: R/directionality.R
var_direction | R Documentation |
Determines directionality of final predictors for binary or regression models, using the sign of the t-statistic or correlation coefficient respectively for each variable compared to the outcomes.
var_direction(object)
object |
a |
Categorical features with >2 levels are assumed to have a meaningful order
for the purposes of directionality. Factors are coerced to ordinal using
data.matrix()
. If factors are multiclass then directionality results should
be ignored.
named vector showing the directionality of final predictors. If the
response vector is multinomial NULL
is returned.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.