Learn R Programming

ecd (version 0.6.4)

ecld: Constructor of ecld class

Description

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.

Usage

ecld(lambda = 3, sigma = 1, beta = 0, mu = 0, 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)

Arguments

lambda
numeric, the lambda parameter. Must be positive. Default: 3.
sigma
numeric, the scale parameter. Must be positive. Default: 1.
beta
numeric, the skewness parameter. Default: 0.
mu
numeric, the location parameter. Default: 0.
with.ecd
logical, also calculate the ecd object, default is FALSE.
with.mu_D
logical, also calculate the risk-neutral drift, default is FALSE. If TRUE, this flag supercedes with.ecd. Also mu must set to zero.
with.RN
logical, also calculate the risk-neutral ecd object, default is FALSE. If TRUE, this flag supercedes with.mu_D.
is.sged
logical, if TRUE, interpret parameters as SGED.
verbose
logical, display timing information, for debugging purpose, default is FALSE.
object
an object of ecld class
sged.allowed
logical, used in ecld.validate to indicate if the function allows SGED.
sged.only
logical, used in ecld.validate to indicate if the function is only for SGED.

Value

an object of ecld class

Examples

Run this code
ld <- ecld()
ld <- ecld(2, 0.01)

Run the code above in your browser using DataLab