bino.gen: Simulating Binomial Distribution

View source: R/bino.gen.R

bino.genR Documentation

Simulating Binomial Distribution

Description

Function that generates and displays m repeated samples of n Bernoulli trials with a given probability of success.

Usage

bino.gen(samples, n, pi)

Arguments

samples

number of repeated samples to generate

n

number of Bernoulli trials

pi

probability of success for Bernoulli trial

Value

simulated.distribution

Simulated binomial distribution

theoretical.distribution

Theoretical binomial distribution

Author(s)

Alan T. Arnholt

Examples


bino.gen(1000, 20, 0.75)


PASWR documentation built on May 15, 2022, 5:05 p.m.