I want to estimate the following system of equations where the dependent variable is a function of (logged) experience.
Y(it) = a*X(it) + b*log(experience(it)) + error(i, t)
experience (it) = c* experience (i,t-1) + dummy(i, t-1)
The way I think of experience is that it is accumulated over time but only a fraction c < 1 is retained over time periods. (1 – c) depreciates away. Experience is augmented if the dummy variable takes the value 1 in the previous period (e.g., i indexes a firm and if they exported in the previous period (export dummy =1) then this augments their experience today). Note there is no error term in the second equation. I want to estimate both b (the importance of experience) and c (the retention parameter.) Y is a count variable, so I want to use Poisson for the first equation.
I can estimate this by non-linear least squares (NLS) but the dataset has 1 million observations and 20,000 dummies in X. So NLS simply cannot do this – my machine just hangs. Can this be done in a more computationally efficient way? Example use maximum likelihood. Any suggestions are welcome.
Thanks in advance, Pushan
Y(it) = a*X(it) + b*log(experience(it)) + error(i, t)
experience (it) = c* experience (i,t-1) + dummy(i, t-1)
The way I think of experience is that it is accumulated over time but only a fraction c < 1 is retained over time periods. (1 – c) depreciates away. Experience is augmented if the dummy variable takes the value 1 in the previous period (e.g., i indexes a firm and if they exported in the previous period (export dummy =1) then this augments their experience today). Note there is no error term in the second equation. I want to estimate both b (the importance of experience) and c (the retention parameter.) Y is a count variable, so I want to use Poisson for the first equation.
I can estimate this by non-linear least squares (NLS) but the dataset has 1 million observations and 20,000 dummies in X. So NLS simply cannot do this – my machine just hangs. Can this be done in a more computationally efficient way? Example use maximum likelihood. Any suggestions are welcome.
Thanks in advance, Pushan
Comment