The marginal_distribution()
function is a wrapper for
fitdistrplus::fitdist()
that fits a univariate distribution to a data
vector.
marginal_distribution(x, distribution, fix.arg = NULL)
Object of class fitdistrplus::fitdist
that represents the marginal
surrogate distribution.
(numeric) data vector
Distributional family. One of the follwing:
"normal"
: normal distribution
"logistic
: logistic distribution as parameterized in dlogis()
"t"
: student t distribution is parameterized in dt()
"lognormal"
: lognormal distribution as parameterized in dlnorm()
"gamma"
: gamma distribution as parameterized in dgamma()
"weibull"
: weibull distribution as parameterized in dweibull()
An optional named list giving the values of fixed parameters of the named distribution or a function of data computing (fixed) parameter values and returning a named list. Parameters with fixed value are thus NOT estimated by this maximum likelihood procedure.