fitbetavecMOM: Beta Method of Moments Calculates the method of monements...

Description Usage Arguments Value Examples

View source: R/estimation.R

Description

Beta Method of Moments Calculates the method of monements estimators of a beta distribution fitted to the data

Usage

1

Arguments

data

- a vector of data

Value

A list with the elements a and b which are the parameters of a beta(a,b) distribution.

Examples

1
2
3
4
5
set.seed(2)
data1 = rbeta(100, 1, 1)
fitbetavecMOM(data1)
data2 = rbeta(100, 43, 27)
fitbetavecMOM(data2)

balexanderstats/bayesurvey documentation built on Sept. 20, 2020, 11:40 a.m.