Monday, February 28, 2011

Solution to Example 6 in Lab 5 Notes

This example is similar to question 3 in the Lab Assignment 5. The solution is posted in WebCt. I thought I could upload a document here but it only works for pictures or videos. Here is the SAS program: DATA Example6;
input Farm VarietyA VarietyB;
diff=VarietyA-VarietyB;
datalines;
1 48.2 41.5
2 44.6 40.1
3 49.7 44.0
4 40.5 41.2
5 54.6 49.8
6 47.1 41.7
7 51.4 46.8
;

title Paired t-test comparison;
proc print data=Example6;
run;

*you can perform a t-test using Proc ttest;
proc ttest data=Example6;
var diff;
run;

No comments:

Post a Comment