Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated README & Contents #18

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Contents.m
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
%
% Descriptive Statistics.
% circ_mean - Mean direction of a sample of circular data
% circ_axialmean- Axial corrected mean direction of a sample of circular data
% circ_median - Median direction of a sample of circular data
% circ_r - Resultant vector length
% circ_var - Circular variance
Expand Down
110 changes: 61 additions & 49 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,69 +14,81 @@ Philipp Berens
Tal Krasovsky & Marc J. Velasco

## Reference:
P. Berens, CircStat: A Matlab Toolbox for Circular Statistics, Journal of Statistical Software, Volume 31, Issue 10, 2009
P. Berens, *CircStat: A Matlab Toolbox for Circular Statistics*, Journal of Statistical Software, Volume 31, Issue 10, 2009
http://www.jstatsoft.org/v31/i10

Please cite this paper when the provided code is used. See licensing terms for details.

## Contents:
- `circ_r` Resultant vector length
- `circ_mean` Mean direction of a sample of circular data
- `circ_axial` Mean direction for axial data
- `circ_median` Median direction of a sample of circular data
- `circ_std` Dispersion around the mean direction (std, mardia)
- `circ_var` Circular variance
- `circ_skewness` Circular skewness
- `circ_kurtosis` Circular kurtosis
- `circ_moment` Circular p-th moment
- `circ_dist` Distances around a circle
- `circ_dist2` Pairwise distances around a circle
- `circ_confmean` Confidence intervals for mean direction
- `circ_stats` Summary statistics

 
- `circ_rtest` Rayleigh's test for nonuniformity
- `circ_otest` Hodges-Ajne test (omnibus test) for nonuniformity
- `circ_raotest` Rao's spacing test for nonuniformity
- `circ_vtest` V-Test for nonuniformity with known mean direction
- `circ_medtest` Test for median angle
- `circ_mtest` One-sample test for specified mean direction
- `circ_wwtest` Multi-sample test for equal means, one-factor ANOVA
- `circ_hktest` Two-factor ANOVA
- `circ_ktest` Test for equal concentration parameter
- `circ_symtest` Test for symmetry around median angle
- `circ_kuipertest` Test whether two distributions are identical (like KS test)

 
- `circ_corrcc` Circular-circular correlation coefficient
- `circ_corrcl` Circular-linear correlation coefficient

 
- `circ_kappa` Compute concentration parameter of a von Mises distribution
- `circ_plot` Visualization for circular data
- `circ_clust` Simple clustering for circular data
- `circ_samplecdf` Evaluate CDF of a sample of angles

 
- `rad2ang` Convert radian to angular values
- `ang2rad` Convert angular to radian values
## Contents (`Contents.m`):
### Descriptive Statistics.
- `circ_mean` - Mean direction of a sample of circular data
- `circ_axialmean`- Axial corrected mean direction of a sample of circular data
- `circ_median` - Median direction of a sample of circular data
- `circ_r` - Resultant vector length
- `circ_var` - Circular variance
- `circ_std` - Circular standard deviation
- `circ_moment` - Circular p-th moment
- `circ_skewness` - Circular skewness
- `circ_kurtosis` - Circular kurtosis

### Inferential Statistics.
#### Testing for Circular Uniformity.
- `circ_rtest` - Rayleigh's test for nonuniformity
- `circ_otest` - Hodges-Ajne test (omnibus test) for nonuniformity
- `circ_raotest` - Rao's spacing test for nonuniformity
- `circ_vtest` - V-Test for nonuniformity with known mean direction

#### Tests Concerning Mean and Median.
- `circ_confmean` - Confidence intervals for mean direction
- `circ_mtest` - One-sample test for specified mean direction
- `circ_medtest` - Test for median angle
- `circ_symtest` - Test for symmetry around median angle

#### Paired and Multisample Tests.
- `circ_wwtest` - Two and multi-sample test for equal means; one-factor ANOVA
- `circ_hktest` - Two-factor ANOVA
- `circ_cmtest` - Non-parametric multi-sample test for equal medians
- `circ_ktest` - Test for equal concentration parameter
- `circ_kuipertest` - Test for equality of distributions (KS-test)

### Measures of Association.
- `circ_corrcc` - Circular-circular correlation coefficient
- `circ_corrcl` - Circular-linear correlation coefficient

### The Von Mises Distribution
- `circ_vmpdf` - Probability density function of the von Mises distribution
- `circ_vmpar` - Parameter estimation
- `circ_vmrnd` - Random number generation

### Others.
- `circ_axial` - Convert axial data to common scale
- `circ_dist` - Distances around a circle
- `circ_dist2` - Pairwise distances around a circle
- `circ_stats` - Summary statistics
- `circ_kappa` - Compute concentration parameter of a von Mises distribution
- `circ_plot` - Visualization for circular data
- `circ_clust` - Simple clustering
- `circ_samplecdf` - Evaluate CDF of a sample
- `circ_rad2ang` - Convert radian to angular values
- `circ_ang2rad` - Convert angular to radian values


All functions take arguments in radians (expect for `ang2rad`). For a detailed description of arguments and outputs consult the help text in the files.

Since 2010, most functions for descriptive statistics can be used in Matlab style matrix computations. As a last argument, add the dimension along which you want to average. This changes the behavior slightly from previous relaeses, in that input is not reshaped anymore into vector format. Per default, all computations are performed columnwise (along dimension 1). If you prefer to use the old functions, for now they are contained in the subdirectory 'old'.
Since 2010, most functions for descriptive statistics can be used in Matlab style matrix computations. As a last argument, add the dimension along which you want to average. This changes the behavior slightly from previous relaeses, in that input is not reshaped anymore into vector format. Per default, all computations are performed along the **first non-singular dimension**.

## References:
- E. Batschelet, Circular Statistics in Biology, Academic Press, 1981
- N.I. Fisher, Statistical analysis of circular data, Cambridge University Press, 1996
- S.R. Jammalamadaka et al., Topics in circular statistics, World Scientific, 2001
- J.H. Zar, Biostatistical Analysis, Prentice Hall, 1999
- E. Batschelet, *Circular Statistics in Biology*, Academic Press, 1981
- N.I. Fisher, *Statistical analysis of circular data*, Cambridge University Press, 1996
- S.R. Jammalamadaka et al., *Topics in circular statistics*, World Scientific, 2001
- J.H. Zar, *Biostatistical Analysis*, Prentice Hall, 1999


The implementation follows in most cases 'Biostatistical Analysis' and all referenced equations and tables are taken from this book, if not otherwise noted. In some cases, the other books were preferred for implementation was more straightforward for solutions presented there.
The implementation follows in most cases '*Biostatistical Analysis*' and all referenced equations and tables are taken from this book, if not otherwise noted. In some cases, the other books were preferred for implementation was more straightforward for solutions presented there.

If you have suggestions, bugs or feature requests or want to contribute code, please email us.

## Disclaimer:
All functions in this toolbox were implemented with care and tested on the examples presented in 'Biostatistical Analysis' were possible. Nevertheless, they may contain errors or bugs, which may affect the outcome of your analysis. We do not take responsibility for any harm coming from using this toolbox, neither if it is caused by errors in the software nor if it is caused by its improper application. Please email us any bugs you find.
All functions in this toolbox were implemented with care and tested on the examples presented in '*Biostatistical Analysis*' were possible. Nevertheless, they may contain errors or bugs, which may affect the outcome of your analysis. We do not take responsibility for any harm coming from using this toolbox, neither if it is caused by errors in the software nor if it is caused by its improper application. Please email us any bugs you find.

Distributed under Open Source BSD License