bin_variance: bin_variance

Description Usage Arguments Value Examples

View source: R/functions.R

Description

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

Usage

1
bin_variance(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, variance of binomial distribution

Examples

1
2
3
4
5
#default
binvar1 <- bin_variance(10, 0.3)

#example2
binvar2 <- bin_variance(100, 0.2)

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