Answers.Body: <p>I would suggest looking at some of the <a href="https://cran.r-project.org/web/packages/corrr/index.html" rel="noreferrer">documentation</a>.</p>
  <p>As far as I can tell, the intention of the package is to visualize and organize correlation coefficient estimates. It does not seem that the author of the package has any interest in p-value estimation.</p>
  <p>If you are interested in computing p-values, I would suggest using a different tool, such as the builtin <code>cor.test()</code> function.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-11-13T23:33:55.393Z
Answers.LastActivityDate: 2020-11-13T23:33:55.393Z
Answers.UserDisplayName: Maximilian Press
Answers.Body: <p>Here is a <a href="https://github.com/tidymodels/corrr/issues/29" rel="nofollow noreferrer">suggested workaround</a>:</p>
  <ul>
  <li>Generate a p-value table using one of these tools:
  <ul>
  <li><code>RcmdrMisc::rcorr.adjust()</code></li>
  <li><code>psych::corr.test()</code></li>
  </ul>
  </li>
  </ul>
  <p>Then use <code>corrr:as_cordf()</code> to generate the tidy dataframe with the same structure as a regular corrr correlation table.</p>
  <p>Personally, I have used the <code>Hmisc::rcorr()</code> package, and it works well:</p>
  <pre><code>Hmisc::rcorr() %&gt;% `[[`('P') %&gt;% corrr::as_cordf()
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-08-15T20:46:45.297Z
Answers.Text: got it. thank you so much
Answers.UserDisplayName: rahul
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-08-18T14:27:14.823Z
Answers.Text: I have since used this solution in my own work and I confirm that it works well.
Answers.UserDisplayName: Tripartio
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-07-27T09:53:17.830Z
Answers.LastActivityDate: 2021-08-18T14:26:11.633Z
Answers.LastEditDate: 2021-08-18T14:26:11.633Z
Answers.UserDisplayName: Tripartio
Body: <p>I'm performing correlation analysis using the corrr package in R, but I'm unable to extract the p values. Does anyone know how to get the p values in corrr package in R?</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-08-18T14:26:40.050Z
Comments.Text: If one of the solutions works for you, you can mark it as an accepted answer.
Comments.UserDisplayName: Tripartio
Tags: <r><correlation><p-values>
Title: Extracting p-values using corrr package in R
ThreadText: # Extracting p-values using corrr package in R
  
  (Asked by: username_0 on 2020-11-13)
  
  I'm performing correlation analysis using the corrr package in R, but I'm unable to extract the p values. Does anyone know how to get the p values in corrr package in R?
  
  **Tags:** r, correlation, p-values
  
  > **Comments:**
  > **username_1**: If one of the solutions works for you, you can mark it as an accepted answer.  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_2 on 2020-11-13. Score: 5
  
  I would suggest looking at some of the [documentation](https://cran.r-project.org/web/packages/corrr/index.html).
  
  As far as I can tell, the intention of the package is to visualize and organize correlation coefficient estimates. It does not seem that the author of the package has any interest in p-value estimation.
  
  If you are interested in computing p-values, I would suggest using a different tool, such as the builtin `cor.test()` function.
  
  
  ---
  
  ### Answer by username_1 on 2021-07-27. Score: 1
  
  Here is a [suggested workaround](https://github.com/tidymodels/corrr/issues/29):
  
  * Generate a p-value table using one of these tools:
    + `RcmdrMisc::rcorr.adjust()`
    + `psych::corr.test()`
  
  Then use `corrr:as_cordf()` to generate the tidy dataframe with the same structure as a regular corrr correlation table.
  
  Personally, I have used the `Hmisc::rcorr()` package, and it works well:
  
  ```
  Hmisc::rcorr() %>% `[[`('P') %>% corrr::as_cordf()
  
  ```
  
  > **Comments:**
  > **username_0**: got it. thank you so much  
  > **username_1**: I have since used this solution in my own work and I confirm that it works well.  
  
  ---
  
  