Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: endogenous switching model

From   "Ayla Kayhan" <>
To   <>
Subject   st: endogenous switching model
Date   Tue, 24 Jun 2003 17:49:10 -0500


I would to estimate an endogenous switching model where the sample
separation is not known (Maddala 1983, 1986). Specifically, I would like
to estimate two sets of parameters for the two regimes where the
observations are endogeneously assigned to one of the two groups (I do
not observe the sample separation). I have specified the maximum
likelihood function but the code I have written is not converging.  I
have tried various starting values including the OLS parameter estimates
that I have obtained from the entire sample, but the ml procedure failed
to converge.

Any ideas as to how I can get this procedure to converge is greatly

Thank you very much,


Note:  The following is the program I defined for ml

program define maxim;
version 7.0;

args lnf theta1 theta2 theta3 theta4 theta5 theta6 theta7;

quietly replace
`lnf' = ln(
+ (1-norm(

ml model lf ayla (d5bl = lceoownp lmeddpay loffcc)
(led5 lcov5 lmbbfd5 lmtob lebitda lppe lsize)
(led5 lcov5 lmbbfd5 lmtob lebitda lppe lsize pl5bl), robust

*   For searches and help try:

© Copyright 1996–2019 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index