Learn R Programming

distributions3 (version 0.1.2)

fit_mle: Fit a distribution to data

Description

Approximates an empirical distribution with a theoretical one

Usage

fit_mle(d, x, ...)

Arguments

d

A probability distribution object such as those created by a call to Bernoulli(), Beta(), or Binomial().

x

A vector of data to compute the likelihood.

...

Unused. Unevaluated arguments will generate a warning to catch mispellings or other possible errors.

Value

A distribution (the same kind as d) where the parameters are the MLE estimates based on x.

Examples

Run this code
# NOT RUN {
X <- Normal()

fit_mle(X, c(-1, 0, 0, 0, 3))
# }

Run the code above in your browser using DataLab