This is very interesting. Please after calculating the turning point, what is the stata command to generate the Kuznets U-shape. Thanks.
-
Login or Register
- Log in with
clear set obs 1000 gen x = _n gen y = runiform()*x-runiform()*x*x gen lnx =ln(x) gen lnxlnx = ln(x)*ln(x) reg y lnx lnxlnx predict yhat, xb twoway line yhat x
xtmg CO2 GDP GDP^2 POPDENSITY, aug robust
di -_b[GDP]/(2 * _b[GDP^2])
local tp = -_b[GDP]/(2 * _b[GDP^2])
twoway qfit CO2 GDP, xli(`tp')
Comment