Learn R Programming

bda (version 10.1.9)

fit.Weibull: Two-parameter Weibull Distribution Maximum Likelihood Estimation

Description

To compute the maximum likelihood estimates of the parameters of a 2-parameter Weibull distribution.

Usage

fit.Weibull(x, dist="Weibull")

Arguments

x

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

dist

Distribution type: Weibull, GWD or EWD.

Examples

Run this code
# NOT RUN {
  ## raw data
  x <- rweibull(100, 2, 1)
  fit.Weibull(x)
  ##  binned data
  data(hhi)
  hmob <- binning(counts=hhi$mob, breaks=hhi$breaks)
  fit.Weibull(hmob, dist="weibull")
  fit.Weibull(hmob, dist="gwd")
  fit.Weibull(hmob, dist="ewd")

# }

Run the code above in your browser using DataLab