Inputs for chi-squared test
Hi.
I would like to test the hypothesis that the answers I got in a questionnaire from two differently sized patient groups have the same mean. The answers can be ‘1’,’2′,’3′,’4′ or ‘5’. I was thinking of performing a chi-squared test, but am not familiar with the Statistics Toolbox and therefore cannot understand how to format my data as suitable inputs for chi2gof, crosstabs or any other of the Matlab functions that performs chi2 tests. Can you help?
Many thanks. Best wishes,
MartaHi.
I would like to test the hypothesis that the answers I got in a questionnaire from two differently sized patient groups have the same mean. The answers can be ‘1’,’2′,’3′,’4′ or ‘5’. I was thinking of performing a chi-squared test, but am not familiar with the Statistics Toolbox and therefore cannot understand how to format my data as suitable inputs for chi2gof, crosstabs or any other of the Matlab functions that performs chi2 tests. Can you help?
Many thanks. Best wishes,
Marta Hi.
I would like to test the hypothesis that the answers I got in a questionnaire from two differently sized patient groups have the same mean. The answers can be ‘1’,’2′,’3′,’4′ or ‘5’. I was thinking of performing a chi-squared test, but am not familiar with the Statistics Toolbox and therefore cannot understand how to format my data as suitable inputs for chi2gof, crosstabs or any other of the Matlab functions that performs chi2 tests. Can you help?
Many thanks. Best wishes,
Marta chi-squared, statistics, hypothesis tests, categorical variables MATLAB Answers — New Questions