Dear all,
Im currently trying to obtain a simple Cholesky decomposition based on output from a regression output. However, I keep getting an error of "Matrix not positive define".
I believe the problem comes from using categorical variables directly in stata.
Here is a simple example of what I am trying to say:
Is anyone aware of an alternative for this type of transformation?
Thank you
Fernando
PS. Im currently using Stata 15
Im currently trying to obtain a simple Cholesky decomposition based on output from a regression output. However, I keep getting an error of "Matrix not positive define".
I believe the problem comes from using categorical variables directly in stata.
Here is a simple example of what I am trying to say:
Code:
sysuse auto, clear * This version works reg price mpg foreign matrix cv=cholesky(e(V)) * This however gives a problem reg price mpg i.foreign matrix cv2=cholesky(e(V)) matrix not positive definite r(506);
Thank you
Fernando
PS. Im currently using Stata 15
Comment