MATLAB Answers

Ayse Kazan

generating contingency tables (with categorical data)

Asked by Ayse Kazan
on 27 Apr 2013

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..



No products are associated with this question.

1 Answer

Answer by the cyclist
on 27 Apr 2013
 Accepted 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().


Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply today