Description Usage Arguments Value Examples
function which checks if our variable is binomial and dispays parameters
1 | bin_variable(trials, prob)
|
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 |
an object of binvar class, number of trials and the probability of an individual success, an object of class "binvar"
1 2 3 4 5 | #default
prob1 <- bin_variable(1, 0.5)
#example 2
prob2 <- bin_variable(10, 0.3)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.