The name is absent



Stata Technical Bulletin

13


overlap! is an immediate version of overlap. For the case of equal variances, the syntax is

overlap! mean1 mean2 sd

where sd is the common standard deviation of the two variables. For the case of unequal variances, the syntax is
overlap!
mean1 mean2 sd1 sd2 (sd1 ≠ sd2)

For the general case, the syntax is

overlap! mean1 mean2 sd1 sd2 n1 n2

where n1 and n2 are the numbers of observations used to estimate the means and standard deviations of the two variables. This
syntax displays both the equal and unequal variance versions of the overlapping coefficient.

Example

As an example, we compare the distributions of fuel efficiency of foreign and domestic cars in the automobile data set
supplied with Stata. We begin by calculating the t test of the null hypothesis that the average miles per gallon is the same for
both sets of cars.

. use stataauto, clear

(1978 Automobile Data)

. ttest mpg,
Variable

by(foreign)
Obs

Mean

Std. Dev.

---------+.

0 I
1 I

52

22

19.82692

24.77273

4.743297

6.611187

---------+-
combined

Hc

74

»: mean(x)

t

Pr > tI

21.2973    5.785503

= mean(y) (assuming equal variances)

= -3.63 with 72 d.f.

= 0.0005

The t test reveals a highly significant difference between the average mileage for foreign cars (24.8 MPG) and the average
mileage for domestic cars (19.8
MPG). However, the variance of MPG seems a bit higher for the foreign cars. Since the default
t test assumes equal variances across groups, we investigate further to see whether this assumption is justified.

. sdtest mpg, by(foreign)

Variable

I

Obs

Mean

Std. Dev.

0
1

I
I

52

22

19.82692

24.77273

4.743297

6.611187

combined

I

Ho:

74
sd(x)

F(21,51)
2*(Pr > F)

= sd(y)

= 1.94

= 0.0549

5.35582

(two-tailed test)

The evidence is mixed: the p value of the test statistic is 5.5 percent. Since we are not sure whether the variances are equal,
we calculate the unequal variance version of the
t test, to see if the apparent significance of the mileage difference is sensitive
to the assumption of equal variances.

. ttest mpg, by(foreign) unequal
Variable I       Obs        Mean   Std. Dev.

---------+---------------------------------

0 I        52    19.82692    4.743297

1 I        22    24.77273    6.611187

---------+---------------------------------
combined I       74     21.2973

Ho: mean(x) = mean(y) (assuming unequal variances)
t = -3.18 with 31 d.f.

Pr > t = 0.0033



More intriguing information

1. Innovation Policy and the Economy, Volume 11
2. The name is absent
3. The name is absent
4. Clinical Teaching and OSCE in Pediatrics
5. The technological mediation of mathematics and its learning
6. The name is absent
7. The name is absent
8. REVITALIZING FAMILY FARM AGRICULTURE
9. An Incentive System for Salmonella Control in the Pork Supply Chain
10. Pursuit of Competitive Advantages for Entrepreneurship: Development of Enterprise as a Learning Organization. International and Russian Experience
11. Evidence of coevolution in multi-objective evolutionary algorithms
12. Short report "About a rare cause of primary hyperparathyroidism"
13. EDUCATIONAL ACTIVITIES IN TENNESSEE ON WATER USE AND CONTROL - AGRICULTURAL PHASES
14. Inflation Targeting and Nonlinear Policy Rules: The Case of Asymmetric Preferences (new title: The Fed's monetary policy rule and U.S. inflation: The case of asymmetric preferences)
15. A Critical Examination of the Beliefs about Learning a Foreign Language at Primary School
16. Benchmarking Regional Innovation: A Comparison of Bavaria, Northern Ireland and the Republic of Ireland
17. Importing Feminist Criticism
18. Program Semantics and Classical Logic
19. The Tangible Contribution of R&D Spending Foreign-Owned Plants to a Host Region: a Plant Level Study of the Irish Manufacturing Sector (1980-1996)
20. THE ECONOMICS OF COMPETITION IN HEALTH INSURANCE- THE IRISH CASE STUDY.