stattutorials.com
Statistics Tutorials
for SAS, SPSS, WINKS, Excel


Statistical
Video Training
DVDs

Against All Odds Videos
Against All
Odds VIDEOS

Teaching Videos from Annenberg/PBS.
A video instructional series on statistics for college and high school classrooms.
Special Pricing $20 off!
Click here for Against All Odds info


WINKS Statistical Software
Affordable. Reliable. Relevant.
www.texasoft.com
 


Kwikstat
Data Generator

Generate data sets with continuous, categorical, grouped and correlated data. Great for creating data sets for examples and for quality assurance testing. Data sets are created in standard .CSV format so they can be opened in most statistical programs such as SAS, SPSS, WINKS and into spreadsheet programs such as Microsoft Excel. More info. Order now.

 

SAS Tutorial Menu

Main Tutorial Menu

Numbers

SAS T-Test and Graph

(Independent group t-test)

TTEST and Graph

Example SAS Code:

*****************************************
* www.stattutorials.com
* (c) Alan C. Elliott, 2010
* Send comments to info@texasoft.com
***************************************** ;
*
* Do a t-test with a simple graphic comparison.
*;
TITLE;FOOTNOTE;
DATA TTEST;
INPUT BRAND $ HEIGHT;
DATALINES;
A 20.00
A 23.00
A 32.00
A 24.00
A 25.00
A 28.00
A 27.50
B 25.00
B 46.00
B 56.00
B 45.00
B 46.00
B 51.00
B 34.00
B 47.50
;
ODS HTML;
ODS GRAPHICS ON;
ods HTML exclude statistics conflimits equality qqplot;
PROC TTEST;
CLASS BRAND; VAR HEIGHT;
Title 'Independent Group t-Test Example';
RUN;
ODS GRAPHICS OFF;
ODS HTML CLOSE;
QUIT;

T-test SAS Code
(right click link to open and save SAS code)