marginal_distribution: Fit marginal distribution

View source: R/fit_model_BinCont_copula.R

marginal_distributionR Documentation

Fit marginal distribution

Description

The marginal_distribution() function is a wrapper for fitdistrplus::fitdist() that fits a univariate distribution to a data vector.

Usage

marginal_distribution(x, distribution, fix.arg = NULL)

Arguments

x

(numeric) data vector

distribution

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()

fix.arg

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.

Value

Object of class fitdistrplus::fitdist that represents the marginal surrogate distribution.


Surrogate documentation built on Sept. 25, 2023, 5:07 p.m.