Fitting GB

Description

To fit a generalized beta distribution to raw/binned data.

Usage

1
 fit.GB(x, lbound, ubound)

Arguments

x

A vector of raw data, or a histogram or binned data.

lbound,ubound

lower and upper bound for the support of the density. The bounds could be finite values, or positive or negative infinity.

Examples

1
2
3
4
5
  x <- rnorm(100, 34.5,1.5)
  hofc <- binning(x, bw=1)
  lmd7 <- fit.GB(hofc)
  plot(lmd7)
  gof(lmd7)