Professional Documents
Culture Documents
do "C:\Users\HP\AppData\Local\Temp\STD4574_000000.tmp"
. cd"C:\Users\HP\Downloads\econometria 2 tarea\"
C:\Users\HP\Downloads\econometria 2 tarea
. drop if edu==.
.
*****************************************************************************
*
> ****
. keep INGRESO p301a p208a p204 p207 ubigeo vivienda conglome hogar codperso
. drop if ING==999999
(0 observations deleted)
. drop if ING==.
. drop if educa==.
(0 observations deleted)
. drop if educa==1
. drop if educa==2
. gen edad2=edad^2
. tab p204
�es miembro |
------------+-----------------------------------
no | 55 0.21 100.00
------------+-----------------------------------
. keep if p204==1
. drop if sexo==.
(0 observations deleted)
------------------------------------------------------------------------------
Group | Obs Mean Std. Err. Std. Dev. [95% Conf. Interval]
---------+--------------------------------------------------------------------
0 | 10,490 608.1806 10.01885 1026.138 588.5418 627.8195
1 | 15,470 918.9033 12.04466 1498.096 895.2944 942.5122
---------+--------------------------------------------------------------------
combined | 25,960 793.3455 8.294661 1336.445 777.0875 809.6035
---------+--------------------------------------------------------------------
diff | -310.7226 16.79321 -343.6383 -277.807
------------------------------------------------------------------------------
diff = mean(0) - mean(1) t = -18.5029
Pr(T < t) = 0.0000 Pr(|T| > |t|) = 0.0000 Pr(T > t) = 1.0000
sexo | mean
---------+----------
0 | 608.1806
1 | 918.9033
---------+----------
Total | 793.3455
--------------------
------------------------------------------------------------------------------
-------------+----------------------------------------------------------------
------------------------------------------------------------------------------
---------+----------------------------------------
0 | 608.1806 10490 20000 1.687225
---------+----------------------------------------
--------------------------------------------------
sexo | mean
---------+----------
0 | 608.1806
1 | 918.9033
---------+----------
Total | 793.3455
--------------------
-----------------+------------------------------------------------------------
-----------------+------------------------------------------------------------
------------------------------------------------------------------------------
sexo | mean
---------+----------
0 | 608.1806
1 | 918.9033
---------+----------
Total | 793.3455
--------------------
------------------------------------------------------------------------------
Group | Obs Mean Std. Err. Std. Dev. [95% Conf. Interval]
---------+--------------------------------------------------------------------
---------+--------------------------------------------------------------------
---------+--------------------------------------------------------------------
------------------------------------------------------------------------------
Pr(T < t) = 0.0000 Pr(|T| > |t|) = 0.0000 Pr(T > t) = 1.0000
educa | mean
-----------------+----------
maestria/doctora | 2899.717
Total | 793.3455
----------------------------
. keep ubigeo vivienda conglome hogar codperso edad edad2 educa sexo
. *p301b p301c
r(111);
end of do-file
r(111);
MI DUO FAIL
cd"C:\Users\HP\Downloads\econometria 2 tarea\"
drop if edu==.
save educacion, replace
*****************************************************************************
*****
keep INGRESO p301a p208a p204 p207 ubigeo vivienda conglome hogar codperso
drop if ING==999999
drop if ING==.
drop if educa==.
drop if educa==1
drop if educa==2
gen edad2=edad^2
tab p204
keep if p204==1
drop if sexo==.
keep ubigeo vivienda conglome hogar codperso edad edad2 educa sexo
*p301b p301c
keep if _merge==3
drop if sexo==.
gen ln_w=ln(INGRESO)
drop if sexo==.
gen ln_w=ln(INGRESO)