You are on page 1of 2

Thursday May 9 11:16:46 2019 Page 1

___ ____ ____ ____ ____(R)


/__ / ____/ / ____/
___/ / /___/ / /___/
Statistics/Data Analysis

___ ____ ____ ____ ____ (R)


/__ / ____/ / ____/
___/ / /___/ / /___/ 15.1 Copyright 1985-2017 StataCorp LLC
Statistics/Data Analysis StataCorp
4905 Lakeway Drive
College Station, Texas 77845 USA
800-STATA-PC http://www.stata.com
979-696-4600 stata@stata.com
979-696-4601 (fax)

Single-user Stata perpetual license:


Serial number: 301506215585
Licensed to: StataForAll
www.stata.com

Notes:
1. Unicode is supported; see help unicode_advice .

1 . use "D:\IESE\STATA\AES\Bases\Estudiantes.dta", clear


(Encuesta estudiantil (ward 1990))

2 . table fraternidad genero, contents(mean beber) row col

Pertenece a
una
fraternidad óhermandad Género (masculino)
Femenino Masculino Total

No Fraternidad 16.51724 19.5625 17.7602


Fraternidad 22.44444 26.13793 24.7234

Total 17.31343 21.31193 19.107

3 . anova beber fraternidad genero fraternidad#genero

Number of obs = 243 R-squared = 0.2221


Root MSE = 5.96592 Adj R-squared = 0.2123

Source Partial SS df MS F Prob>F

Model 2428.6724 3 809.55746 22.75 0.0000

fraternidad 1406.2366 1 1406.2366 39.51 0.0000


genero 408.5201 1 408.5201 11.48 0.0008
fraternidad#genero 3.7801661 1 3.7801661 0.11 0.7448

Residual 8506.5457 239 35.592242

Total 10935.218 242 45.186852

4 . regress, baselevels

Source SS df MS Number of obs = 243


F(3, 239) = 22.75
Model 2428.67237 3 809.557456 Prob > F = 0.0000
Residual 8506.54574 239 35.5922416 R-squared = 0.2221
Adj R-squared = 0.2123
Total 10935.2181 242 45.1868517 Root MSE = 5.9659
Thursday May 9 11:16:46 2019 Page 2

beber Coef. Std. Err. t P>|t| [95% Conf. Interval]

fraternidad
No Fraternidad 0 (base)
Fraternidad 5.927203 1.511349 3.92 0.000 2.949937 8.904469

genero
Femenino 0 (base)
Masculino 3.045259 .8670252 3.51 0.001 1.337272 4.753246

fraternidad#genero
Fraternidad#Masculino .648228 1.98907 0.33 0.745 -3.270119 4.566575

_cons 16.51724 .5539221 29.82 0.000 15.42605 17.60843

5 .

You might also like