View source: R/coding_function.R
weighted_coding | R Documentation |
Produce factor coding function so that the intercept is a weighted sum of factor means using weights proportional to the frequency of factor levels in a corpus independent of the data. This has the advantage of working consistently on different data sets.
weighted_coding(x)
x |
a factor used as the corpus |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.