binomialdistribution {lestat} | R Documentation |
Create an Object Representing a Binomial Distribution
Description
Create an object representing a Binomial distribution
Usage
binomialdistribution(ntrials, probability)
Arguments
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). |
Value
An object of class "binomialdistribution" and class "probabilitydistribution".
Author(s)
Petter Mostad <mostad@chalmers.se>
Examples
dist <- binomialdistribution(10, 0.4)
cdf(dist, 3)
[Package lestat version 1.9 Index]