beta_est: Method of Moments Estimation of Beta distribution

View source: R/beta.est.R

beta_estR Documentation

Method of Moments Estimation of Beta distribution

Description

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

Usage

beta_est(
  data,
  unknown = c("shape1", "shape2", "both"),
  shape1 = NULL,
  shape2 = NULL,
  plot = TRUE,
  curvecol = "red",
  ...
)

Arguments

data

A numeric vector.

unknown

A character string specifying which parameter is (are) unknown to the user.

shape1, shape2

Non-negative parameters of the Beta distribution.

plot

logical which controls whether the histogram of the data along with the density curve of the theoretical beta distribution with the estimated parameters.

curvecol

color of the theoretical density curve

...

additional plotting parameters

Value

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

Examples

beta_est(rbeta(1000,shape1=2,shape2=1),unknown="shape2",shape1=2)#shape1 is known
beta_est(rbeta(1000,shape1=2,shape2=1),unknown="shape1",shape2=1)#shape2 is known
beta_est(rbeta(1000,shape1=2,shape2=1),unknown="both")#both will be estimated

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

Related to beta_est in MOM...