advanced econometrics i
play

ADVANCED ECONOMETRICS I Theory (2/3) Instructor: Joaquim J. S. - PowerPoint PPT Presentation

ADVANCED ECONOMETRICS I Theory (2/3) Instructor: Joaquim J. S. Ramalho E.mail: jjsro@iscte-iul.pt Personal Website: http://home.iscte-iul.pt/~jjsro Office: D5.10 Course Website: https://jjsramalho.wixsite.com/advecoi Fnix:


  1. ADVANCED ECONOMETRICS I Theory (2/3) Instructor: Joaquim J. S. Ramalho E.mail: jjsro@iscte-iul.pt Personal Website: http://home.iscte-iul.pt/~jjsro Office: D5.10 Course Website: https://jjsramalho.wixsite.com/advecoi Fรฉnix: https://fenix.iscte-iul.pt/disciplinas/03089

  2. 2. Nonlinear Regression Analysis 2.1. Model Estimation 2.1.1. Maximum Likelihood 2.1.2. Quasi-Maximum Likelihood Estimation 2.1.3. Generalized Method of Moments 2.2. Model Inference and Evaluation 2.3. Panel Data Models 2020/2021 Joaquim J.S. Ramalho Advanced Econometrics I 2

  3. 2. Nonlinear Regression Analysis Motivation: Often, the dependent variable is discrete and/or bounded, in which case linear regression models cannot describe it appropriately Some continuous, bounded dependent variables may be transformed in such a way that linear regression models can still be used for their analysis; but in some cases such transformations are not available 2020/2021 Joaquim J.S. Ramalho Advanced Econometrics I 3

  4. 2. Nonlinear Regression Analysis Quantities of interest: Linear models: โ–ช ๐น ๐‘ ๐‘Œ Nonlinear models: โ–ช ๐น ๐‘ ๐‘Œ โ–ช If using a probabilistic model: ๐‘„๐‘  ๐‘ ๐‘Œ โ–ช In some models, there may be also interest on variants of the previous quantities: โ€“ Example: when modelling a nonnegative outcome, ๐‘ โ‰ฅ 0 , with lots of zeros, it may be interesting to estimate also: ยป ๐‘„๐‘  ๐‘ = 0 ๐‘Œ ยป ๐น ๐‘ ๐‘Œ, ๐‘ > 0 2020/2021 Joaquim J.S. Ramalho Advanced Econometrics I 4

  5. 2. Nonlinear Regression Analysis Partial Effects: Linear models: โ–ช Model: ๐น ๐‘ ๐‘Œ = ๐‘Œ๐›พ โ–ช Effects: โˆ†๐‘Œ ๐‘˜ = 1 โŸน โˆ†๐น ๐‘ ๐‘Œ = ๐›พ ๐‘˜ Nonlinear models: โ–ช Model: โ€“ ๐น ๐‘ ๐‘Œ = ๐ป ๐‘Œ๐›พ โ€“ ๐‘„๐‘  ๐‘ ๐‘Œ = ๐บ ๐‘Œ๐›พ โ–ช Effects: โˆ†๐‘Œ ๐‘˜ = 1 โŸน โ€“ โˆ†๐น ๐‘ ๐‘Œ = ๐œ–๐น ๐‘|๐‘Œ ๐œ–๐ป ๐‘Œ๐›พ ๐œ–๐ป ๐‘Œ๐›พ โ€ฒ ๐›พ = = ๐›พ ๐‘˜ = ๐›พ ๐‘˜ ๐‘• ๐‘ฆ ๐‘— ๐œ–๐‘Œ ๐‘˜ ๐œ–๐‘Œ ๐‘˜ ๐œ–๐‘Œ๐›พ ๐œ–๐‘„๐‘  ๐‘|๐‘Œ ๐œ–๐บ ๐‘Œ๐›พ ๐œ–๐บ ๐‘Œ๐›พ โ€ฒ ๐›พ โ€“ โˆ†๐‘„๐‘  ๐‘ ๐‘Œ = = = ๐›พ ๐‘˜ = ๐›พ ๐‘˜ ๐‘” ๐‘ฆ ๐‘— ๐œ–๐‘Œ ๐‘˜ ๐œ–๐‘Œ ๐‘˜ ๐œ–๐‘Œ๐›พ 2020/2021 Joaquim J.S. Ramalho Advanced Econometrics I 5

  6. 2. Nonlinear Regression Analysis Partial effects may be compared across different models, but the values of ๐›พ cannot ๐œ–๐ป ๐‘Œ๐›พ ๐œ–๐บ ๐‘Œ๐›พ > 0 and > 0 : However, because ๐œ–๐‘Œ๐›พ ๐œ–๐‘Œ๐›พ โ–ช The sign of the partial effect is given by the sign of ๐›พ ๐‘˜ โ–ช Testing the statistical significance of the partial effect is equivalent to test for ๐ผ 0 : ๐›พ ๐‘˜ = 0 To calculate the magnitude of the partial effects, there are three main alternatives: โ–ช Calculate the partial effects for each individual in the sample and then obtain the mean of those effects Stata โ–ช Replace x by its sample means (after estimating the model) margins , dydx(๐‘ค๐‘๐‘ ๐‘š๐‘—๐‘ก๐‘ข) at (โ€ฆ) โ–ช Replace x by specific values margins , dydx(๐‘ค๐‘๐‘ ๐‘š๐‘—๐‘ก๐‘ข) atmeans margins , dydx(๐‘ค๐‘๐‘ ๐‘š๐‘—๐‘ก๐‘ข) 2020/2021 Joaquim J.S. Ramalho Advanced Econometrics I 6

  7. 2. Nonlinear Regression Analysis 2.1. Model Estimation Estimation: Most common estimation methods: โ–ช Maximum Likelihood (ML): more efficient โ–ช Quasi-Maximum Likelihood (QML): more robust In both cases it is necessary to specify: โ–ช The ๐ป function in ๐น ๐‘ ๐‘Œ = ๐ป ๐‘Œ๐›พ โ–ช The ๐บ function in ๐‘„๐‘  ๐‘ ๐‘Œ = ๐บ ๐‘Œ๐›พ Main assumptions: โ–ช ML: โ€“ Correct specification of both ๐ป and ๐บ โ–ช QML: โ€“ Correct specification of ๐ป โ€“ ๐บ does not need to be correctly specified but needs to belong to the linear exponential family (e.g. Normal, Bernoulli, Poisson, Exponencial, Gama, etc.) 2020/2021 Joaquim J.S. Ramalho Advanced Econometrics I 7

  8. 2. Nonlinear Regression Analysis 2.1. Model Estimation ML / QML estimation - Statistics: Distribution function - ๐บ ๐‘ง : gives the probability of the random variable ๐‘ taking a value less than or equal to ๐‘ง : ๐บ ๐‘ง = ๐‘„๐‘  ๐‘ โ‰ค ๐‘ง Density function - ๐‘” ๐‘ง : โ–ช Derivative of the distribution function: ๐‘ง ๐‘” ๐‘ง ๐‘’๐‘ ๐œ–๐บ ๐‘ง ๐‘” ๐‘ง = ๐บ ๐‘ง = ืฌ โˆ’โˆž ๐œ–๐‘ง โ–ช In the continuous case, describes the relative likelihood for the random variable ๐‘ being equal to ๐‘ง (not the absolute likelihood) โ–ช In the discrete case gives the probability of the random variable ๐‘ being equal to ๐‘ง 2020/2021 Joaquim J.S. Ramalho Advanced Econometrics I 8

  9. 2. Nonlinear Regression Analysis 2.1. Model Estimation Likelihood function: โ–ช In individual terms, it is the same as the density function โ–ช Usually, it is calculated for the full sample, giving the likelihood of observing that sample under the assumption that the density function ๐‘” ๐‘ง describes appropriately the population behaviour โ–ช Assuming independence across individuals and the same distribution for all of them, it is calculated as: ๐‘‚ ๐‘€ ๐‘ง = ฯ‚ ๐‘—=1 ๐‘” ๐‘ง ๐‘— , 0 โ‰ค ๐‘€ ๐‘ง โ‰ค 1 Usually: โ–ช ๐บ ๐‘ง , ๐‘” ๐‘ง and ๐‘€ ๐‘ง depend also on 1 or 2 parameters โ–ช One of the parameters represents ๐น ๐‘ง 2020/2021 Joaquim J.S. Ramalho Advanced Econometrics I 9

  10. 2. Nonlinear Regression Analysis 2.1. Model Estimation Most popular density functions: ๐’ ๐’ˆ ๐’› Function 2๐œŒ๐œ 2 1/2 exp โˆ’ ๐‘ง โˆ’ ๐œˆ 2 1 Normal ๐œˆ, ๐œ 2 ] โˆ’ โˆž, +โˆž[ 2๐œ 2 โˆ’๐‘ง 1 ]0, +โˆž[ Exponential ๐œˆ ๐œˆ ๐œˆ ๐‘“ ฮ“ ๐œ€ ฮ“ ๐œˆ๐œ€ ฮ“ 1 โˆ’ ๐œˆ ๐œ€ ๐‘ง ๐œˆ๐œ€โˆ’1 1 โˆ’ ๐‘ง 1โˆ’๐œˆ ๐œ€โˆ’1 ]0,1[ Beta ๐œˆ, ๐œ€ ๐œˆ ๐‘ง 1 โˆ’ ๐œˆ 1โˆ’๐‘ง {0,1} Bernoulli ๐œˆ ๐œˆ ๐‘ง ๐‘“ โˆ’๐œˆ {0,1,2, โ€ฆ } Poisson ๐œˆ ๐‘ง! In all cases: ๐น ๐‘ง = ๐œˆ 2020/2021 Joaquim J.S. Ramalho Advanced Econometrics I 10

  11. 2. Nonlinear Regression Analysis 2.1. Model Estimation Econometrics: All the analysis is conditional on a set of explanatory variables The parameter ๐œˆ ( = ๐น ๐‘ง in Statistics) is replaced by the function assumed for ๐น ๐‘ง|๐‘Œ , for example ๐‘Œ๐›พ (linear regression model) It is assumed that the likelihood function is known up to the set of parameters ๐›พ (and, in case the original function has 2 parameters, the other parameter) Density function to be considered: ๐‘” ๐‘ง ๐‘— |๐‘ฆ ๐‘— ; ๐›พ 2020/2021 Joaquim J.S. Ramalho Advanced Econometrics I 11

  12. 2. Nonlinear Regression Analysis 2.1. Model Estimation Estimation: Given that: โ–ช The density function ๐‘” โˆ™ is known, except for ๐›พ โ–ช The probability that the sample values were in fact generated by the chosen density ๐‘” โˆ™ is measured by the likelihood function Then: โ–ช We should choose for ๐›พ the value that maximizes ๐‘€ ๐‘ง ๐‘— |๐‘ฆ ๐‘— ; ๐›พ โ–ช Optimization problem: ๐‘‚ max ๐›พ ๐‘€ ๐‘ง|๐‘Œ; ๐›พ = เท‘ ๐‘” ๐‘ง ๐‘— |๐‘ฆ ๐‘— ; ๐›พ ๐‘—=1 โ–ช Actually, it is more common to maximize ๐‘€๐‘€ ๐‘Œ๐›พ = ln ๐‘€ ๐‘ง|๐‘Œ; ๐›พ : ๐‘‚ max ๐›พ ๐‘€๐‘€ ๐‘Œ๐›พ = เท ln ๐‘” ๐‘ง ๐‘— |๐‘ฆ ๐‘— ; ๐›พ ๐‘—=1 โ€“ It is easier to maximize โ€“ It produces the same estimates for ๐›พ 2020/2021 Joaquim J.S. Ramalho Advanced Econometrics I 12

  13. 2. Nonlinear Regression Analysis 2.1. Model Estimation Properties of ML / QML Estimators: Asymptotic properties of ML estimators: โ–ช Consistency โ–ช Efficiency โ–ช Normality Asymptotic properties of QML estimators: โ–ช Consistency โ–ช Normality โ–ช Efficiency is lost; variance calculated in a robust way โ–ช Not possible to predict ๐‘„๐‘  ๐‘ ๐‘Œ and associated partial effects Finite sample properties for both estimators: โ–ช Unknown 2020/2021 Joaquim J.S. Ramalho Advanced Econometrics I 13

  14. 2. Nonlinear Regression Analysis 2.2. Model Inference and Evaluation Alternative forms for estimating parameter variances: Standard / Efficient โŸถ only available for ML Robust โŸถ only makes sense for QML Cluster-robust โŸถ panel data Bootstrap Classical tests: Likelihood Ratio (LR) โŸถ only available for ML Wald Score/LM 2020/2021 Joaquim J.S. Ramalho Advanced Econometrics I 14

  15. 2. Nonlinear Regression Analysis 2.2. Model Inference and Evaluation Test for the joint significance of a set of parameters: Competing models: โ–ช Restricted (smaller) model, based on ๐‘€ ๐‘† ๐›พ 0 + ๐›พ 1 ๐‘ฆ 1 + โ‹ฏ + ๐›พ ๐‘• ๐‘ฆ ๐‘• โ–ช Full (larger) model , based on ๐‘€ ๐บ เตซ ๐›พ 0 + ๐›พ 1 ๐‘ฆ 1 + โ‹ฏ + ๐›พ ๐‘• ๐‘ฆ ๐‘• + ๐›พ ๐‘•+1 ๐‘ฆ ๐‘•+1 + โ‹ฏ + ๐›พ ๐‘™ ๐‘ฆ ๐‘™ เตฏ Hypotheses: ๐ผ 0 : ๐›พ ๐‘•+1 = โ‹ฏ = ๐›พ ๐‘™ = 0 (restricted model) ๐ผ 1 : No ๐ผ 0 (full model) 2020/2021 Joaquim J.S. Ramalho Advanced Econometrics I 15

  16. 2. Nonlinear Regression Analysis 2.2. Model Inference and Evaluation LR test: Stata 2 ๐‘€๐‘† = 2 ๐‘€๐‘€ ๐บ ๐‘Œ๐›พ ๐บ โˆ’ ๐‘€๐‘€ ๐‘† ๐‘Œ๐›พ ๐‘† ~๐œ“ ๐‘™โˆ’๐‘• (estimate one model) โ–ช Available in most econometric packages estimates store Model1 (estimate the other model) โ–ช Easy calculation estimates store Model2 lrtest ๐‘๐‘๐‘’๐‘“๐‘š1 ๐‘๐‘๐‘’๐‘“๐‘š2 โ–ช Both the competing models need to be estimated Wald test: โˆ’1 แˆ˜ โ€ฒ Var แˆ˜ ๐‘‹ = แˆ˜ 2 ๐›พ ๐ธ ๐›พ ๐ธ ๐›พ ๐ธ ~๐œ“ ๐‘™โˆ’๐‘• where แˆ˜ ๐›พ ๐‘•+1 , โ€ฆ , แˆ˜ แˆ˜ ๐›พ ๐ธ = ๐›พ ๐‘™ is estimated based on ๐‘€๐‘€ ๐บ ๐‘Œ๐›พ ๐บ โ–ช When ๐ผ 0 : ๐›พ ๐‘˜ = 0 , ๐‘‹ simplifies to: แˆ˜ ๐›พ ๐‘˜ ๐‘ข = ~๐’ช 0,1 ๐œ เทก เทœ ๐›พ ๐‘˜ Stata (after estimating the full model) โ–ช Available in most econometric packages test ๐‘Œ ๐‘•+1 โ‹ฏ ๐‘Œ ๐‘™ โ–ช Only the full model needs to be estimated 2020/2021 Joaquim J.S. Ramalho Advanced Econometrics I 16

Recommend


More recommend