| fit_distr {amt} | R Documentation |
Fit distribution to data
Description
Wrapper to fit a distribution to data. Currently implemented distributions
are the exponential distribution (exp), the gamma distribution (gamma)
and the von Mises distribution (vonmises).
Usage
fit_distr(x, dist_name, na.rm = TRUE)
Arguments
x |
|
dist_name |
|
na.rm |
|
Value
An amt_distr object, which consists of a list with the name of
the distribution and its parameters (saved in params).
Examples
set.seed(123)
dat <- rexp(1e3, 2)
fit_distr(dat, "exp")
[Package amt version 0.2.2.0 Index]