![]() | ![]() | ![]() | ![]() | ![]() |
| Contents: | Purpose / Requirements / Usage / Details / Limitations / Missing Values / References |
%inc "<location of your file containing the VARTEST macro>";
Following this statement, you may call the %VARTEST macro. See the Results tab for an example.
The following options are available. The VAR= option is required.
To request that a test of the variance or standard deviation, specify either VAR0= or SIGMA0= but not both. If both are omitted, then only point- and confidence intervals are computed.
Results of the test and the point- and confidence interval estimates
are available in a data set named _VARTEST after execution of the
macro.
Milton, J.S. and Arnold, J.C. (1995), Introduction to probability and statistics: Principles and applications for engineering and the computing science, New York: McGraw-Hill Inc.
These sample files and code examples are provided by SAS Institute Inc. "as is" without warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability and fitness for a particular purpose. Recipients acknowledge and agree that SAS Institute shall not be liable for any damages whatsoever arising out of their use of this material. In addition, SAS Institute will provide no support for the materials contained herein.
These sample files and code examples are provided by SAS Institute Inc. "as is" without warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability and fitness for a particular purpose. Recipients acknowledge and agree that SAS Institute shall not be liable for any damages whatsoever arising out of their use of this material. In addition, SAS Institute will provide no support for the materials contained herein.
data dat;
input x @@;
cards;
6.2 1.9 4.4 4.9 3.5
4.6 4.2 1.1 1.3 4.8
4.1 3.7 2.5 3.7 4.2
1.4 3.2 2.6 1.5 3.9
;
%inc "<location of your file containing the VARTEST macro>";
%vartest(data= dat ,
var= x ,
alpha= 0.05 ,
var0= 2.25 )
95% Confidence Intervals for Variance and Std Dev
Lower Upper
Confidence Confidence
Statistic Estimate Limit Limit
Variance 1.98661 1.14894 4.23796
Std Dev 1.40947 1.07189 2.05863
95% Hypothesis Test for
H0: Variance(X) = 2.25
Ha: Variance(X) > 2.25
Chi- Prob>Chi-
Square Square
16.7758 0.6051
Right-click on the link below and select Save to save
the %VARTEST macro definition
to a file. It is recommended that you name the file
vartest.sas.
| Type: | Sample |
| Topic: | SAS Reference ==> Procedures ==> UNIVARIATE |
| Date Modified: | 2007-08-14 03:03:10 |
| Date Created: | 2005-01-13 15:03:58 |
| Product Family | Product | Host | SAS Release | |
| Starting | Ending | |||
| SAS System | SAS/STAT | All | n/a | n/a |




