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
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.
Brought to you by the CPP Robotics Club. Agenda –Solve –Factor –Expand –Propfrac –Derivatives –Integration –Notefolio Features Covered –Taking Limits.
Applied Econometrics Second edition
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.
Word Lesson 1 Microsoft Word Basics
Discrete Choice Modeling William Greene Stern School of Business New York University Lab Sessions.
Part 24: Bayesian Estimation 24-1/35 Econometrics I Professor William Greene Stern School of Business Department of Economics.
Path Analysis SPSS/AMOS
By Hrishikesh Gadre Session II Department of Mechanical Engineering Louisiana State University Engineering Equation Solver Tutorials.
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.
This presentation contains the following: -the availability and need menu options -the add option Mark Smith.
© Copyright 2000, Julia Hartman 1 An Interactive Tutorial for SPSS 10.0 for Windows © by Julia Hartman Multiple Linear Regression Next.
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.
A Simple Guide to Using SPSS© for Windows
Part 4: Partial Regression and Correlation 4-1/24 Econometrics I Professor William Greene Stern School of Business Department of Economics.
A Visual Introduction to PC SAS. Start SAS by double-clicking on the SAS icon...
EViews. Agenda Introduction EViews files and data Examining the data Estimating equations.
Discrete Choice Modeling William Greene Stern School of Business New York University Lab Sessions.
Introduction to SPSS Short Courses Last created (Feb, 2008) Kentaka Aruga.
Discrete Choice Modeling William Greene Stern School of Business New York University Lab Sessions.
Word Processing basics
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.
Chapter 14 Introduction to Multiple Regression Sections 1, 2, 3, 4, 6.
Part 5: Random Effects [ 1/54] Econometric Analysis of Panel Data William Greene Department of Economics Stern School of Business.
Pasewark & Pasewark 1 Word Lesson 1 Word Basics Microsoft Office 2007: Introductory.
Objectives Understand what MATLAB is and why it is widely used in engineering and science Start the MATLAB program and solve simple problems in the command.
Ranjeet Department of Physics & Astrophysics University of Delhi Working with Origin.
Microeconometric Modeling William Greene Stern School of Business New York University.
Learning the TSP2: a guide for students at the 国際総合学類筑波大学 RUNNING REGRESSIONS FROM A SPREADSHEET FILE If you are using a network browser to view this program,
Using SPSS for Windows Part II Jie Chen Ph.D. Phone: /6/20151.
McGraw-Hill/Irwin The Interactive Computing Series © 2002 The McGraw-Hill Companies, Inc. All rights reserved. Microsoft Excel 2002 Lesson 1 Introduction.
Discrete Choice Modeling William Greene Stern School of Business New York University Lab Sessions.
Then click the box for Normal probability plot. In the box labeled Standardized Residual Plots, first click the checkbox for Histogram, Multiple Linear.
Frontier Models and Efficiency Measurement Lab Session 1 William Greene Stern School of Business New York University 0Introduction 1Efficiency Measurement.
Introduction to SPSS. Object of the class About the windows in SPSS The basics of managing data files The basic analysis in SPSS.
Laboratory 1. Introduction to SAS u Statistical Analysis System u Package for –data entry –data manipulation –data storage –data analysis –reporting.
Efficiency Measurement William Greene Stern School of Business New York University.
Frontier Models and Efficiency Measurement Lab Session 2: Stochastic Frontier William Greene Stern School of Business New York University 0Introduction.
PYP002 Intro.to Computer Science Microsoft Word1 Lab 04 - a Microsoft Windows Applications Common Features.
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 Lab Sessions.
1 Word Lesson 1 Microsoft Word Basics Microsoft Office 2010 Introductory Pasewark & Pasewark.
Introduction to Programming on MATLAB Ecological Modeling Course Sep 11th, 2006.
1/61: Topic 1.2 – Extensions of the Linear Regression Model Microeconometric Modeling William Greene Stern School of Business New York University New York.
The Probit Model Alexander Spermann University of Freiburg SS 2008.
Introduction to Eviews Eviews Workshop September 6, :30 p.m.-3:30 p.m.
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.
IENG-385 Statistical Methods for Engineers SPSS (Statistical package for social science) LAB # 1 (An Introduction to SPSS)
Lessons Copy and Paste Text Drag and Drop Text 2-Saving Documents 3- Printing 4-Inserting Tables Modifying Page Layout Format Page Margins Insert a Blank.
BINARY LOGISTIC REGRESSION
DEPARTMENT OF COMPUTER SCIENCE
Microeconometric Modeling
Statistical Inference and Regression Analysis: GB
Eviews Tutorial for Labor Economics Lei Lei
William Greene Stern School of Business New York University
MPHIL AdvancedEconometrics
Microeconometric Modeling
Using NLOGIT for Discrete Choice Modeling
Microeconometric Modeling
Empirical Methods for Microeconomic Applications
Presentation transcript:

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

