orthopoly | R Documentation |
This function is called from the function
omca
.
It allows the analyst to compute the orthogonal polynomials of each ordered categorical variable.
The number of the polynomials is equal to the variable category less one.
The function computes the polynomial transformation of the ordered categorical variable.
orthopoly(marginals, scores)
scores |
The ordered scores of an ordered variable. By default |
marginals |
The marginals, relative frequencies of the ordered variable. |
Describe the value returned
B |
the matrix of the orthogonal polynomials without the trivial polynomial. |
Note that the sum of the marginals of the ordered variables should be one. At the end, the various polynomial matrices will be stored in a super-diagonal matrix.
Rosaria Lombardo and Eric J Beh
Beh EJ and Lombardo R 2014 Correspondence analysis, Theory, Practice and New Strategies. Wiley.
orthopoly(marginals=c(.1,.2,.3,.2,.2), scores=c(1,2,3,4,5))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.