vacuum_cleaner {vacuum} | R Documentation |
Returns the residuals of a two-way table after removing systemic effects
Description
To remove systemic effects from values in a contingency table, vacuum cleaner uses regression to identify the table's main effect (dual regression), row effect (deviations of row regression from dual regression), and column effect (deviations of column regression from dual regression).
Regression is performed twice: First on the table's original values, then on the resulting residuals. The output is a table of residuals "vacuum cleaned" of likely systemic effects.
Usage
vacuum_cleaner(x)
Arguments
x |
Two-way table to analyze (must be 3x3 or greater). |
Value
Residuals of x
References
Tukey, John W. "The Future of Data Analysis." The Annals of Mathematical Statistics, 33(1), 1962, pp 1-67. JSTOR, https://www.jstor.org/stable/2237638.
See Also
Examples
vacuum_cleaner(table_8)
[Package vacuum version 0.1.0 Index]