cdf_expmodel {dsdp} | R Documentation |
Cumulative distribution function of Expomemtial-based model
Description
A cumulative distribution function(CDF) of Exponential-based
model.
To access parameters and coefficients in an object emodel
of a class expmodel
, use emodel$result[k, "lmd1"]
,
emodel$coeffs[[k]]
for some index k
.
This index appears in the leftmost column of estimation table generated by
summary(emodel)
.
Usage
cdf_expmodel(coeff, lmd, x)
Arguments
coeff |
A coefficient vector in increasing order of degrees; the first element is 0th degree, ..., and last element is the largest degree of coefficients. |
lmd |
A rate parameter, which is positive. |
x |
A numeric vector of input. |
Value
A numeric vector of CDF of an exponential-based model.
See Also
expmodel()
summary.expmodel()
estimate.expmodel()
func.expmodel()
cdf_expmodel()
Examples
## Create an object of `expmodel`
emodel <- expmodel(mixexpgamma$n200)
## Estimate with degree 4 and rate parameter 2.0
emodel <- estimate(emodel, 4, 2.0)
## Input vector
x <- seq(0, 12, 0.1)
## Output of PDF in above estimation
yv <- cdf_expmodel(emodel$coeffs[[1]], emodel$result[1, "lmd1"], x)
[Package dsdp version 0.1.1 Index]