Description Usage Arguments Value Author(s) References Examples
ahp
is a canned routine that returns a data.frame
of individuals' priorities (based on ahp.indpref), number of missing values, consistency ratios, and top three pairs of inconsistent pairwise comparisons. An optional argument agg
allows the user to generate a data.frame of aggregated priorities alongside individual priorities.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
df |
a dataframe, each row corresponding to one decision-maker, with columns ordered according to |
atts |
a list of attributes in the correct order |
negconvert |
logical, whether to convert all positive values to
negative. In the pairwise comparison A_B, if -6 denotes A is more
important than B by 6 units, set |
reciprocal |
logical, whether to convert negative values (after |
method |
if |
aggmethod |
how to aggregate the individual priorities. By default |
qt |
specifies the quantile which the top and bottom priority weights are trimmed. Used only if |
censorcr |
the threshold of censoring observations. All observations with a consistency ratio higher than the specified CR will be dropped from the routine. By default, |
agg |
by default, |
ID |
the column name, or a vector of column names, of variables in |
col |
a list of column names which contains the columns for the pairwise comparison matrix in chronological order, as specified in |
suppress |
Suppresses the supplementary indices. Can take the values of "all" (suppresses all indices), "pwerror" (suppresses pwerror), or "cr" (suppresses consistency ratio). |
If agg = TRUE
, returns a list of the results with two elements, indpref
and aggpref
. $indpref
contains individual preference weight (same as ahp.indpref
), consistency ratios, and the top three most inconsistent pairwise comparisons (same as ahp.pwerror
). $aggpref
contains the Aggregated Priorities and Standard Deviations. Otherwise (i.e. default setting), outputs a data.frame
with only $indpref
.
Frankie Cho
Saaty2004ahpsurvey
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.