Descriptive Statistics

Calculates key values of the descriptive statistics
1,5K téléchargements
Mise à jour 8 nov. 2010

Afficher la licence

This function gets the key values for a descriptive statistics such as mean, std, mode, median, quartiles and percentiles. This includes the five- and seven-number summary.

Input x must be a vector or a matrix where each column of x is regarded as a data set if x is a matrix. Input param is an optional cell list of parameters, e.g., param = {'whisker', 2} setting whisker = 2. Multiple user defined options are separated by semi-colon, e.g., param = {'whisker', 2; 'qmethod','-mean'}.

Output ds is a structure. To extract the quartiles for instance quart = ds.quartile.

Examples:
ds = getDescriptiveStatistics(randn(1000,10))

ds = getDescriptiveStatistics(rand(1000,2),{'whisker', 2; 'qmethod','-mean'})

ds = getDescriptiveStatistics(rand(1000,2),{'percent', [25 50 75];'pmethod','nearestRank'})

Citation pour cette source

Matthias Chung (2024). Descriptive Statistics (https://www.mathworks.com/matlabcentral/fileexchange/29305-descriptive-statistics), MATLAB Central File Exchange. Récupéré le .

Compatibilité avec les versions de MATLAB
Créé avec R2010a
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS Linux
Catégories
En savoir plus sur Descriptive Statistics and Visualization dans Help Center et MATLAB Answers
Remerciements

A inspiré : summarize

Community Treasure Hunt

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

Start Hunting!
Version Publié le Notes de version
1.1.0.0

Small error corrections.

1.0.0.0