Learn R Programming

SciencesPo (version 1.3.9)

binomcdf: Binomial cumulative distribution function

Description

Computes a binomial cdf at each of the values in x using the corresponding number of trials in n and probability of success for each trial in p.

Usage

binomcdf(n, p, x)

Arguments

n
the number of trials.
p
a vector of probabilities.
x
the number of success.

encoding

UTF-8

Examples

Run this code
trials = 10
prob = c(.2,.25,.3,.35)
success = 4
binompdf(n = trials, p = prob, x = success)

Run the code above in your browser using DataLab