I have estimated a model of the following form using NL:
y=exp(xB)*(P^{gamma}) * (I^{theta}) + epsilon
where y (expenditures) is strictly positive, x is a set of control vars, P is price, and I is income, epsilon~IID(0, sigma). My main problem is that the model generates negative predicted values, while gamma (price elasticity) and theta (income elasticity) have the right sign and magnitudes. I have also estimated this model using log-log transformation with OLS. Finally, I have tried Poisson and GLM [link(log) and family(gamma or Poisson)] but the sign of elasticities change and the estimated coefficients no longer make any sense.
I really would like to estimate this model using MLE so that I could conduct likelihood ratio tests. In that case, I would specify the model properly as:
1. y=exp(xB)*(P^{gamma}) * (I^{theta}) * epsilon, epsilon~IID(1, sigma) [Perhaps choosing a distribution for epsilon with strictly positive supports]
OR
2. y=exp(xB)*(P^{gamma}) * (I^{theta}) + epsilon, epsilon~IID-log-normal (0, sigma) [or some distribution for epsilon with strictly positive outcome and mean zero]
I am new to MLE programming and have spent much time trying to implement (1) above. I would really appreciate any pointers or suggestions.
Thank you!
Cyrus
Related Posts with Fitting NL model with strictly positive dependent variable!
Trend Analysis with Adjustment for CovariatesHi everyone, I would like to do a trend test with adjustment for covariates. But as far as I know, …
Step by Step Stata PanelDear Stata Users, I am quite a newbie to Stata and panel data. Actually when I take a look at books…
Interpreatation of regression and mean valueHello, my question is regarding regression and mean value. So one group of my dataset has better Pe…
converting string to date returns missing valuesHello, I have a string variable (str10) which I want to convert into date so i can add and subtract …
Margins after ivreg2 - with partial optionDear all, I am running IV regression using ivreg2 with the partial option; Code: ivreg2 total i.…
Subscribe to:
Post Comments (Atom)
0 Response to Fitting NL model with strictly positive dependent variable!
Post a Comment