Learn R Programming

bda (version 10.1.9)

fit.GB: Fitting GB

Description

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

Usage

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

Run this code
# NOT RUN {
  x <- rnorm(100, 34.5,1.5)
  hofc <- binning(x, bw=1)
  lmd7 <- fit.GB(hofc)
  plot(lmd7)
  gof(lmd7)


# }

Run the code above in your browser using DataLab