0

I am looking for the equivalent function to BETADIST(). I tried dbeta and dbetadist but these do not give the same result as Excel's BETADIST.

BETADIST(1/13,2,4) = 0.050583
dbeta(1/13,2,4, log=F) = 1.210042

What did I miss? Thank you for your time.

hnguyen
  • 772
  • 6
  • 17

1 Answers1

2

dbeta gives the probability density. To match BETADIST you need pbeta

pbeta(1/13,2,4, log=F)
[1] 0.05058269
G5W
  • 36,531
  • 10
  • 47
  • 80