Categorical data manipulation and various encoding methods.
Categorical data manipulation and various encoding methods.
(->levels cs)
(->levels cs order)
Returns list of levels from given sequence of categorical values.
If order
is passed it will be used as a reference.
Returns list of levels from given sequence of categorical values. If `order` is passed it will be used as a reference.
(backward-difference levels)
Backward difference coding.
Compares reversed pairs of consecutive levels. Intercept is the mean of all levels.
Backward difference coding. Compares reversed pairs of consecutive levels. Intercept is the mean of all levels.
(deviation levels)
Deviation coding.
Compares each (but last) levels to the mean. Intercept is the mean of all levels.
Deviation coding. Compares each (but last) levels to the mean. Intercept is the mean of all levels.
(difference levels)
Backward difference coding.
Compares reversed pairs of consecutive levels. Intercept is the mean of the first level.
Backward difference coding. Compares reversed pairs of consecutive levels. Intercept is the mean of the first level.
(dummy [l0 & ls :as levels])
Dummy coding.
Compares each level to a reference (first) level. Intercept is the mean of the first level.
Dummy coding. Compares each level to a reference (first) level. Intercept is the mean of the first level.
(forward-difference levels)
Forward difference coding.
Comperes pairs of consecutive levels. Intercept is the mean of all levels.
Forward difference coding. Comperes pairs of consecutive levels. Intercept is the mean of all levels.
(helmert levels)
Helmert coding.
Compares each (but last) levels to all following levels. Intercept is the mean of all levels.
Helmert coding. Compares each (but last) levels to all following levels. Intercept is the mean of all levels.
(mean-contrasts coding)
(mean-contrasts {:keys [names levels mapping]} approx?)
Returns mean contrasts for given coding scheme.
If approx?
is true or a number, approximate values to given number of decimal digits (default: true
)
Returns mean contrasts for given coding scheme. If `approx?` is true or a number, approximate values to given number of decimal digits (default: `true`)
(polynomial levels)
Orthonormal polynomials coding.
n-1 orthonormal polynomials. Intercept is the mean of all levels.
Orthonormal polynomials coding. n-1 orthonormal polynomials. Intercept is the mean of all levels.
(reverse-helmert levels)
Reverse Helmert coding.
Compares each (but first) levels to all preceding levels. Intercept is the mean of all levels.
Reverse Helmert coding. Compares each (but first) levels to all preceding levels. Intercept is the mean of all levels.
(simple [l0 & ls :as levels])
Simple coding.
Compares each level to a reference (first) level. Intercept is the mean of all levels.
Simple coding. Compares each level to a reference (first) level. Intercept is the mean of all levels.
cljdoc builds & hosts documentation for Clojure/Script libraries
Ctrl+k | Jump to recent docs |
← | Move to previous article |
→ | Move to next article |
Ctrl+/ | Jump to the search field |