Construct an ecld class by providing the required parameters.
The default is the standard symmetric cusp distribution.
The default also doesn't calculate any ecd extension.
ecld.from allows you to pass the parameters from an existing ecd object.
ecld.validate checks if an object is ecld class.
ecld.quartic is a convenient constructor designed for quartic distribution.
ecld.from_sd calculates sigma from a given sd and renders a vanila ecld object.
ecld(lambda = 3, sigma = 1, beta = 0, mu = 0, epsilon = NaN,
rho = NaN, with.ecd = FALSE, with.mu_D = FALSE, with.RN = FALSE,
is.sged = FALSE, verbose = FALSE)ecld.from(object, with.ecd = FALSE, with.mu_D = FALSE, with.RN = FALSE,
verbose = FALSE)
ecld.validate(object, sged.allowed = FALSE, sged.only = FALSE)
ecld.quartic(sigma, epsilon, rho, mu_plus_ratio = NaN, mu_plus = NaN)
ecld.from_sd(lambda = 3, sd = 1, beta = 0, mu = 0)
numeric, the lambda parameter. Must be positive. Default: 3.
numeric, the scale parameter. Must be positive. Default: 1.
numeric, the skewness parameter. Default: 0.
numeric, the location parameter. Default: 0.
The supplemental residual premium for lambda transformation. It is default to NaN in ecld constructor since its meaning is not defined.
The supplemental momentum shift for lambda transformation. It is default to NaN in ecld constructor since its meaning is not defined.
logical, also calculate the ecd object, default is FALSE.
logical, also calculate the ecd risk-neutral drift, default is FALSE.
If TRUE, this flag supercedes with.ecd.
Also mu must set to zero.
logical, also calculate the risk-neutral ecd object, default is FALSE.
If TRUE, this flag supercedes with.mu_D.
logical, if TRUE, interpret parameters as SGED.
logical, display timing information, for debugging purpose, default is FALSE.
an object of ecld class
logical, used in ecld.validate to indicate if the function allows SGED.
logical, used in ecld.validate to indicate if the function is only for SGED.
numeric, excess value in addition to mu_D.
When ratio is provided, it is relative to the stdev.
numeric, the scale parameter expressed in stdev instead of sigma. Internally,
It is converted to sigma via uniroot on ecld.sd.
Must be positive. Default: 1.
an object of ecld class
# NOT RUN {
ld <- ecld()
ld <- ecld(2, 0.01)
ld <- ecld.from_sd(3, 0.1)
# }
Run the code above in your browser using DataLab