Liz's Stata Guide

Commands: Tests

This page covers commands that perform statistical tests.

ttest
Performs a T-test
ttest varx = 2 or
ttest varx == vary, unpaired or
ttest varx, by(groupvar)

tab, chi2
Performs a chi2 test
tab varx vary, chi2

test; testparm
Tests hypotheses about coefficients following a regression.
reg depvar indvar1 indvar2;
test indvar1 indvar2   - or -
test indvar1 == - indvar2   - or -
testparm indvar*

contact: djiboliz@gmail.com
last modified: 30 April 2007