Probability calculator for the binomial distribution

prob_binom(n, p, lb = NA, ub = NA, plb = NA, pub = NA, dec = 3)

Arguments

n

Number of trials

p

Probability

lb

Lower bound on the number of successes

ub

Upper bound on the number of successes

plb

Lower probability bound

pub

Upper probability bound

dec

Number of decimals to show

Details

See https://radiant-rstats.github.io/docs/basics/prob_calc.html for an example in Radiant

See also

summary.prob_binom to summarize results

plot.prob_binom to plot results

Examples

prob_binom(n = 10, p = 0.3, ub = 3)
#> $vp_int #> [1] NA #> #> $vub #> [1] NA #> #> $vlb #> [1] NA #> #> $p_int #> [1] NA #> #> $p_ub #> [1] 0.383 #> #> $p_leub #> [1] 0.65 #> #> $p_eub #> [1] 0.267 #> #> $p_elb #> [1] NA #> #> $p_lb #> [1] NA #> #> $n #> [1] 10 #> #> $p #> [1] 0.3 #> #> $lb #> [1] NA #> #> $ub #> [1] 3 #> #> $plb #> [1] NA #> #> $pub #> [1] NA #> #> $dec #> [1] 3 #> #> attr(,"class") #> [1] "prob_binom" "list"