powered by
Different forms of contribution summaries for soc.ca objects. Results are presented according to the specified mode
mode
contribution( object, dim = 1, all = FALSE, indices = FALSE, mode = "sort", matrix.output = FALSE )
Each mode prints different results:
Ranks all modalities according to their contribution
Ranks all modalities according to their contribution and then sorts them according to their coordinates
Ranks all individuals according to their contribution
Sorts all modalities according to their variable and sums the contributions per variable
The values reported:
Contribution values in percentage. Contribution values for individuals are reported in permille
Principal coordinates
The correlation with the dimension
a soc.ca object
the included dimensions
If TRUE returns all modalities instead of just those that contribute above average
If TRUE; returns a vector with the row indices of the modalities or individuals
indicates which form of output. Possible values: "sort", "mod", "ind", "variable". If the mode is "variable", dim can be a sequence of dimensions: 1:5
"sort"
"mod"
"ind"
"variable"
dim
1:5
if TRUE; returns output as a matrix instead of as printed output.
map.ctr
example(soc.ca) contribution(result) contribution(result, 2) contribution(result, dim = 3, all = TRUE) contribution(result, indices = TRUE) contribution(result, 1:2, mode = "variable")
Run the code above in your browser using DataLab