Learn R Programming

lestat (version 1.9)

binomialdistribution: 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".

Examples

Run this code
# NOT RUN {
dist <- binomialdistribution(10, 0.4)
cdf(dist, 3) 
# }

Run the code above in your browser using DataLab