Find starting values for distribution parameters
Source:R/dist_mixture.R
, R/distribution_generics.R
fit_dist_start.Rd
Find starting values for distribution parameters
Usage
# S3 method for MixtureDistribution
fit_dist_start(dist, obs, dists_start = NULL, ...)
fit_dist_start(dist, obs, ...)
Arguments
- dist
A
Distribution
object.- obs
Observations to fit to.
- dists_start
List of initial parameters for all component distributions. If left empty, initialisation will be automatically performed using
fit_dist_start()
with all observations in the support of each respective component.- ...
Additional arguments for the initialisation procedure
Value
A list of initial parameters suitable for passing to fit_dist()
.
Examples
fit_dist_start(dist_exponential(), rexp(100))
#> $rate
#> [1] 1.258531
#>