weighted_coding: Weighted coding matrix

View source: R/coding_function.R

weighted_codingR Documentation

Weighted coding matrix

Description

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.

Usage

weighted_coding(x)

Arguments

x

a factor used as the corpus


gmonette/gnew documentation built on July 9, 2022, 12:57 p.m.