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. 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
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
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
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
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
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
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
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
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
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
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
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
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
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
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