title: R function to get R squared and p value for the regression
body: <p>First off, I'll start by saying that I do not know how to use R, but I need to do reduced major axis regression for the two variables below, and the lmodel2 function can do this. I learnt the code below to obtain the intercept and slope for the regression equation. However I don't get a R squared or a p-value for the regression. How would I do this? The code I have used so far is below.</p>
  <pre><code>Tensor_force=c(1.72,1.48,1.37,0.81,0.75,0.96,0.96,0.78,0.54,0.67,0.75,0.66,0.4)
  Stapedius_force=c(0.8,0.58,1.07,0.82,0.77,0.98,0.99,0.98,0.92,1.06,1.19,1.32,1.18)
  
  library(lmodel2)
  
  lmodel2(Stapedius_force ~ Tensor_force,,&quot;relative&quot;, &quot;relative&quot;,0)
  </code></pre>