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

st: matrix not positive definite

From   "Maria Montez" <>
To   <>
Subject   st: matrix not positive definite
Date   Thu, 28 Apr 2005 10:29:50 -0400


I'm running a model with many many dummies. The purpose of the analysis is
to find the relation between access to care and cost. In my program I
compute predictive margins for those access variables and then I run a
simulation to compute confidence intervals for the predictive margins.
Everything works with the exception of the simulation. The simulation code
per se is working but not with all the dummy variables I have in the model.
It works when I control using 60 dummies for age/sex, race, and mental
health comorbidities. But I also need to control for general medical
comorbidities and for these I am using a risk adjustment tool that has 174
variables. When I enter these in the model (together with the other 60 plus
the access variables) the simulation part fails as follows:

. corr2data $indv constant, n($number) means(betas) cov(varcovar) clear
matrix not positive definite

In the regression command, all variables entered in the model are retained
but could I still be having colinearity problems? If so, is there any
command or program that I could use to figure out which variables are
collinear? Looking at a correlation matrix of all these variables would be a

Any comments or suggestions are greatly appreciated.

Thanks, Maria

*   For searches and help try:

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