Optionaloptions: AnsariTestOptionsAnsari-Bradley test from a formula and a data frame. As R's ansari.test(formula, data): "y ~ g"
compares the two levels of g (the first level is x). Only the variables of the formula count: the rows where
one of them is missing are dropped.
"y ~ g".
The data frame: an object of columns (null or NaN for a missing value).
Optionaloptions: AnsariTestOptions
Ansari-Bradley test that two samples differ in scale. Equivalent to R's
ansari.test().NaNvalues are dropped.With
confInt: true,confIntis the interval for the ratio of the scales ofxandyandestimateits estimate, both computed with the locations taken as 0 (exact without ties when both samples have fewer than 50 values, otherwise by the normal approximation, whose limits are roots found to a tolerance of 1e-4 as in R). Limits that cannot be formed (the samples differ in location) areNaN. With ties andexactunset ortrue, R fails ("object 'cint' not found"); rStats.js returns the normal-approximation interval, as withexact: false, and the warnings R gives before it stops.