Skip to main content
added 2491 characters in body
Source Link
dimitriy
  • 38.3k
  • 7
  • 83
  • 167

The last line yields:

Conditional marginal effects                    Number of obs     =         69
Model VCE    : OIM

dy/dx w.r.t. : 2.cat_var 3.cat_var 4.cat_var
1._predict   : Pr(rep78==1), predict(pr outcome(1))
2._predict   : Pr(rep78==2), predict(pr outcome(2))
3._predict   : Pr(rep78==3), predict(pr outcome(3))
4._predict   : Pr(rep78==4), predict(pr outcome(4))
5._predict   : Pr(rep78==5), predict(pr outcome(5))

------------------------------------------------------------------------------
             |            Delta-method
             |      dy/dx   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
2.cat_var    |
    _predict |
          1  |  -.0010489   .0357763    -0.03   0.977    -.0711693    .0690714
          2  |  -.0023935   .0810853    -0.03   0.976    -.1613178    .1565307
          3  |  -.0010249   .0338153    -0.03   0.976    -.0673017     .065252
          4  |   .0027114   .0917155     0.03   0.976    -.1770477    .1824706
          5  |   .0017559   .0589478     0.03   0.976    -.1137797    .1172914
-------------+----------------------------------------------------------------
3.cat_var    |
    _predict |
          1  |  -.0362813   .0401879    -0.90   0.367     -.115048    .0424855
          2  |  -.1305657   .0828541    -1.58   0.115    -.2929568    .0318254
          3  |  -.2607216    .104809    -2.49   0.013    -.4661434   -.0552998
          4  |   .1308751   .0953367     1.37   0.170    -.0559813    .3177316
          5  |   .2966935   .1270194     2.34   0.020       .04774    .5456469
-------------+----------------------------------------------------------------
4.cat_var    |
    _predict |
          1  |  -.0379775   .0411425    -0.92   0.356    -.1186154    .0426604
          2  |  -.1477191   .0843946    -1.75   0.080    -.3131294    .0176912
          3  |  -.4194057   .1213036    -3.46   0.001    -.6571563    -.181655
          4  |   .0323166   .1558637     0.21   0.836    -.2731707    .3378039
          5  |   .5727857   .2405893     2.38   0.017     .1012393    1.044332
------------------------------------------------------------------------------
Note: dy/dx for factor levels is the discrete change from the base level.

So for example, the AME for 4 versus 1 for outcome 5 (Excellent) is .5727857, which means that the probability that a car's repair record is rated as excellent goes up by .57 on a 0-1 scale as we go from the lowest mileage bucket to the highest.

So for example, the AME for 4 versus 1 for outcome 5 (Excellent) is .5727857, which means that the probability that a car's repair record is rated as excellent goes up by .57 on a 0-1 scale as we go from the lowest mileage bucket to the highest.

The last line yields:

Conditional marginal effects                    Number of obs     =         69
Model VCE    : OIM

dy/dx w.r.t. : 2.cat_var 3.cat_var 4.cat_var
1._predict   : Pr(rep78==1), predict(pr outcome(1))
2._predict   : Pr(rep78==2), predict(pr outcome(2))
3._predict   : Pr(rep78==3), predict(pr outcome(3))
4._predict   : Pr(rep78==4), predict(pr outcome(4))
5._predict   : Pr(rep78==5), predict(pr outcome(5))

------------------------------------------------------------------------------
             |            Delta-method
             |      dy/dx   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
2.cat_var    |
    _predict |
          1  |  -.0010489   .0357763    -0.03   0.977    -.0711693    .0690714
          2  |  -.0023935   .0810853    -0.03   0.976    -.1613178    .1565307
          3  |  -.0010249   .0338153    -0.03   0.976    -.0673017     .065252
          4  |   .0027114   .0917155     0.03   0.976    -.1770477    .1824706
          5  |   .0017559   .0589478     0.03   0.976    -.1137797    .1172914
