This function computes the p-value of the khi2 adequation test (only for univariate data).

1 |

`data` |
a matrix in which each row is a rank of size m. |

`proportion` |
a vector (which sums to 1) containing the K mixture proportion. |

`mu` |
a matrix of size K*m, where m is the size of a rank, containing the modal rankings of the model (position parameters). |

`pi` |
a vector of size K, where K is the number of clusters, containing the probabilities of a good paired comparaison of the model (dispersion parameters). |

`nBoot` |
number of bootstrap iterations used to estimate the khi2 adequation test p-value. |

a real, the p-value of the khi2 adequation test.

Quentin Grimonprez

1 2 3 4 5 6 7 |

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.