Announcement

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

  • Examining Pearson´s Correlation

    Hi,

    I am doing an investigation on Pearson´s Correlation Coefficient. I would like to present the following result from my samples:
    - Of course the Pearson correlation coefficient, r, degrees of freedom (N - 2)
    - Statistical significance level (P-value of 5 %)
    - The coefficient of determination, r^2.

    I have approximately 1700 observations of numerical data for each variable, for one variable "bit" and another variable named "gold". How would my Stata command look to get results like this?

    Will the command be something like:

    "pwcorr, star(0.05) sig, r2"?

    Thank for advice in advance.

    Warm regards,
    Guest
    Last edited by sladmin; 16 Nov 2020, 05:34. Reason: anonymize original poster

  • #2
    this does not look like what I see in the help file - you can certainly show the correlation coefficient and the number of observations (but not the df), and you can show stars and p-values; however, not with your code which does not include any variable names (needed); further, I see no direct way to show r2 and, further, it is not clear from your question what r2 you want; see
    Code:
    help pwcorr
    also, your example code shows 2 commas - in general, use only one comma unless you know exactly what you are doing (commands go before first comma, options after first comma - this can be generalized to additional commas, but options will always follow odd-numbered commas (e.g., 1st, 3rd, etc.))

    Comment


    • #3
      This sounds like homework: https://www.statalist.org/forums/help#adviceextras

      Comment

      Working...
      X