Announcement

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

  • Export variance covariance matrix to csv file

    For example,

    sysuse auto, clear

    I want to export the variance - covariance of variable price mpg headroom in to a csv file.


  • #2

    I want to export the variance - covariance of variable price mpg headroom in to a csv file.
    You mean of a regression involving these variables?

    Code:
    ssc install estout, replace
    Code:
    sysuse auto, clear
    regress price mpg headroom
    mat V=e(V)
    esttab mat(V) using myfile.csv, replace mlab(none)
    Res.:

    Click image for larger version

Name:	Capture.PNG
Views:	1
Size:	24.3 KB
ID:	1708323


    Comment

    Working...
    X