bin_mode: bin_mode

Description Usage Arguments Value Examples

View source: R/functions.R

Description

function which computes mode of binomial distribution with given inputs trials and prob

Usage

1
bin_mode(trials, prob)

Arguments

trials

a non-negative integer which provides the number of trials

prob

a number between 0 and 1 which gives the probablity of a success on an individual draw

Value

an object of numeric class, mode of binomial distribution

Examples

1
2
3
4
5
#default
binmode1 <- bin_mean(10, 0.3)

#example2
binmode2 <- bin_mean(5, 0.5)

Thomas-Sperandeo/workout3 documentation built on May 5, 2019, 12:26 a.m.