Calculate Kendall distance between a pair of rankings

This function generates simple examples for illustrative proposes. The sample contains rankings of five objects and the underlying model is a Mallows' phi model with default dispersion parameter set to 0.2 and modal ranking set to (1,2,3,4,5)

1 | ```
GenerateExample(ranking = TRUE, central = 1:5, lambda = 0.2)
``` |

`ranking` |
TRUE if "ranking" representation is used in the output data; otherwise "ordering" representation is used. |

`central` |
The modal ranking. |

`lambda` |
The parameter in the model. |

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.