Lab Session 1 Getting Started with NLOGIT

NLOGIT 4.0 Please read “Introduction to NLOGIT.”

Locate file Dairy.lpj Locate file dairy.lpj

Project Window Note: Name Sample Size Variables

Use File:New/OK for an Editing Window

Save Your Work When You Exit

Typing Commands in the Editor

Important Commands: SAMPLE ; first - last $ Sample ; 1 – 1000 $ Sample ; All $ CREATE ; Variable = transformation $ Create ; LogMilk = Log(Milk) $ Create ; LMC =.5*Log(Milk)*Log(Cows) $ Create ; … any algebraic transformation $

Name Conventions CREATE ; name = any function desired $ Name is the name of a new variable No more than 8 characters in a name The first character must be a letter May not contain -,+,*,/. May contain _.

Model Command Model ; Lhs = dependent variable ; Rhs = list of independent variables $ Regress ; Lhs = Milk ; Rhs = ONE,Feed,Labor,Land $ ONE requests the constant term Models are REGRESS, PROBIT, POISSON, LOGIT, TOBIT, … and about 100 others. All have the same form.

The Go Button

“Submitting” Commands One Command Place cursor on that line Press “Go” button More than one command Highlight all lines (like any text editor) Press “Go” button

Compute a Regression Sample ; All $ Regress ; Lhs = YIT ; Rhs = One,X1,X2,X3,X4 $ The constant term in the model

Project window shows variables Results appear in output window Commands typed in editing window Standard Three Window Operation

Temporary Windows Submit command PLOT;LHS=X1;RHS=YIT$ Close window by clicking ‘×’ when done.

Model Results Sample ; All $ Regress ; Lhs = YIT ; Rhs =One,X1,X2,X3,X4 ; Res = e ? (Regression with residuals saved) ; Plot Residuals Produces results: Displayed results in output Displayed plot in its own window Variables added to data set Matrices Named Scalars

Output Window

Residual Plot

New Variable Regress;Lhs=Yit;Rhs=One,x1,x2,x3,x4 ; Res = e ; Plot Residuals $ ? We can now manipulate the new ? variable created by the regression. Namelist ; z = Year94,Year95,Year96, Year97,Year98$ Create;esq = e*e / (sumsqdev/nreg) – 1 $ Regress; Lhs = esq ; Rhs=One,z $ Calc ; List ; LMTstHet = nreg*Rsqrd $

Saved Matrices B=estimated coefficients and VARB=estimated asymptotic covariance matrix are saved by every model command. Different model estimators save other results as well. Here, we manipulate B and VARB to compute a restricted least squares estimator the hard way. REGRESS ; Lhs = Yit ; Rhs=One,x1,x2,x3,x4 $ NAMELIST ; X = One,x1,x2,x3,x4 $ MATRIX ; R = [0,1,1,1,1] ; q = [1] ; XXI = ; m = R*B – q ; C=R*XXI*R’ ; bstar = B - XXI*R’* *m ; Vbstar=VARB – ssqrd*XXI*R’* *R*XXI $

Saved Scalars Model estimates include named scalars. Linear regressions save numerous scalars. Others usually save 3 or 4, such as LOGL, and others. The program on the previous page used SSQRD saved by the regression. The LM test two pages back used NREG (the number of observations used) and RSQRD (the R 2 in the most recent regression).

Model Commands Generic form: Model name ; Lhs = dependent variable ; Rhs = independent variables $ Rhs should generally include ONE to request a constant term.

Probit Model Load Spector.lpj

Probit Model Estimation Probit ; Lhs = Grade ; Rhs = one,gpa,tuce,psi $ Features added as additional specifications ; Marginal effects

Command Builder Dialog

Model Command