testbtw |

Test equality of the mean, median or variance of the series in the group.

Syntax

group_name.testbtw(options)

By default, testbtw will test for equality of means, but you may specify instead tests of medians or variances as an option, and choose whether to use balanced or unbalanced samples.

Options

mean (default) | Test equality of mean. |

med | Test equality of median. |

var | Test equality of variance. |

c | Use common (balanced) sample for computing statistics after removing observations with missing values for any series in the group. By default, EViews computes the statistics for each series using an individual (potentially unbalanced) sample after removing observations with missing values for the series. |

prompt | Force the dialog to appear from within a program. |

p | Print the test results. |

Examples

The commands

group g1 wage_m wage_f

g1.testbtw

uses both parametric ANOVA and nonparametric approaches to test the equality of means of the two series WAGE_M and WAGE_F using individual samples to compute the means. Alternately, the command,

g1.testbtw(var, c)

tests for equality of variances using a balanced sample after listwise deletion of rows with missing values.

Cross-references

See
“Tests of Equality” for further discussion of these tests.

See also
Series::testby and
Series::teststat.