gaussmodel {dsdp} | R Documentation |
Constructor for S3 class gaussmodel
Description
This function is a constructor for S3 class gaussmodel
,
which represents Gaussian-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
gaussmodel(data = data, freq = NULL, stepsize = c(0.5, 0.3))
Arguments
data |
A 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 Gaussian-based model gaussmodel
.
See Also
summary.gaussmodel()
plot.gaussmodel()
estimate.gaussmodel()
Examples
## Create `gaussmodel` object from a data set `mix2gauss$n200`.
gmodel <- gaussmodel(mix2gauss$n200)
## Create `gaussmodel` object from a data set `mix2gaussHist$n200p` and
## its frequencies `mix2gaussHist$n200f`.
gmodel <- gaussmodel(mix2gaussHist$n200p, mix2gaussHist$n200f)