Learn R Programming

bda (version 3.1.3-2)

mle: Compute maximum likelihood estimates

Description

To compute maximum likelihood estimates based on (weighted and/or censored) data.

Usage

mle(x,w, type="Weighted", family="Gaussian"	)

Arguments

x
vector of raw data or distinct center information of binned data.
w
vector of weights.
type
Data type. Options include rc = random right-censored, regular data if option missing.
family
distribution family. Options include Normal or Gaussian, Weibull.

Examples

Run this code
x <- rweibull(1000,1,7)
w <- rep(1,1000)
mle(x,w, type='rc', family='weibull')

Run the code above in your browser using DataLab