Professional Documents
Culture Documents
Punto 3
gen region=1 if northcen==1
replace region=2 if south==1
replace region=3 if west==1
replace region=4 if region==.
egen avewage=mean(wage)
bysort region:egen avewage_reg=mean(wage)
Wage= 0.93+0.5446=
25
20
15
10
5
0
0 5 10 15 20
educ
gen lwage=log(wage)
. di exp( .082942 )
1.0864788
predict pred_salario,xb,