binomialdistribution {lestat} | R Documentation |
Create an object representing a Binomial distribution
binomialdistribution(ntrials, probability)
ntrials |
the number of trials in the binomial distribution (a positive integer). |
probability |
the probability for success in each trial (a number between 0 and 1). |
An object of class "binomialdistribution" and class "probabilitydistribution".
Petter Mostad <mostad@chalmers.se>
dist <- binomialdistribution(10, 0.4)
cdf(dist, 3)