| expmodel {dsdp} | R Documentation |
Constructor for S3 class expmodel
Description
This function is a constructor for S3 class expmodel,
which represents Exponential-based model.
It usually takes data and optionally freq as arguments and
also optionally stepsize
Members of interest in practice are result and coeffs, which maintain
the information of estimates and coefficients of polynomials, respectively.
Usage
expmodel(data = data, freq = NULL, stepsize = c(0.5, 0.3))
Arguments
data |
A nonnegative numeric vector of a data set to be estimated. |
freq |
A frequency vector corresponding to the |
stepsize |
A numeric vector whose element is larger than 0 and smaller
than 1, and decreasing order. The default value is |
Value
An object of Exponential-based model expmodel.
See Also
summary.expmodel() plot.expmodel() estimate.expmodel()
Examples
## Create `expmodel` object from a data set `mixexpgamma$n200`.
emodel <- expmodel(mixexpgamma$n200)
## Create `expmodel` object from a data set `mixExpGammaHist$n800p` and
## its frequencies `mixExpGammaHist$n800f`.
emodel <- expmodel(mixExpGammaHist$n800p, mixExpGammaHist$n800f)