Statistics package: Difference between revisions

2,204 bytes added ,  5 February 2023
no edit summary
No edit summary
No edit summary
Line 2: Line 2:


<code>pkg install -forge statistics</code>
<code>pkg install -forge statistics</code>
The following sections provide an overview of the functions available in the statistics package sorted alphabetically and arranged in groups similarly to the package's INDEX file.


== Clustering ==
== Clustering ==
=== Available functions ===
The following table lists the functions available for clustering.
{| class="wikitable"
! Function
! Description
|-
| cluster
| Define clusters from an agglomerative hierarchical cluster tree.
|-
| cmdscale
| Classical multidimensional scaling of a matrix.
|-
| confusionmat
| Compute a confusion matrix for classification problems.
|-
| cophenet
| Compute the cophenetic correlation coefficient.
|-
| evalclusters
| Create a clustering evaluation object to find the optimal number of clusters.
|-
| inconsistent
| Compute the inconsistency coefficient for each link of a hierarchical cluster tree.
|-
| kmeans
| Perform a K-means clustering of an NxD matrix.
|-
| linkage
| Produce a hierarchical clustering dendrogram.
|-
| mahal
| Mahalanobis' D-square distance.
|-
| optimalleaforder
| Compute the optimal leaf ordering of a hierarchical binary cluster tree.
|-
| pdist
| Return the distance between any two rows in X.
|-
| pdist2
| Compute pairwise distance between two sets of vectors.
|-
| squareform
| Interchange between distance matrix and distance vector formats.
|}
=== TODO list ===
procrustes


== Data Manipulation ==
== Data Manipulation ==
=== Available functions ===
The following table lists the functions available for data manipulation.
{| class="wikitable"
! Function
! Description
|-
| combnk
| Return all combinations of K elements in DATA.
|-
| crosstab
| Create a cross-tabulation (contingency table) T from data vectors.
|-
| datasample
| Randomly sample data.
|-
| grp2idx
| Get index for group variables.
|-
| tabulate
| Compute a frequency table.
|}


== Descriptive Statistics ==
== Descriptive Statistics ==
Line 525: Line 603:
| ztest
| ztest
| One-sample Z-test.
| One-sample Z-test.
|}
== Wrappers ==
Functions available for wrapping other functions or group of functions.
{| class="wikitable"
! Function
! Description
|-
| cdf
| This is a wrapper around various NAMEcdf and NAME_cdf functions.
|-
| clusterdata
| Wrapper function for 'linkage' and 'cluster'.
|-
| pdf
| This is a wrapper around various NAMEpdf and NAME_pdf functions.
|-
| pdf
| Generates pseudo-random numbers from a given one-, two-, or three-parameter distribution.
|}
|}


[[Category:Packages]]
[[Category:Packages]]
[[Category:Missing functions]]
[[Category:Missing functions]]
92

edits