Description Usage Arguments Value Author(s) Examples

View source: R/ALL.r View source: R/tabulaterows.R

Given a sample of preference rankings, it compute the frequency associated to each ranking

1 | ```
tabulaterows(X, miss = FALSE)
``` |

`X` |
a N by M data matrix containing N judges judging M objects |

`miss` |
TRUE if there are missing data (either partial or incomplete rankings): default: FALSE |

a "list" containing the following components:

X | the unique rankings | |

Wk | the frequency associated to each ranking | |

tabfreq | frequency table |

Sonia Amodio [email protected]

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | ```
data(Idea)
TR=tabulaterows(Idea)
FR=TR$Wk/sum(TR$Wk)
RF=cbind(TR$X,FR)
colnames(RF)=c(colnames(Idea),"fi")
#compute modal ranking
maxfreq=which(RF[,6]==max(RF[,6]))
labels(RF[maxfreq,1:5],5,colnames(Idea),labs=1)
#
data(APAred)
TR=tabulaterows(APAred)
#
data(APAFULL)
TR=tabulaterows(APAFULL)
CR1=EMCons(TR$X,TR$Wk)
CR2=FASTcons(TR$X,TR$Wk,maxiter=15)
CR3=QuickCons(TR$X,TR$Wk)
``` |

ConsRank documentation built on May 30, 2017, 3:05 a.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.