Basic and nonparametric statistics


Many simple statistical operations, including calculation of summary statistics, t-tests, one- and two-way analysis of variance and non-parametric tests are provided by procedures in the basic and nonparametric modules of the Library:


DESCRIBE
calculates summary statistics for variates

CDESCRIBE
calculates summary statistics and tests of circular data

TALLY
forms a simple tally table of the distinct values in a vector

A2WAY
performs analysis of variance of a balanced or unbalanced design with up to two treatment factors

A2DISPLAY
provides further output following an analysis of variance by A2WAY

A2KEEP
copies information from an A2WAY analysis into GenStat data structures

AONEWAY
provides one-way analysis of variance

CHISQUARE
calculates chi-square statistics for one- and two-way tables

TTEST
performs a one- or two-sample t-test

BNTEST
calculates one- or two-sample binomial tests

PNTEST
calculates one- or two-sample Poisson tests

FCORRELATION
forms the product moment correlation matrix for a list of variates, and tests whether the correlations are zero

PRCORRELATION
calculates probabilities for product moment correlations

FRIEDMAN
performs Friedman's nonparametric analysis of variance

GSTATISTIC
calculates the gamma statistic of agreement for ordinal data

KAPPA
calculates a kappa coefficient of agreement for nominally scaled data

KCONCORDANCE
calculates Kendall's Coefficient of Concordance (synonym CONCORD)

KOLMOG2
performs a Kolmogorov-Smirnoff two-sample test

KRUSKAL
carries out a Kruskal-Wallis one-way analysis of variance

KTAU
calculates Kendall's rank correlation coefficient τ

LCONCORDANCE
calculates Lin's concordance correlation coefficient

MANNWHITNEY
performs a Mann-Whitney U test

MCNEMAR
performs McNemar's test for the significance of changes

QCOCHRAN
performs Cochran's Q test for differences between related-samples

CMHTEST
performs the Cochran-Mantel-Haenszel test

RUNTEST
performs a test of randomness of a sequence of observations

SIGNTEST
performs a one or two sample sign test

SPEARMAN
calculates Spearman's Rank Correlation Coefficient

WILCOXON
performs a Wilcoxon Matched-Pairs (Signed-Rank) test

STTEST
calculates the sample size for t-tests (including equivalence tests)

SBNTEST
calculates the sample size for binomial tests

SCORRELATION
calculates the sample size to detect specified correlations

SLCONCORDANCE
calculates the sample size for Lin's concordance coefficient

SMANNWHITNEY
calculates sample sizes for the Mann-Whitney test

SMCNEMAR
calculates sample sizes for McNemar's test

SPRECISION
calculates the sample size to obtain a specified precision

SSIGNTEST
calculates the sample size for a sign test


GenStat has commands for calculating summary statistics from survey data


TABULATE
forms tables of summaries of the values of variates classified by one or more factors

MTABULATE
forms tables of summaries of variates classified by multiple-response factors

SVBOOT
bootstraps data from random surveys

SVCALIBRATE
performs generalized calibration of survey data

SVGLM
fits generalized linear models to survey data

SVREWEIGHT
modifies survey weights adjusting to ensure that their overall sum weights remains unchanged

SVSTRATIFIED
analyses stratified random surveys by expansion or ratio raising

SVTABULATE
tabulates data from random surveys, including multistage surveys and surveys with unequal probabilities of selection

SVWEIGHT
forms survey weights


There are also facilities for fitting or assessing statistical distributions:


DISTRIBUTION
estimates the parameters of continuous and discrete distributions

FDRMIXTURE
estimates false discovery rates using mixture distributions

KERNELDENSITY
uses kernel density estimation to estimate a sample density

NORMTEST
performs tests of univariate and/or multivariate normality

WSTATISTIC
calculates the Shapiro-Wilk test for Normality