Object Reference : Object View and Procedure Reference : Series
  
 
teststat
Test simple hypotheses of whether the mean, median, or variance of a series is equal to a specified value.
Syntax
series_name.teststat(options)
Specify the type of test and the value under the null hypothesis as an option.
Options
 
mean=number
Test the null hypothesis that the mean equals the specified number.
med=number
Test the null hypothesis that the median equals the specified number.
var=number
Test the null hypothesis that the variance equals the specified number. The number must be positive.
std=number
Test equality of mean conditional on the specified standard deviation. The standard deviation must be positive.
prompt
Force the dialog to appear from within a program.
p
Print the test results.
Examples
smpl if race=1
lwage.teststat(var=4)
tests the null hypothesis that the variance of LWAGE is equal to 4 for the subsample with RACE=1.
Cross-references
See “Descriptive Statistics & Tests” for a discussion of simple hypothesis tests.
See also Group::testbtw, Series::testby.