5

In postgres I am calculating an R2 and a slope using the below functions:

regr_r2(y,x)
regr_slope(y,x)

Is there any way to calculate the p-value associated to the slope within postgres?

danbst
  • 3,363
  • 18
  • 38
Illya
  • 243
  • 1
  • 11
  • Not directly, AFAIK. Use the pl/Python or pl/R plugins to use Python or R within Postgres and make all these statistical analyses easier. – ahron May 26 '23 at 07:57

0 Answers0