Dear Statalist readers,
I am trying to estimate a switching regression model
with unknown regimes.
Basically, I want to estimate an Euler equation for optimal
consumption choice for two groups: 1) one that is unconstrained and 2) the
other that is supposed to be liquidity constrained.
I have tried the user-written command
–movestay-, which is a very nice command, but it refers to a model where
the regime is known, i.e. you know in advance whether an observation belongs to
either a group or to the other.
On the contrary, I would like to obtain the
estimation referring to the regime equation from a joint estimation of the main
and the regime equation by max the likelihood. The switchr command, another
user-written command, is not completely satisfying because it does not max the
likelihood, but in the end it relies on an OLS estimation and on an initial
guess on which group the observation belongs. I know that people have max the
joint likelihood such as the one I have in mind using Gauss and I would like to
do it using Stata, possibly starting from the d2 evaluator used in the
–movestay- command and by modifying it allowing for unknown regimes.
Is there anyone that has already tried to do something
in this direction or can give some advice?
Thanks for your help
Silvia Magri
Research Department
Banca d'Italia
Via Nazionale 91 - Roma
e-mail: [email protected]
phone: 39 06 4792-4377
** Le e-mail provenienti dalla Banca d'Italia sono trasmesse in buona fede e
non comportano alcun vincolo ne' creano obblighi per la Banca stessa,
salvo che cio' non sia espressamente previsto da un accordo scritto.
Questa e-mail e' confidenziale. Qualora l'avesse ricevuta per errore, La
preghiamo di comunicarne via e-mail la ricezione al mittente e di
distruggerne il contenuto. La informiamo inoltre che l'utilizzo non
autorizzato del messaggio o dei suoi allegati potrebbe costituire reato.
Grazie per la collaborazione.
-- E-mails from the Bank of Italy are sent in good faith but they are neither
binding on the Bank nor to be understood as creating any obligation on its
part except where provided for in a written agreement. This e-mail is
confidential. If you have received it by mistake, please inform the sender
by reply e-mail and delete it from your system. Please also note that the
unauthorized disclosure or use of the message or any attachments could be
an offence. Thank you for your cooperation. **