-------------+----------------------------------------------------------------
3.cat_var    |
    _predict |
          1  |  -.0362813   .0401879    -0.90   0.367     -.115048    .0424855
          2  |  -.1305657   .0828541    -1.58   0.115    -.2929568    .0318254
          3  |  -.2607216    .104809    -2.49   0.013    -.4661434   -.0552998
          4  |   .1308751   .0953367     1.37   0.170    -.0559813    .3177316
          5  |   .2966935   .1270194     2.34   0.020       .04774    .5456469
-------------+----------------------------------------------------------------
4.cat_var    |
    _predict |
          1  |  -.0379775   .0411425    -0.92   0.356    -.1186154    .0426604
          2  |  -.1477191   .0843946    -1.75   0.080    -.3131294    .0176912
          3  |  -.4194057   .1213036    -3.46   0.001    -.6571563    -.181655
          4  |   .0323166   .1558637     0.21   0.836    -.2731707    .3378039
          5  |   .5727857   .2405893     2.38   0.017     .1012393    1.044332
------------------------------------------------------------------------------
Note: dy/dx for factor levels is the discrete change from the base level.

So for example, the AME for 4 versus 1 for outcome 5 (Excellent) is .5727857, which means that the probability that a car's repair record is rated as excellent goes up by .57 on a 0-1 scale as we go from the lowest mileage bucket to the highest.

added 233 characters in body
Source Link
dimitriy
  • 38.3k
  • 7
  • 83
  • 167
  1. You need to use the i. prefix in front of connectivity to let Stata know that it is dealing with a categorical variable. Otherwise Stata will assume that it is continuous, which is why you only get one parameter. Some people do treat Likert scale variables as if they were continuous, but I would avoid it since it bakes in some strong assumptions.
  2. You can use marginsmargins to get the average marginal effects of the categorical variable for each possible outcomes.

Here's an example with the cars data. The outcome is repair record (1=Poor, Fair, Average, Good, and 5=Excellent) and the explanatory variable is rounded and scaled version of miles per gallon (1=low mileage,2,3,4=high mileage), cat_var:

webuse fullauto, clear
gen cat_var = round(mpg,10) 
replace cat_var = cat_var/10

oprobit rep78 i.cat_var 
margins, dydx(cat_var)

So for example, the MEAME for 4 versus 1 for outcome 5 (Excellent) is .5727857, which means that the probability that a car's repair record is rated as excellent goes up by .57 on a 0-1 scale as we go from the lowest mileage bucket to the highest.

You can control the omitted category for the categorical variable by adjusting the prefix:

oprobit rep78 ib2.cat_var

This makes the AMEs relative to 2 rather than 1.

  1. You need to use the i. prefix in front of connectivity to let Stata know that it is dealing with a categorical variable. Otherwise Stata will assume that it is continuous, which is why you only get one parameter. Some people do treat Likert scale variables as if they were continuous, but I would avoid it since it bakes in some strong assumptions.
  2. You can use margins to get the marginal effects for each outcomes.

Here's an example with the cars data. The outcome is repair record (1=Poor, Fair, Average, Good, and 5=Excellent) and the explanatory variable is rounded and scaled version of miles per gallon (1=low mileage,2,3,4=high mileage), cat_var:

webuse fullauto, clear
gen cat_var = round(mpg,10) 
replace cat_var = cat_var/10

oprobit rep78 i.cat_var 
margins, dydx(cat_var)

So for example, the ME for 4 versus 1 for outcome 5 (Excellent) is .5727857, which means that the probability that a car's repair record is rated as excellent goes up by .57 on a 0-1 scale as we go from the lowest mileage bucket to the highest.

  1. You need to use the i. prefix in front of connectivity to let Stata know that it is dealing with a categorical variable. Otherwise Stata will assume that it is continuous, which is why you only get one parameter. Some people do treat Likert scale variables as if they were continuous, but I would avoid it since it bakes in some strong assumptions.
  2. You can use margins to get the average marginal effects of the categorical variable for each possible outcomes.

