Closed shabbychef closed 4 years ago
For what it's worth, I was expecting something like the following, which agrees for the rho=0
case:
wtsim <- function(rho,nsim=9999) {
require(mvtnorm,quietly=TRUE)
R <- pmin(diag(2) + rho,1)
X <- rmvnorm(nsim,sigma=R)
w <- rowSums(X > 0)
table(w) / length(w)
}
set.seed(1234)
wtsim(0)
wtsim(0.9995)
0 1 2
0.2474 0.5032 0.2494
0 1 2
0.4953 0.0114 0.4932
Hmmm, I think I am computing the wrong quantity. It seems I am projecting my multivariate normals on the positive cone without taking into account the covariance. (My weights do not seem to satisfy Proposition 3.6.1 (3) in Silvapulle & Sen, whereas the ones produced by restriktor
do.)
Maybe I have misunderstood the 'mixing weight' functions,
con_weights_boot
. Considering the simple 2D model with correlation rho:The first answer looks like what I would expect, namely
choose(2,0:2) / 4
, orc(0.25,0.5,0.25)
. However, for rho near 1, I expect the weights to go toc(0.5,0,0.5)
. That is not observed in this case.