Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Calculating consumer surplus in Stata

    I would like to calculate consumer surplus based on the result of the following regression results.
    The demand function is P=alpha + beta*ln(q_electric/totex). Assuming that the equilibrium P is 8.9 and Q is 950.3. Please help me with the codes if I have combinations of alphas and betas from several regressions.

    Many thanks!


    | Robust
    ln_q_electr~y | Coef. Std. Err. z P>|z| [95% Conf. Interval]
    --------------+----------------------------------------------------------------
    ln_ttotex | .2848769 .0788145 3.61 0.000 .1304034 .4393504
    tariff | -.0279971 .00634 -4.42 0.000 -.0404232 -.015571
    fsize | .0016364 .0006948 2.36 0.019 .0002745 .0029983
    hgc1 | -.3618684 .0392349 -9.22 0.000 -.4387674 -.2849693
    hgc2 | -.2137475 .0335509 -6.37 0.000 -.2795061 -.147989
    hgc3 | -.1073966 .024404 -4.40 0.000 -.1552276 -.0595657
    tenure1 | .1457273 .0188806 7.72 0.000 .1087219 .1827326
    urb | .357512 .019396 18.43 0.000 .3194965 .3955275
    aircon_qty | .1489894 .0217826 6.84 0.000 .1062962 .1916826
    pc_qty | .0942096 .0189774 4.96 0.000 .0570146 .1314046
    ref_qty | .6046353 .0290229 20.83 0.000 .5477514 .6615192
    tv_qty | .205826 .0175987 11.70 0.000 .1713331 .2403188
    cellphone_qty | .0860953 .009818 8.77 0.000 .0668524 .1053383
    _cons | 2.327596 .8431563 2.76 0.006 .6750399 3.980152
    -------------------------------------------------------------------------------
Working...
X