mable.mvar {mable} | R Documentation |
Maximum Approximate Bernstein Likelihood Estimate of Multivariate Density Function
Description
Maximum Approximate Bernstein Likelihood Estimate of Multivariate Density Function
Usage
mable.mvar(
x,
M0 = 1,
M,
search = TRUE,
interval = NULL,
mar.deg = TRUE,
high.dim = FALSE,
criterion = c("cdf", "pdf"),
controls = mable.ctrl(),
progress = TRUE
)
Arguments
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 those minimize the maximum L2 distance between marginal cdf or pdf estimated based on marginal data and the joint data. See details. |
high.dim |
logical, data are high dimensional/large sample or not if TRUE, run a slower version procedure which requires less memory |
criterion |
either cdf or pdf should be used for selecting optimal degrees. Default is "cdf" |
controls |
Object of class |
progress |
if TRUE a text progressbar is displayed |
Details
A -variate density
on a hyperrectangle
can be approximated
by a mixture of
-variate beta densities on
,
,
with proportion
,
.
Let
(
) be an estimate with degree
of
the i-th marginal cdf (pdf) based on marginal data
x[,i]
, .
If
search=TRUE
and use.marginal=TRUE
, then the optimal degrees
are . If
search=TRUE
and
use.marginal=FALSE
, then the optimal degrees
are those that minimize the maximum of
-distance between
(
) and the estimate of
(
)
based on the joint data with degrees
for all
between
and
if
criterion
="cdf" (criterion
="pdf").
For large data and multimodal density, the search for the model degrees is
very time-consuming. In this case, it is suggested that the degrees are selected
based on marginal data using mable
or optimable
.
Value
A list with components
-
m
a vector of the selected optimal degrees by the method of change-point -
p
a vector of the mixture proportions, arranged in the column-major order of
,
.
-
mloglik
the maximum log-likelihood at an optimal degreem
-
pval
the p-values of change-points for choosing the optimal degrees for the marginal densities -
M
the vector(m1, m2, ... , md)
, wheremi
is the largest candidate degree when the search stoped for thei
-th marginal density -
interval
support hyperrectangle -
convergence
An integer code. 0 indicates successful completion(the EM iteration is convergent). 1 indicates that the iteration limitmaxit
had been reached in the EM iteration;
Author(s)
Zhong Guan <zguan@iusb.edu>
References
Wang, T. and Guan, Z.,(2019) Bernstein Polynomial Model for Nonparametric Multivariate Density, Statistics, Vol. 53, no. 2, 321-338
See Also
Examples
## Old Faithful Data
a<-c(0, 40); b<-c(7, 110)
ans<- mable.mvar(faithful, M = c(46,19), search =FALSE,
interval = rbind(a,b), progress=FALSE)
plot(ans, which="density")
plot(ans, which="cumulative")