title: Use R to to test hypothesis of correlation = .5
body: <p>I am trying to make a hypothesis test for my correlation H0: r= .5, H1: R != .5. R works fine for testing the hypothesis H0: r= 0. I looked online to see if any parameter in "cor.test" allowed me to change the hypothesis test but it is not available. </p>
  
  <blockquote>
    <p>cor.test(x, y,
             alternative = c("two.sided", "less", "greater"),
             method = c("pearson", "kendall", "spearman"),
             exact = NULL, conf.level = 0.95, continuity = FALSE, ...)</p>
  </blockquote>
  
  <p>Here is my code </p>
  
  <pre><code>&gt; avgTemp
   [1] 21 24 32 47 50 59 68 74 62 50 41 30
  &gt; usage
   [1] 185.79 214.47 288.03 424.84 454.68 539.03 621.55 675.06 562.03 452.93
  [11] 369.95 273.98
  &gt; cor.test (avgTemp,usage)
  
          Pearson's product-moment correlation
  
  data:  avgTemp and usage
  t = 272.255, df = 10, p-value &lt; 2.2e-16
  alternative hypothesis: true correlation is not equal to 0
  95 percent confidence interval:
   0.9997509 0.9999817
  sample estimates:
        cor 
  0.9999326 
  </code></pre>
  
  <p>Again, everything is working fine. I just don't know how to make my hypothesis test H0: r=.5</p>
  
  <p>Thanks !</p>