erikhuizinga / Bland-Altman-Analysis

A MATLAB function for Bland-Altman Analysis of agreement between measurement methods.
5 stars 3 forks source link

Input argument rework (see TODO list inside) #13

Open erikhuizinga opened 7 years ago

erikhuizinga commented 7 years ago

Description

The input argument structure could be more optimised for ease of use. Some options, e.g. 'PlotStatistics', have many possibilities for their input arguments. This could be simplified by making it more explicit what possibility is being used. Instead of 'PlotStatistics' with value 'none', 'basic', 'extended' or 'regression', it would be better to use 'PlotStatistics', false, 'PlotBasicStatistics', true, etc. This does increase the number of Name-Value pair argument names, but this can be solved with the following helper function.

Because many options and Name-Value pair arguments can be specified, it would be useful to have a helper function that output an options structure (or object implementing checks for various dependent settings) that can be passed to ba. The helper function by default would generate a set of options useful for regular Bland-Altman analysis (BAA), but more advanced options can be seen there as well. This makes it easier for the user to find out what is possible by looking in the documentation for what the various options do.

TODO