binom_est: Method of Moments Estimation of Binomial distribution

View source: R/binomial.est.R

binom_estR Documentation

Method of Moments Estimation of Binomial distribution

Description

function to get the method of moment estimate(s) of binomial distribution

Usage

binom_est(
  data,
  size.known = FALSE,
  size = NULL,
  plot = TRUE,
  curvecol = "red",
  ...
)

Arguments

data

A numeric vector.

size.known

logical indicating whether the size of the binomial distribution is known or not.

size

integer valued parameter of binomial distribution.

plot

logical which controls whether the barplot of the data along with the probability curve of the theoretical binomial distribution with the estimated parameters.

curvecol

color of the theoretical probability curve

...

additional plotting parameters

Value

the estimated parameters by the method of moments of the data assuming the underlying distribution is binomial distribution

Examples

binom_est(rbinom(1000,size=5,prob=0.2),size.known=TRUE,size=5)#no of trials known
binom_est(rbinom(1000,size=10,prob=0.6))

MOM documentation built on Aug. 21, 2025, 5:54 p.m.

Related to binom_est in MOM...