made.density | R Documentation |
Minimum Approximate Distance Estimate of Density Function with an optimal model degree
made.density(
x,
M0 = 1L,
M,
search = TRUE,
interval = NULL,
mar.deg = TRUE,
method = c("qp", "em"),
controls = mable.ctrl(),
progress = TRUE
)
x |
an |
M0 |
a positive integer or a vector of |
M |
a positive integer or a vector of |
search |
logical, whether to search optimal degrees between |
interval |
a vector of two endpoints or a |
mar.deg |
logical, if TRUE, the optimal degrees are selected based on marginal data, otherwise, the optimal degrees are chosen the joint data. See details. |
method |
method for finding minimum distance estimate. "em": EM like method; |
controls |
Object of class |
progress |
if TRUE a text progressbar is displayed |
A d
-variate cdf F
on a hyperrectangle [a, b]
=[a_1, b_1] \times \cdots \times [a_d, b_d]
can be approximated
by a mixture of d
-variate beta cdfs on [a, b]
,
\beta_{mj}(x) = \prod_{i=1}^dB_{m_i,j_i}[(x_i-a_i)/(b_i-a_i)]
,
with proportion p(j_1, \ldots, j_d)
, 0 \le j_i \le m_i, i = 1, \ldots, d
.
With a given model degree m
, the parameters p
, the mixing
proportions of the beta distribution, are calculated as the minimizer of the
approximate L_2
distance between the empirical distribution and
the Bernstein polynomial model. The quadratic programming with linear constraints
is used to solve the problem.
If search=TRUE
then the model degrees are chosen using a method of change-point based on
the marginal data if mar.deg=TRUE
or the joint data if mar.deg=FALSE
.
If search=FALSE
, then the model degree is specified by M
.
An invisible mable
object with components
m
the given model degree(s)
p
the estimated vector of mixture proportions
with the given optimal degree(s) m
interval
support/truncation interval [a, b]
D
the minimum distance at degree m
convergence
An integer code. 0 indicates successful completion(the EM iteration is
convergent). 1 indicates that the iteration limit maxit
had been reached in the EM iteration;
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.