Object Reference : Object View and Procedure Reference : Series
  
 
testby
Test equality of the mean, median, or variance of a series across categories classified by a list of series or a group.
Syntax
series_name.testby(options) arg1 [arg2 arg2 …]
Follow the testby keyword by a list of the names of the series or groups to use as classifiers. Specify the type of test as an option.
Options
 
mean (default)
Test equality of mean.
med
Test equality of median.
var
Test equality of variance.
dropna (default), keepna
[Drop /Keep] NAs as a classification category.
v=integer (default=100)
Bin categories if classification series take more than the specified number of distinct values.
nov
Do not bin based on the number of values of the classification series.
a=number (default=2)
Bin categories if average cell count is less than the specified number.
noa
Do not bin on the basis of average cell count.
b=integer (default=5)
Set maximum number of binned categories.
nolimt
Remove protections on total number of cells.
prompt
Force the dialog to appear from within a program.
p
Print the test results.
Examples
wage.testby(med) race
Tests equality of medians of WAGE across groups classified by RACE.
Cross-references
See “Equality Tests by Classification” for a discussion of equality tests.
See also Group::testbtw, Series::teststat.