MATLAB: Generating contingency tables (with categorical data)

bootstrapcategorical datacontingency tables

Hi All,
I want to generate contingency tables, especially with categorical data. If possible, I want to generate samples with bootstrap, that is also with categorical data.
Can you help please? thanks..

Best Answer

If you have the Statistics Toolbox, then you can use the crosstab() function to generate contingency tables.
There are several ways to generate bootstrap samples. One handy function is randsample().