Discrete Choice Modeling William Greene Stern School of Business New York University Lab Sessions.

Slides:



Advertisements
Similar presentations
Econometrics I Professor William Greene Stern School of Business
Advertisements

Discrete Choice Modeling William Greene Stern School of Business New York University Lab Sessions.
Discrete Choice Modeling
Empirical Methods for Microeconomic Applications University of Lugano, Switzerland May 27-31, 2013 William Greene Department of Economics Stern School.
Discrete Choice Modeling William Greene Stern School of Business New York University Lab Sessions.
Discrete Choice Modeling William Greene Stern School of Business New York University Lab Sessions.
Discrete Choice Modeling William Greene Stern School of Business New York University.
Part 17: Nonlinear Regression 17-1/26 Econometrics I Professor William Greene Stern School of Business Department of Economics.
Part 12: Asymptotics for the Regression Model 12-1/39 Econometrics I Professor William Greene Stern School of Business Department of Economics.
Discrete Choice Modeling William Greene Stern School of Business IFS at UCL February 11-13, 2004
3. Binary Choice – Inference. Hypothesis Testing in Binary Choice Models.
[Part 1] 1/15 Discrete Choice Modeling Econometric Methodology Discrete Choice Modeling William Greene Stern School of Business New York University 0Introduction.
1 BINARY CHOICE MODELS: LOGIT ANALYSIS The linear probability model may make the nonsense predictions that an event will occur with probability greater.
Econometrics I Professor William Greene Stern School of Business
Discrete Choice Modeling William Greene Stern School of Business New York University Lab Sessions.
Discrete Choice Modeling William Greene Stern School of Business New York University Lab Sessions.
Discrete Choice Modeling William Greene Stern School of Business New York University Lab Sessions.
Statistical Inference and Regression Analysis: GB Professor William Greene Stern School of Business IOMS Department Department of Economics.
Discrete Choice Modeling William Greene Stern School of Business IFS at UCL February 11-13, 2004.
1/62: Topic 2.3 – Panel Data Binary Choice Models Microeconometric Modeling William Greene Stern School of Business New York University New York NY USA.
Part 23: Simulation Based Estimation 23-1/26 Econometrics I Professor William Greene Stern School of Business Department of Economics.
Discrete Choice Modeling William Greene Stern School of Business New York University.
2. Binary Choice Estimation. Modeling Binary Choice.
Econometric Methodology. The Sample and Measurement Population Measurement Theory Characteristics Behavior Patterns Choices.
Discrete Choice Modeling William Greene Stern School of Business New York University.
Discrete Choice Modeling William Greene Stern School of Business New York University Lab Sessions.
Discrete Choice Modeling William Greene Stern School of Business New York University.
Discrete Choice Modeling William Greene Stern School of Business New York University.
Efficiency Measurement William Greene Stern School of Business New York University.
Empirical Methods for Microeconomic Applications William Greene Department of Economics Stern School of Business.
Discrete Choice Modeling William Greene Stern School of Business New York University.
Discrete Choice Modeling William Greene Stern School of Business New York University.
Discrete Choice Modeling William Greene Stern School of Business New York University.
[Part 4] 1/43 Discrete Choice Modeling Bivariate & Multivariate Probit Discrete Choice Modeling William Greene Stern School of Business New York University.
Discrete Choice Modeling William Greene Stern School of Business New York University.
Discrete Choice Modeling William Greene Stern School of Business New York University.
Discrete Choice Modeling William Greene Stern School of Business New York University.
Discrete Choice Modeling William Greene Stern School of Business New York University.
1/62: Topic 2.3 – Panel Data Binary Choice Models Microeconometric Modeling William Greene Stern School of Business New York University New York NY USA.
Discrete Choice Modeling William Greene Stern School of Business New York University.
Discrete Choice Modeling William Greene Stern School of Business New York University.
1/53: Topic 3.1 – Models for Ordered Choices Microeconometric Modeling William Greene Stern School of Business New York University New York NY USA William.
Discrete Choice Modeling William Greene Stern School of Business New York University Lab Sessions.
[Part 2] 1/86 Discrete Choice Modeling Binary Choice Models Discrete Choice Modeling William Greene Stern School of Business New York University 0Introduction.
6. Ordered Choice Models. Ordered Choices Ordered Discrete Outcomes E.g.: Taste test, credit rating, course grade, preference scale Underlying random.
[Part 5] 1/43 Discrete Choice Modeling Ordered Choice Models Discrete Choice Modeling William Greene Stern School of Business New York University 0Introduction.
1 BINARY CHOICE MODELS: LOGIT ANALYSIS The linear probability model may make the nonsense predictions that an event will occur with probability greater.
Discrete Choice Modeling William Greene Stern School of Business New York University.
The Probit Model Alexander Spermann University of Freiburg SS 2008.
Applied Econometrics William Greene Department of Economics Stern School of Business.
How to use Limdep?. Three important windows 1.Project window (you can check e.g. the variable and matrix lists and how the variables are coded) 2. Editing.
1/26: Topic 2.2 – Nonlinear Panel Data Models Microeconometric Modeling William Greene Stern School of Business New York University New York NY USA William.
5. Extensions of Binary Choice Models
Microeconometric Modeling
Microeconometric Modeling
William Greene Stern School of Business New York University
William Greene Stern School of Business New York University
Microeconometric Modeling
Microeconometric Modeling
Microeconometric Modeling
Microeconometric Modeling
Microeconometric Modeling
Microeconometric Modeling
Microeconometric Modeling
Microeconometric Modeling
Microeconometric Modeling
Microeconometric Modeling
Econometrics I Professor William Greene Stern School of Business
Empirical Methods for Microeconomic Applications
Presentation transcript:

