Efficiency Measurement William Greene Stern School of Business New York University.

Slides:



Advertisements
Similar presentations
EViews Student Version. Today’s Workshop Basic grasp of how EViews manages data Creating Workfiles Importing data Running regressions Performing basic.
Advertisements

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.
Applied Econometrics Second edition
Part 12: Asymptotics for the Regression Model 12-1/39 Econometrics I Professor William Greene Stern School of Business Department of Economics.
[Part 3] 1/49 Stochastic FrontierModels Stochastic Frontier Model Stochastic Frontier Models William Greene Stern School of Business New York University.
Econometric Analysis of Panel Data
Microeconometric 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.
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
EViews. Agenda Introduction EViews files and data Examining the data Estimating equations.
SPSS 1: An Introduction to the Statistical Package SPSS Suzie Cro MRC Clinical Trials Unit.
Introduction to SPSS Short Courses Last created (Feb, 2008) Kentaka Aruga.
Introduction to Array The fundamental unit of data in any MATLAB program is the array. 1. An array is a collection of data values organized into rows and.
Discrete Choice Modeling William Greene Stern School of Business New York University Lab Sessions.
Introduction to R Statistical Software Anthony (Tony) R. Olsen USEPA ORD NHEERL Western Ecology Division Corvallis, OR (541)
Chapter 2 Software Tools and Assembly Language Syntax.
START EXCEL BUILD OR RETRIEVE YOUR OPTIMIZATION MODEL SAVE YOUR WORKBOOK!! CHOOSE “Solver…” IN THE “Tools” MENU SPECIFY IN SOLVER DIALOG BOX: 1.CELL TO.
Lecture 1: Introduction Lecture series based on the text: Essential MATLAB for Engineers and Scientists By Hahn & Valentine
Empirical Methods for Microeconomic Applications William Greene Department of Economics Stern School of Business.
© Copyright 2000, Julia Hartman 1 Next An Interactive Tutorial for SPSS 10.0 for Windows © by Julia Hartman Using Command Syntax.
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.
1 Lab of COMP 406 Teaching Assistant: Pei-Yuan Zhou Contact: Lab 1: 12 Sep., 2014 Introduction of Matlab (I)
Introduction to Engineering MATLAB – 6 Script Files - 1 Agenda Script files.
Part 9: Hypothesis Testing /29 Econometrics I Professor William Greene Stern School of Business Department of Economics.
Efficiency Measurement William Greene Stern School of Business New York University.
Efficiency Measurement William Greene Stern School of Business New York University.
Getting Started with MATLAB 1. Fundamentals of MATLAB 2. Different Windows of MATLAB 1.
CMPS 1371 Introduction to Computing for Engineers MatLab.
10/24/20151 Chapter 2 Review: MATLAB Environment Introduction to MATLAB 7 Engineering 161.
Frontier Models and Efficiency Measurement Lab Session 1 William Greene Stern School of Business New York University 0Introduction 1Efficiency Measurement.
ISU Basic SAS commands Laboratory No. 1 Computer Techniques for Biological Research Animal Science 500 Ken Stalder, Professor Department of Animal Science.
Chapter 3 MATLAB Fundamentals Introduction to MATLAB Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
GISMO/GEBndPlan Overview Geographic Information System Mapping Object.
Frontier Models and Efficiency Measurement Lab Session 4: Panel Data William Greene Stern School of Business New York University 0Introduction 1Efficiency.
SPSS- Tutorial The following power-point slides show you how to use some of the features in SPSS. A survey of 20 randomly selected companies asked them.
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.
Lecture 20: Choosing the Right Tool for the Job. What is MATLAB? MATLAB is one of a number of commercially available, sophisticated mathematical computation.
ENG 1181 First-Year Engineering Program College of Engineering Engineering Education Innovation Center First-Year Engineering Program MAT - Introduction.
1.Introduction to SPSS By: MHM. Nafas At HARDY ATI For HNDT Agriculture.
Empirical Methods for Microeconomic Applications William Greene Department of Economics Stern School of Business.
Digital Image Processing Introduction to MATLAB. Background on MATLAB (Definition) MATLAB is a high-performance language for technical computing. The.
Discrete Choice Modeling William Greene Stern School of Business New York University Lab Sessions.
NET 222: COMMUNICATIONS AND NETWORKS FUNDAMENTALS ( NET 222: COMMUNICATIONS AND NETWORKS FUNDAMENTALS (PRACTICAL PART) Tutorial 2 : Matlab - Getting Started.
Chapter – 8 Software Tools.
Math 252: Math Modeling Eli Goldwyn Introduction to MATLAB.
Introduction to Eviews Eviews Workshop September 6, :30 p.m.-3:30 p.m.
MATLAB (Matrix Algebra laboratory), distributed by The MathWorks, is a technical computing environment for high performance numeric computation and.
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.
Release Numbers MATLAB is updated regularly
Panel Data Models By Mai Thanh, Jin Lulu.
By Dr. Madhukar H. Dalvi Nagindas Khandwala college
DEPARTMENT OF COMPUTER SCIENCE
Lecture 1: Introduction
Statistical Inference and Regression Analysis: GB
Econometrics I Professor William Greene Stern School of Business
Eviews Tutorial for Labor Economics Lei Lei
funCTIONs and Data Import/Export
Efficiency Measurement
Amos Introduction In this tutorial, you will be briefly introduced to the student version of the SEM software known as Amos. You should download the current.
Econometrics I Professor William Greene Stern School of Business
Microeconometric Modeling
Using NLOGIT for Discrete Choice Modeling
Microeconometric Modeling
Presentation transcript:

Efficiency Measurement William Greene Stern School of Business New York University

Current Versions

Executing the Lab Scripts

Lab Session 1 Introduction to Frontier Modeling with LIMDEP/NLOGIT

Lab Session 1  Operating LIMDEP  Basic Commands - Transformations  Linear Regression/Panel Data Application: Panel data on Spanish Dairy Farms Estimating the linear model Testing a hypothesis Examining residuals

Desktop

Entering Data for Analysis  IMPORT: ASCII, Excel Spreadsheets, other formats.txt,.csv,.txt  READ: other programs.dta (stata),.xls (excel)  LOAD existing data sets in the form of LIMDEP/NLOGIT ‘Project Files’ – SAVED from earlier sessions or data preparations.lpj (nlogit, limdep, Stat Transfer)  Internal data editor

Sample data set: dairy.lpj  Panel Data on Spanish Dairy Farms  Use for a Production Function Study  Raw: Milk,Cows,Land, Labor, Feed  Transformed yit = log(Milk) x1, x2, x3, x4 = logs of inputs x11 =.5*x1 2, x12 = x1*x2, etc. year93 = dummy variable for year,…

Data on Spanish Dairy Farms InputUnitsMeanStd. Dev. MinimumMaximum MilkMilk production (liters) 131,108 92,539 14,110727,281 Cows# of milking cows Labor# man-equivalent units LandHectares of land devoted to pasture and crops FeedTotal amount of feedstuffs fed to dairy cows (tons) 57,94147,9813, ,732 N = 247 farms, T = 6 years ( )

Locate file Dairy.lpj

Project Window Project window displays the data set currently being analyzed: Variables Matrices Other program related results

Instructing LIMDEP to do something  Menus – available but we will generally not use them  Command language – entered in an editor then ‘submitted’ to the program

Use File:New/OK for an Editing Window

Text Editing Window Commands will be entered in this window and submitted from here

Typing Commands in the Editor

When you open a.lim file, it creates a new editing window for you. Submit the existing commands, modify them then submit, or type new commands in the same window.

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

The GO Button There is a STOP button also. You can use it to interrupt iterations that seem to be going nowhere. It is red (active) during iterations.

Where Do Results Go?  On the screen in a third window that is opened automatically  In a text file if you request it.  To an Excel CSV file if you EXPORT them  Internally to matrices, variables, etc.

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

Command Structure  VERB ; instruction ; … ; … $ Verb must be present Semicolons always separate subcommands ALL commands end with $  Case never matters in commands  Spaces are always ignored  Use as many lines as desired, but commands must begin on a new line

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

Model Command  Model ; Lhs = dependent variable ; Rhs = list of independent variables $ Regress ; Lhs=Milk ; Rhs=ONE,Feed,Labor,Land $ ONE requests the constant term - mandatory Typically many optional variations  Models are REGRESS, FRONTIER, PROBIT, POISSON, LOGIT, TOBIT, … and over 100 others. All have the same form. Variants of models such as Poisson / NegBinomial Several hundred different models altogether

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 -,+,*,/. Use letters A – Z, digits 0 – 9 and _ May contain _.

Two Useful Features NAMELIST ; listname = a group of names $ Listname is any new name. After the command, it is a synonym for the list NAMELIST ; CobbDgls=One,LogK,LogL $ REGRESS ;Lhs = LogY ; Rhs = CobbDgls $ * = All names DSTAT ; RHS = * $ REGRESS ; Lhs = Q ; Rhs = One, LOG* $

A Useful Tool - Calculator CALC ; List ; any expression $ CALC ; List ; $ CALC ; List ; FTB (.95,3,1482) $ (Critical point from F table) CALC ; List ; Name = any expression $ Saves result with name so it can be used later. CALC ; Chisq=2*(LogL – Logl0) $ ;LIST may be omitted. Then result is computed but not displayed

Matrix Algebra Large package; integrated into the program. NAMELIST ; X = One,X1,X2,X3,X4 $ MATRIX ; bols = * X’y $ CREATE ; e = y – X’bols $ CALC ; s2 = e’e / (N – Col(X)) $ MATRIX ; Vols =s2 * ;Stat(bols,Vols,X) $ Over 100 matrix functions and all of matrix algebra are supported. Use with CREATE, CALC, and model estimators.

Regression Results  Model estimates on screen in the output window  Matrices B and VARB  Scalar results  New Variables if requested, e.g., residuals  Retrievable table of regression results

Results on the Screen in the Output Window

Matrices B and VARB. Double click names to open windows. Use B and VARB in other MATRIX computations and commands.

Scalar results from a regression can also be used in later computations

Regression Analysis: Testing Cobb-Douglas vs. Translog NAMELIST ; cobbdgls = one,x1,x2,x3,x4 $ NAMELIST ; quadrtic =x11,x22,x33,x44,x12,x13,x14,x23,x24,x34 $ NAMELIST ; translog = cobbdgls,quadrtic $ DSTAT ; Rhs=*$ REGRESS ; Lhs = yit ; Rhs = cobbdgls $ CALC ; loglcd = logl ; rsqcd = rsqrd $ REGRESS ; Lhs = yit ; Rhs= translog $ CALC ; logltl = logl ; rsqtl = rsqrd $ CALC ; dfn = Col(translog) – Col(cobbdgls) $ CALC ; dfd = n – Col(translog) $ CALC ; list ; f=((rsqtl – rsqcd)/dfn) / ((1 - rsqtl)/dfd)$ CALC ; list ; cf = ftb(.95,dfn,dfd) $ CALC ; list ; chisq = 2*(logltl – loglcd) $ CALC ; list ; cc = Ctb(.95,dfn) $ Built in F and Chi squared tests REGRESS ; Lhs = yit ; Rhs = translog ; test: quadrtic $

Exiting the Program

Save Your Work When You Exit

Lab Exercises with Dairy Farm Data  Fit a linear regression with robust covariance matrix  Fit the linear model using least absolute deviations and quantile regression  Test for time effects in the model  Use a Wald test for the translog model  Test for constant returns to scale  Analyze residuals for nonnormality