# ErrorFieldConcordance
Thie package provides calculation (and optionally graphing) of concordance (trending agreement) between two measures using an error field method.
## Function Call
After importing the package, the method can be called as follows:
```
Concordance = ErrorFieldConcordance(X,Y,IDS=[], plot_TF=False,graph_label='',X_name='ΔX',Y_name='ΔY',min_plot_range=3,decolor_threshold=2)
```
Function Parameters:
+ The X and Y parameters are lists or arrays of equal size corresponding to paired measures to be compared. These should be the observations themselves (not the changes observed between observations).
+ IDS is a list of the same length as X & Y containing subject identifiers for individual subjects in the lists. If all of the observations are from the same subject this parameter can be empty.
+ plot_TF is a boolean that controls whether or not a figure is created.
+ graph_label is an optional string parameter to be placed in the graph title.
+ XMeasName and YMeasName are used to customize the X and Y graph labels if desired
+ MinPlotRange can be used to extend the plot range if desired. Normally the plot will include ± the largest absolute change observed, but if this range is too small the MinPlotRange parameter can be used to fix a minimum axis range.
+ decolor_threshold sets the radius for the desaturation circle at the center of the graph. This is a graphical/appearance modifier only, it has no effect on the calculation of the Error Field Concordance value, but is useful to visually represent the central region where points are weighted the least in the final calculation.
## Notes
The observations passed in X & Y (and the corresponding subject identifiers in IDs) should be grouped by subject and ordered temporally. The function will then calculate the changes in successive observations within subjects. If X, Y, and IDS are not grouped by subject and ordered by time results will be invalid.
Time differences in the observations should be based on the aims of the project; the function itself is agnostic to the specifics. Ideally the time differences are all the same, otherwise interpretation of the graph and results may be biased.
## Output
The returned value is a tuple of (error field concordance %, standard deviation %).
The error field concordance value is a number in the range of \[-100,100\]:
+ Values > 60% indicate strong concordance.
+ Values between +20% and +60% indicate concordance.
+ Values between -20% and +20% indicate relative independence, or low overall change in the sample.
+ Values between -60% and -20% indicate discordance.
+ Values less than -60% indicate strong discordance.
## Graphing
![Example Error Field Concordance graph showing plotting of random data](https://www.wtfstatistics.com/assets/ExampleFigure1.png)
The figure above shows an Error Field Concordance plot for two 1,000 sample arrays of noise (i.e. independent samples). The data demonstrates the fields in the plot, with blue zones indicating concordance (the measures move in the same direction and magnitude), red zones indicating discordance (the measures move in opposite directions), and yellow zones indicating relative independence of movement.
## Citing
Please cite this package using the following: *PubMed Reference & Citation TBD*
## Contributors
Thanks go out to Bernd Saugel, Sean Coeckelenbergh, Ishita Srivastava, and Brandon Woo for their collective contributions to this project.
Raw data
{
"_id": null,
"home_page": null,
"name": "ErrorFieldConcordance",
"maintainer": null,
"docs_url": null,
"requires_python": ">3.0",
"maintainer_email": null,
"keywords": "statistics, method comparison, cardiac output, concordance, trending",
"author": null,
"author_email": "Joe Rinehart <joerinehartmd@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/5d/53/338537ebe95fe3102c8625715c1d0bd9115bc4d3dbed9712e1583b085e51/errorfieldconcordance-1.0.1.tar.gz",
"platform": null,
"description": "# ErrorFieldConcordance\r\n\r\nThie package provides calculation (and optionally graphing) of concordance (trending agreement) between two measures using an error field method.\r\n\r\n## Function Call\r\nAfter importing the package, the method can be called as follows:\r\n\r\n```\r\nConcordance = ErrorFieldConcordance(X,Y,IDS=[], plot_TF=False,graph_label='',X_name='\u0394X',Y_name='\u0394Y',min_plot_range=3,decolor_threshold=2)\r\n```\r\n\r\nFunction Parameters:\r\n+ The X and Y parameters are lists or arrays of equal size corresponding to paired measures to be compared. These should be the observations themselves (not the changes observed between observations). \r\n+ IDS is a list of the same length as X & Y containing subject identifiers for individual subjects in the lists. If all of the observations are from the same subject this parameter can be empty.\r\n+ plot_TF is a boolean that controls whether or not a figure is created.\r\n+ graph_label is an optional string parameter to be placed in the graph title.\r\n+ XMeasName and YMeasName are used to customize the X and Y graph labels if desired\r\n+ MinPlotRange can be used to extend the plot range if desired. Normally the plot will include \u00b1 the largest absolute change observed, but if this range is too small the MinPlotRange parameter can be used to fix a minimum axis range.\r\n+ decolor_threshold sets the radius for the desaturation circle at the center of the graph. This is a graphical/appearance modifier only, it has no effect on the calculation of the Error Field Concordance value, but is useful to visually represent the central region where points are weighted the least in the final calculation.\r\n\r\n## Notes\r\nThe observations passed in X & Y (and the corresponding subject identifiers in IDs) should be grouped by subject and ordered temporally. The function will then calculate the changes in successive observations within subjects. If X, Y, and IDS are not grouped by subject and ordered by time results will be invalid.\r\n\r\nTime differences in the observations should be based on the aims of the project; the function itself is agnostic to the specifics. Ideally the time differences are all the same, otherwise interpretation of the graph and results may be biased.\r\n\r\n## Output\r\n\r\nThe returned value is a tuple of (error field concordance %, standard deviation %). \r\n\r\nThe error field concordance value is a number in the range of \\[-100,100\\]: \r\n+ Values > 60% indicate strong concordance.\r\n+ Values between +20% and +60% indicate concordance.\r\n+ Values between -20% and +20% indicate relative independence, or low overall change in the sample.\r\n+ Values between -60% and -20% indicate discordance.\r\n+ Values less than -60% indicate strong discordance. \r\n \r\n\r\n## Graphing\r\n![Example Error Field Concordance graph showing plotting of random data](https://www.wtfstatistics.com/assets/ExampleFigure1.png)\r\n\r\nThe figure above shows an Error Field Concordance plot for two 1,000 sample arrays of noise (i.e. independent samples). The data demonstrates the fields in the plot, with blue zones indicating concordance (the measures move in the same direction and magnitude), red zones indicating discordance (the measures move in opposite directions), and yellow zones indicating relative independence of movement.\r\n\r\n## Citing\r\nPlease cite this package using the following: *PubMed Reference & Citation TBD*\r\n\r\n## Contributors\r\nThanks go out to Bernd Saugel, Sean Coeckelenbergh, Ishita Srivastava, and Brandon Woo for their collective contributions to this project.\r\n",
"bugtrack_url": null,
"license": null,
"summary": "Calculation of trending concordance between two measures using the Error Field method",
"version": "1.0.1",
"project_urls": null,
"split_keywords": [
"statistics",
" method comparison",
" cardiac output",
" concordance",
" trending"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "6b4eb4d126e3158426f424d1d0dd5c1e15db643fd0c2d61d573cff9b2258b1df",
"md5": "f6d36181157c2fe7fa740b2b356ea4bd",
"sha256": "5509d0399e183b0dfe34913578f8cbf8f1f33f56711647ee22884c61977dacd8"
},
"downloads": -1,
"filename": "ErrorFieldConcordance-1.0.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "f6d36181157c2fe7fa740b2b356ea4bd",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">3.0",
"size": 6340,
"upload_time": "2024-12-14T22:48:10",
"upload_time_iso_8601": "2024-12-14T22:48:10.484299Z",
"url": "https://files.pythonhosted.org/packages/6b/4e/b4d126e3158426f424d1d0dd5c1e15db643fd0c2d61d573cff9b2258b1df/ErrorFieldConcordance-1.0.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "5d53338537ebe95fe3102c8625715c1d0bd9115bc4d3dbed9712e1583b085e51",
"md5": "2e0a9f0b1447e751454ea5736da0779a",
"sha256": "74e6851c23fd05d0d437e358b699d08e4e1854b5108ecbcce198f05f70f59dad"
},
"downloads": -1,
"filename": "errorfieldconcordance-1.0.1.tar.gz",
"has_sig": false,
"md5_digest": "2e0a9f0b1447e751454ea5736da0779a",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">3.0",
"size": 5811,
"upload_time": "2024-12-14T22:48:13",
"upload_time_iso_8601": "2024-12-14T22:48:13.040698Z",
"url": "https://files.pythonhosted.org/packages/5d/53/338537ebe95fe3102c8625715c1d0bd9115bc4d3dbed9712e1583b085e51/errorfieldconcordance-1.0.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-12-14 22:48:13",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "errorfieldconcordance"
}