Discrete Choice Modeling William Greene Stern School of Business New York University Lab Sessions

Lab Session 2 Analyzing Binary Choice Data

Data Set: Load PANELPROBIT.LPJ

Fit Basic Models

Partial Effects Partial derivatives of E[y] = F[*] with respect to the vector of characteristics They are computed at the means of the Xs Observations used for means are All Obs Variable| Coefficient Standard Error b/St.Er. P[|Z|>z] Elasticity |Index function for probability Constant| *** IMUM|.36165*** FDIUM|.79115*** SP|.26256*** |Marginal effect for dummy variable is P|1 - P|0. RAWMTL| *** |Marginal effect for dummy variable is P|1 - P|0. INVGOOD|.12499*** |Marginal effect for dummy variable is P|1 - P|0. FOOD| Note: ***, **, * = Significance at 1%, 5%, 10% level. Elasticity for a binary variable = marginal effect/Mean

Partial Effects for Interactions

Partial Effects  Build the interactions into the model statement PROBIT ; Lhs = Doctor ; Rhs = one,age,educ,age^2,age*educ $  Built in computation for partial effects PARTIALS ; Effects: Age & Educ = 8(2)20 ; Plot(ci) $

Estimation Step Binomial Probit Model Dependent variable DOCTOR Log likelihood function Restricted log likelihood Chi squared [ 4 d.f.] Significance level | Standard Prob. Mean DOCTOR| Coefficient Error z z>|Z| of X |Index function for probability Constant| ** AGE| *** EDUC| AGE^2.0|.00085*** AGE*EDUC| Note: ***, **, * ==> Significance at 1%, 5%, 10% level

Average Partial Effects Partial Effects Analysis for Probit Probability Function Partial effects on function with respect to AGE Partial effects are computed by average over sample observations Partial effects for continuous variable by differentiation Partial effect is computed as derivative = df(.)/dx df/dAGE Partial Standard (Delta method) Effect Error |t| 95% Confidence Interval Partial effect EDUC = EDUC = EDUC = EDUC = EDUC = EDUC = EDUC =

Useful Plot

More Elaborate Partial Effects  PROBIT ; Lhs = Doctor ; Rhs = one,age,educ,age^2,age*educ, female,female*educ,income $  PARTIAL ; Effects: female = 0,1 ? Do for each subsample | educ = 12,16,20 ? Set 3 fixed values & age = 20(10)50 ? APE for each setting

