Description Usage Arguments Value Author(s) References Examples

This function creates a design matrix for contingency tables and is particularly useful for log-linear Poisson models. It uses effect coding of the variables: First the rows of the contingency table from top to bottom, then the columns from left to right.

1 | ```
createDesMat(n, p)
``` |

`n` |
Number of rows of the corresponding contingency table. |

`p` |
Number of columns of the corresponding contingency table. |

A (n+p-1) times (n*p) design matrix.

A. Rehage

Kuhnt, S.; Rapallo, F.; Rehage, A. (2014) Outlier detection in contingency tables based on minimal patterns. *Statistics and Computing* 24 (3), 481-491.

1 | ```
createDesMat(3, 5)
``` |

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.