Announcement

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

  • How to show all variables in one correlation matrix and question about pwcorr syntax?

    Dear all Statalist experts,

    I have three questions with the correlations matrix that I was stuck for a while:

    1. In conducting the correlation matrix, whether we should conduct the correlation matrix for the dependent variables (in case we have many dependent variables) and independent variable separately. From my point of view, because the purpose of the correlation matrix is to give us a glance about the multicollinearity among variables, we only need to conduct the correlation for independent variables. I am wondering whether it is a correct thought.

    2. (optional) I run the correlation matrix but it separates to two graphs as can be seen below, could you please help me to adjust the code that the correlation matrix will be in the same graph? It is nice if we can do it, if not, it is still fine because I need to copy and paste the table to excel and match them together

    Code:
    pwcorr TAT_w1 FAT_w1 CCC OC DPO in_turn_w1 rec_turn_w1 pay_turn_w1 DPO DRO DIO, star(.05)
    Click image for larger version

Name:	Capture.PNG
Views:	1
Size:	18.4 KB
ID:	1681928

    3. Also the picture above, the code pwcorr has the option star(.05), which is described "star(.05) would star all correlation coefficients significant at the 5% level or better". I am wondering the meaning of this statement, or example, in the picture above, the correlation between TAT_w1 and FAT_w1 is 0.4407*, I am wondering what 0.4407* mean here.


    Best regards.

  • #2
    Phuc:
    1) if you refer to, say, OLS the -estat vce, corr- commands displays the coefficient of independent variables;
    2) I do not know;
    3) it means that the correlation coefficient of TAT_w1 and FAT_w1 is 0.4407 and reaches statistical significance at 0.05.
    Kind regards,
    Carlo
    (Stata 19.0)

    Comment


    • #3
      Originally posted by Carlo Lazzaro View Post
      Phuc:
      1) if you refer to, say, OLS the -estat vce, corr- commands displays the coefficient of independent variables;
      2) I do not know;
      3) it means that the correlation coefficient of TAT_w1 and FAT_w1 is 0.4407 and reaches statistical significance at 0.05.
      Dear Carlo Lazzaro

      Thanks a heap for your help, especially for questions 1 and 3. However, I am not totally clear about the meaning of the number 0.05 in question 3. What is the probability can I ask?

      Best.

      Comment


      • #4
        Phuc:
        see -correlate- option, -correlate- entry, Stata .pdf manual.
        Kind regards,
        Carlo
        (Stata 19.0)

        Comment

        Working...
        X