Constructed Partial Effects

Predictions List and keep predictions Add ; List ; Prob = PFIT to the probit or logit command (Tip: Do not use ;LIST with large samples!) Sample ; $ PROBIT ; Lhs=ip ; Rhs=x1 ; List ; Prob=Pfit $ DSTAT ; Rhs = IP,PFIT $

Predictions Predicted Values (* => observation was not in estimating sample.) Observation Observed Y Predicted Y Residual x(i)b Prob[Y=1]

Testing a Hypothesis – Wald Test SAMPLE ; All $ PROBIT ; Lhs = IP ; RHS = Sectors,X1 $ MATRIX ; b1 = b(1:3) ; v1 = Varb(1:3,1:3) $ MATRIX ; List ; Waldstat = b1' b1 $ CALC ; List ; CStar = CTb(.95,3) $

Testing a Hypothesis – LM Test PROBIT ; LHS = IP ; RHS = X1 $ PROBIT ; LHS = IP ; RHS = X1,Sectors ; Start = b,0,0,0 ; MAXIT = 0 $

Results of an LM test Maximum iterations reached. Exit iterations with status=1. Maxit = 0. Computing LM statistic at starting values. No iterations computed and no parameter update done | Binomial Probit Model | | Dependent variable IP | | Number of observations 6350 | | Iterations completed 1 | | LM Stat. at start values | | LM statistic kept as scalar LMSTAT | | Log likelihood function | | Restricted log likelihood | | Chi squared | | Degrees of freedom 6 | | Prob[ChiSqd > value] = | |Variable | Coefficient | Standard Error |b/St.Er.|P[|Z|>z] | Mean of X| Constant IMUM FDIUM SP RAWMTL INVGOOD FOOD Note: Wald equaled

Likelihood Ratio Test PROBIT ; Lhs = IP ; Rhs = X1,Sectors $ CALC ; LOGLU = Logl $ PROBIT ; Lhs = IP ; Rhs = X1 $ CALC ; LOGLR = Logl $ CALC ; List ; LRStat = 2*(LOGLU – LOGLR) $ Result is

Using the Binary Choice Simulator Fit the model with MODEL ; Lhs = … ; Rhs = … Simulate the model with BINARY CHOICE ; ; Start = B (coefficients) ; Model = the kind of model (Probit or Logit) ; Scenario: variable = value / (may repeat) ; Plot: Variable ( range of variation is optional) ; Limit = P* (is optional, 0.5 is the default) $ E.g.: Probit ; Lhs = IP ; Rhs = One,LogSales,Imum,FDIum $ BinaryChoice ; Lhs = IP ; Rhs = One,LogSales,IMUM,FDIUM ; Model = Probit ; Start = B ; Scenario: LogSales * = 1.1 ; Plot: LogSales $

Estimated Model for Innovation |Variable | Coefficient | Standard Error |b/St.Er.|P[|Z|>z] | Mean of X| Index function for probability Constant LOGSALES IMUM FDIUM |Predictions for Binary Choice Model. Predicted value is | |1 when probability is greater than , 0 otherwise.| | |Actual| Predicted Value | | |Value | 0 1 | Total Actual | | 0 | 531 ( 8.4%)| 2033 ( 32.0%)| 2564 ( 40.4%)| | 1 | 454 ( 7.1%)| 3332 ( 52.5%)| 3786 ( 59.6%)| |Total | 985 ( 15.5%)| 5365 ( 84.5%)| 6350 (100.0%)|

Effect of logSales on Probability

Model Simulation: logSales Increases by 10% for all Firms in the Sample |Scenario 1. Effect on aggregate proportions. Probit Model | |Threshold T* for computing Fit = 1[Prob > T*] is | |Variable changing = LOGSALES, Operation = *, value = | |Outcome Base case Under Scenario Change | | = 15.51% 300 = 4.72% -685 | | = 84.49% 6050 = 95.28% 685 | | Total 6350 = % 6350 = % 0 |