Here's an example with the cars data. The outcome is repair record (1=Poor, Fair, Average, Good, and 5=Excellent) and the explanatory variable is rounded and scaled version of miles per gallon (1=low mileage,2,3,4=high mileage), cat_var:

webuse fullauto, clear
gen cat_var = round(mpg,10) 
replace cat_var = cat_var/10

oprobit rep78 i.cat_var 
margins, dydx(cat_var)

So for example, the AME for 4 versus 1 for outcome 5 (Excellent) is .5727857, which means that the probability that a car's repair record is rated as excellent goes up by .57 on a 0-1 scale as we go from the lowest mileage bucket to the highest.

You can control the omitted category for the categorical variable by adjusting the prefix:

oprobit rep78 ib2.cat_var

This makes the AMEs relative to 2 rather than 1.

added 1 character in body
Source Link
dimitriy
  • 38.3k
  • 7
  • 83
  • 167
  1. You need to use the i. prefix in front of walkabilityconnectivity to let Stata know that it is dealing with a categorical variable. Otherwise Stata will assume that it is continuous, which is why you only get one parameter. Some people do treat Likert scale variables as if they were continuous, but I would avoid it since it bakes in some strong assumptions.
  2. You can use margins to get the marginal effects for each outcomes.

Here's an example with the cars data. The outcome is repair record (1=Poor, Fair, Average, Good, and 5=Excellent) and the explanatory variable is rounded and scaled version of miles per gallon (1=low mileage,2,3,4=high mileage), cat_var:

webuse fullauto, clear
gen cat_var = round(mpg,10) 
replace cat_var = cat_var/10

oprobit rep78 i.cat_var 
margins, dydx(cat_var)

So for example, the ME for 4 versus 1 for outcome 5 (Excellent) is .5727857, which means that the probability that a car's repair record is rated as excellent goes up by .57 on a 0-1 scale as we go from the lowest mileage bucket to the highest.

  1. You need to use the i. prefix in front of walkability to let Stata know that it is dealing with a categorical variable. Otherwise Stata will assume that it is continuous, which is why you only get one parameter. Some people do treat Likert scale variables as if they were continuous, but I would avoid it since it bakes in some strong assumptions.
  2. You can use margins to get the marginal effects for each outcomes.

Here's an example with the cars data. The outcome is repair record (1=Poor, Fair, Average, Good, and 5=Excellent) and the explanatory variable is rounded and scaled version of miles per gallon (1=low mileage,2,3,4=high mileage), cat_var:

webuse fullauto, clear
gen cat_var = round(mpg,10) 
replace cat_var = cat_var/10

oprobit rep78 i.cat_var 
margins, dydx(cat_var)

So for example, the ME for 4 versus 1 for outcome 5 (Excellent) is .5727857, which means that the probability that a car's repair record is rated as excellent goes up by .57 on a 0-1 scale as we go from the lowest mileage bucket to the highest.

  1. You need to use the i. prefix in front of connectivity to let Stata know that it is dealing with a categorical variable. Otherwise Stata will assume that it is continuous, which is why you only get one parameter. Some people do treat Likert scale variables as if they were continuous, but I would avoid it since it bakes in some strong assumptions.
  2. You can use margins to get the marginal effects for each outcomes.

Here's an example with the cars data. The outcome is repair record (1=Poor, Fair, Average, Good, and 5=Excellent) and the explanatory variable is rounded and scaled version of miles per gallon (1=low mileage,2,3,4=high mileage), cat_var:

webuse fullauto, clear
gen cat_var = round(mpg,10) 
replace cat_var = cat_var/10

oprobit rep78 i.cat_var 
margins, dydx(cat_var)

So for example, the ME for 4 versus 1 for outcome 5 (Excellent) is .5727857, which means that the probability that a car's repair record is rated as excellent goes up by .57 on a 0-1 scale as we go from the lowest mileage bucket to the highest.

added 4 characters in body
Source Link
dimitriy
  • 38.3k
  • 7
  • 83
  • 167
Loading
Source Link
dimitriy
  • 38.3k
  • 7
  • 83
  • 167
Loading