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

6 views (last 30 days)
How do I preform Chi-squared test using a function that takes two inputs; observed data (as a table) and critical value
  7 Comments
Luke Muscat
Luke Muscat on 29 Apr 2019
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 on 29 Apr 2019
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

Sign in to comment.

Answers (0)

Community Treasure Hunt

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

Start Hunting!