bin_variable: bin_variable

Description Usage Arguments Value Examples

View source: R/functions.R

Description

function which checks if our variable is binomial and dispays parameters

Usage

1
bin_variable(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 binvar class, number of trials and the probability of an individual success, an object of class "binvar"

Examples

1
2
3
4
5
#default
prob1 <- bin_variable(1, 0.5)

#example 2
prob2 <- bin_variable(10, 0.3)

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