[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
Re: st: RE: A follow-up question on the IVPROB/IVTOBIT.
Dear Nick Cox (and all):
Thank you so much for your suggestion.
With your help, I reran my IVPROB procedure with
ignoring all observations with any missing values on
A2-A7. The same error message occurred: "matrix has
So, I guess that it is not about the missing values on
my variables. Can anyone suggest what might be the
problems and how to resolve those problems?
(Has anyone encountered the same error message in any
of STATA procedures: what are some general
causes/remedies with the error message “matrix has
Thanks a million in advance for any suggestions.
--- Nick Cox <email@example.com> wrote:
> Kee-Lee Lee
> > I do not know how to thank you guys for your kind
> > helps on my question (on IVPROB/IVTOBIT): with
> > kind help, installing the ado files worked great.
> > But, if you don't mind, I would really like to ask
> > my follow-up question.
> > I have been trying to implement the IVPROB
> > with the following two equations:
> > Eq1) A1 = A2 + A3 + A4 + A5
> > Eq2) A2 = A1 + A3 + A6 + A7
> > Variable A1 is dichotomous and A2 is continuous:
> > of A3-A7 are dichotomous and some of A3-A7 are
> > continuous.
> > I have run the following STATA command to
> > the IVPROB procedure: ivprob A1, endog(A2) iv(A6
> > exog(A3 A4 A5). And, I got the error message
> > that "matrix has missing values".
> > What does that mean, why did it happen, and how
> can I
> > solve it? Is it something about the missing values
> > my variables (I have some missing values on A2 and
> > A3-A7, but not A1) or is it something about the
> > multicollinearity problem or is it about something
> > else.
> -ivprob- was written by Joe Harkness, so he is the
> However, it may well be that your missing values
> to the problem you have; even if this is not true,
> they could lead to other difficulties.
> With the call
> ivprob A1, endog(A2) iv(A6 A7) exog(A3 A4 A5)
> -ivprob- will automatically ignore any observations
> which have
> missing values on A1, but you have none.
> However, different bits of the calculations within
> based on calls to -probit- and -regress-,
> will very possibly omit different parts of the
> observations given the missing values on A2-A7.
> My guess is that if this happens the results will be
> misleading at
> You can test this for yourself. Make sure that the
> ignores all observations with any missing values:
> egen nmiss = rmiss(A2 A3 A4 A5 A6 A7)
> ivprob A1 if nmiss == 0, endog(A2) iv(A6 A7) exog(A3
> A4 A5)
> If your problem persists, you need econometricians'
> Open suggestion on -ivprob-: should not
> marksample touse
> be followed by
> markout touse `endog' `iv' `exog'
> * For searches and help try:
> * http://www.stata.com/support/statalist/faq
> * http://www.ats.ucla.edu/stat/stata/
Do You Yahoo!?
Yahoo! Health - Feel better, live better
* For searches and help try: