------------------------------------------------------------------------------- log: I:\Web\LearnEconometrics\data\stata\asclogit.smcl log type: smcl opened on: 7 Apr 2008, 13:29:53 . list in 1/9 +-----------------------------------------+ | id choice price feature display | |-----------------------------------------| 1. | 1 0 1.79 0 0 | 2. | 1 0 1.79 0 0 | 3. | 1 1 1.79 0 0 | 4. | 2 0 1.79 0 0 | 5. | 2 0 1.79 0 0 | |-----------------------------------------| 6. | 2 1 .89 1 1 | 7. | 3 0 1.41 0 0 | 8. | 3 0 .84 0 1 | 9. | 3 1 .89 1 0 | +-----------------------------------------+ . generate alt = mod(_n,3) . label define brandlabel 0 "Coke" 1 "Pepsi" 2 "SevenUp" . label values alt brandlabel . list alt choice in 1/9 +------------------+ | alt choice | |------------------| 1. | Pepsi 0 | 2. | SevenUp 0 | 3. | Coke 1 | 4. | Pepsi 0 | 5. | SevenUp 0 | |------------------| 6. | Coke 1 | 7. | Pepsi 0 | 8. | SevenUp 0 | 9. | Coke 1 | +------------------+ . asclogit choice price, case(id) alternatives(alt) basealternative(Coke) note: variable price has 315 cases that are not alternative-specific: there is no within-case variability Iteration 0: log likelihood = -1848.0195 Iteration 1: log likelihood = -1824.6213 Iteration 2: log likelihood = -1824.5621 Iteration 3: log likelihood = -1824.5621 Alternative-specific conditional logit Number of obs = 5466 Case variable: id Number of cases = 1822 Alternative variable: alt Alts per case: min = 3 avg = 3.0 max = 3 Wald chi2(1) = 278.28 Log likelihood = -1824.5621 Prob > chi2 = 0.0000 ------------------------------------------------------------------------------ choice | Coef. Std. Err. z P>|z| [95% Conf. Interval] -------------+---------------------------------------------------------------- alt | price | -2.296369 .1376575 -16.68 0.000 -2.566172 -2.026565 -------------+---------------------------------------------------------------- Coke | (base alternative) -------------+---------------------------------------------------------------- Pepsi | _cons | .2831663 .062381 4.54 0.000 .1609019 .4054307 -------------+---------------------------------------------------------------- SevenUp | _cons | .103833 .0624705 1.66 0.096 -.0186069 .2262729 ------------------------------------------------------------------------------ . estat alternatives Alternatives summary for alt +-------------------------------------------------------------------------+ | Alternative | Cases Frequency Percent | | index value label | present selected selected | |---------------------------------------+---------------------------------| | 1 0 Coke | 1822 510 27.99 | | 2 1 Pepsi | 1822 630 34.58 | | 3 2 SevenUp | 1822 682 37.43 | +-------------------------------------------------------------------------+ . estat mfx Pr(choice = Coke|1 selected) = .27407947 ------------------------------------------------------------------------------- variable | dp/dx Std. Err. z P>|z| [ 95% C.I. ] X -------------+----------------------------------------------------------------- price | Coke | -.456885 .029031 -15.74 0.000 -.513785 -.399985 1.2103 Pepsi | .220127 .015534 14.17 0.000 .189681 .250573 1.2275 SevenUp | .236759 .016369 14.46 0.000 .204677 .268841 1.1176 ------------------------------------------------------------------------------- Pr(choice = Pepsi|1 selected) = .34974729 ------------------------------------------------------------------------------- variable | dp/dx Std. Err. z P>|z| [ 95% C.I. ] X -------------+----------------------------------------------------------------- price | Coke | .220127 .015534 14.17 0.000 .189681 .250573 1.2103 Pepsi | -.52225 .032577 -16.03 0.000 -.586099 -.4584 1.2275 SevenUp | .302123 .020725 14.58 0.000 .261503 .342743 1.1176 ------------------------------------------------------------------------------- Pr(choice = SevenUp|1 selected) = .37617323 ------------------------------------------------------------------------------- variable | dp/dx Std. Err. z P>|z| [ 95% C.I. ] X -------------+----------------------------------------------------------------- price | Coke | .236759 .016369 14.46 0.000 .204677 .268841 1.2103 Pepsi | .302123 .020725 14.58 0.000 .261503 .342743 1.2275 SevenUp | -.538882 .033153 -16.25 0.000 -.60386 -.473903 1.1176 ------------------------------------------------------------------------------- . estat mfx, at(Coke:price=1.10 Pepsi:price=1 SevenUp:price=1.25) Pr(choice = Coke|1 selected) = .28934311 ------------------------------------------------------------------------------- variable | dp/dx Std. Err. z P>|z| [ 95% C.I. ] X -------------+----------------------------------------------------------------- price | Coke | -.472188 .029761 -15.87 0.000 -.530519 -.413857 1.1 Pepsi | .321052 .025424 12.63 0.000 .271221 .370883 1 SevenUp | .151136 .008372 18.05 0.000 .134727 .167545 1.25 ------------------------------------------------------------------------------- Pr(choice = Pepsi|1 selected) = .48319311 ------------------------------------------------------------------------------- variable | dp/dx Std. Err. z P>|z| [ 95% C.I. ] X -------------+----------------------------------------------------------------- price | Coke | .321052 .025424 12.63 0.000 .271221 .370883 1.1 Pepsi | -.573443 .035023 -16.37 0.000 -.642088 -.504799 1 SevenUp | .252391 .014163 17.82 0.000 .224632 .28015 1.25 ------------------------------------------------------------------------------- Pr(choice = SevenUp|1 selected) = .22746378 ------------------------------------------------------------------------------- variable | dp/dx Std. Err. z P>|z| [ 95% C.I. ] X -------------+----------------------------------------------------------------- price | Coke | .151136 .008372 18.05 0.000 .134727 .167545 1.1 Pepsi | .252391 .014163 17.82 0.000 .224632 .28015 1 SevenUp | -.403527 .018607 -21.69 0.000 -.439996 -.367058 1.25 ------------------------------------------------------------------------------- . log close log: I:\Web\LearnEconometrics\data\stata\asclogit.smcl log type: smcl closed on: 7 Apr 2008, 13:31:15 -------------------------------------------------------------------------------