How do I preform Chi-squared test using a function that takes two inputs; observed data (as a table) and critical value

9 次查看(过去 30 天)
How do I preform Chi-squared test using a function that takes two inputs; observed data (as a table) and critical value
  7 个评论
Luke Muscat
Luke Muscat 2019-4-29
Yes,guys thanks I tried doing is using matrices creating the tables using matrices. Mostly stuck on how to make the chi squared function taking two inputs, I know how to make the formula that's not a problen
dpb
dpb 2019-4-29
What, specifically, is the issue with creating a function with two (or one or any particular number) of dummy arguments? The doc for function shows syntax of you can open any m-file in the editor and see how Mathworks writes code (albeit they do a lot of input checking, etc., but the basic syntax is all the same if not using varargin

请先登录,再进行评论。

回答(0 个)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by