Description Usage Arguments Value Examples
View source: R/3-manipulation-functions.R
marginalize a bmop object, that is integrate a bmop multivariate density over some of its dimension.
1 | marginalize.bmop(object, MARGIN = 1, ...)
|
object |
a bmop object |
MARGIN |
positive integer or vector of positive integer, the dimensions that has to be marginalized |
... |
additional parameters |
a bmop object over a space of dimension length(MARGIN)
the result of integrating over the -MARGIN
other dimensions.
1 2 3 4 5 6 7 | N<-50 # N small for CRAN
dataNormal<-data.frame(rnorm(N),rnorm(N))
bmop2d<-bmop_fit(dataNormal)
bmop1d<-bmop_fit(dataNormal[,1])
bmop1dmargin<-marginalize.bmop(bmop2d,MARGIN=1)
comparison_plot(list(bmop1d,bmop1dmargin),true=dnorm,
names.bmop=c("direct est.","marginalized"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.