>> Home >> Products >> Features >> Basic statistics
Order Stata

Basic statistics


  • Arithmetic, geometric, and harmonic means, and corresponding confidence intervals
  • Medians and percentiles
  • Measurement of central tendency
  • Skewness and kurtosis
  • Confidence intervals
    • Exact binomial (Clopper–Pearson)
    • Wald
    • Wilson
    • Jeffreys
    • Agresti
    • Exact Poisson
  • Ratios , proportions , and totals
    • Confidence intervals
    • Standard errors
    • Over groups
    • Robust and cluster–robust SEs
    • Intragroup tests

Tables and tabulations

  • 1- , 2- , n-way
  • Pearson's chi-squared
  • Likelihood-ratio chi-squared
  • Cramér's V
  • Fisher's exact (2 x 2 and r x c)
  • Goodman and Kruskal's gamma
  • Kendall's tau
  • Cell statistics
    • Expected count
    • Contribution to Pearson chi-squared
    • Contribution to likelihood-ratio chi-squared

Tables of summary statistics

  • Over groups and/or variables
  • Statistics may include mean, count, sum, min, max, range, standard deviation, variance, variation coefficient, standard error of mean, skewness, kurtosis, median, percentiles, and interquartile range

Creation of datasets of summary statistics

  • Statistics by group or subgroup of observations
  • Statistics: mean, standard deviation, count, min, max, median, percentiles, and interquartile range

Pairwise comparisons of means

  • Pairwise differences in means with tests and confidence intervals
  • Multiple-comparison adjustments: Bonferroni, Šidák, Scheffé, Tukey HSD, Duncan, and Student–Newman–Keuls adjustments
  • Group comparisons that are significant
  • Balanced and unbalanced data

t tests

  • One sample
  • Two independent samples
  • Two paired samples
  • Based on summary data (ttesti)

z tests New

  • One sample
  • Two independent samples
  • Two paired samples
  • Based on summary data (ztesti)

Effect sizes

  • Comparison of means
    • Cohen's d
    • Hedge's g
    • Glass's Δ
    • Point/biserial correlation
    • Confidence intervals
  • Variance explained by regression and ANOVA
    • Eta-squared—η2
    • Omega-squared—ω2
    • Confidence intervals

Other common tests

  • Binomial (one-sample) test
  • Test of proportions (two sample)
  • Bartlett's test
  • Chi-squared (one-sample) variance test
  • Variance ratio (two-sample) F test


  • Pearson simple and partial
  • Semipartial
  • Spearman's rank order
  • Kendall's rank order
  • Intracluster
  • Cronbach's alpha
  • Tetrachoric
  • Canonical (multivariate) correlations
  • Intraclass

Factor variables

  • Automatically create indicators based on categorical variables
  • Form interactions among discrete and continuous variables
  • Include polynomial terms
  • Perform contrasts of categories/levels
Watch Introduction to Factor Variables in Stata tutorials

Additional resources

See New in Stata 14 for more about what was added in Stata 14.

The Stata Blog: Not Elsewhere Classified Find us on Facebook Follow us on Twitter LinkedIn Google+ Watch us on YouTube