You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 19, 2026. It is now read-only.
Description:
The qbern() function appears to return 1 instead of 0 for the input p = 0.1, prob = 0.9, and lower.tail = TRUE. Based on the Bernoulli CDF, the expected result is 0, as P(X <= 0) = 0.1 satisfies the condition F(q) >= p.
Description:
The
qbern()function appears to return1instead of0for the inputp = 0.1,prob = 0.9, andlower.tail = TRUE. Based on the Bernoulli CDF, the expected result is0, asP(X <= 0) = 0.1satisfies the conditionF(q) >= p.Steps to Reproduce: