Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • how to display covariance - correlation matrix from a logistic regression model

    Hello I'm looking to display the cholesky covariance - correlation matrix from a logistic model

    Code:
    pwcorr mpg price rep78
    
    //attempt 2
    
    reg price mpg foreign
    matrix cv=cholesky(e(V))
    error: ​​​matrix not positive definite r(506); Then I attempted to use - matselrc (Stata Journal; Nick Cox) However, apparetnyl this has been marked as historical What is the alternative ?
    Last edited by Tara Boyle; 13 May 2024, 05:57.

  • #2
    worked for me, but I'm running the latest version.

    sometimes, I have trouble doing things with e matrices.
    try

    matrix V = e(V)
    matrix cv = cholesky(V)

    Comment

    Working...
    X