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!
Use cell size as weight in an OLS regression.As part of my project, I use cross-sectional data on 3 cells: education, year, and census metropolit…
Display or Show joint test after estimating REGHDFEHello guys, I run the REGHDFE command to estimating this: reghdfe ly $quatre $cinq, a (cmap dveduc3…
Post estimation - SNEOPDear stata users, I have been trying to replicate Stewart, M.B., 2004. Semi-nonparametric estimatio…
<istmt>: 3301 subscript invalid r(3301) when rdplot in nested loopHi Community, I'm writing a nested Loop with Stata, the Variable Cur is a numeric with label, and I …
Calculating ratio with confidence intervalDear All, Do you perhaps have any advice on how to calculate the ratio with 95% confidence interval…
Subscribe to:
Post Comments (Atom)
0 Response to Fitting NL model with strictly positive dependent variable!
Post a Comment