# NOT RUN {
n <- 10
m <- Model.Indep.p.lambda(Model.p.BetaPrior(n),
Model.lambda.GammaPrior(n,scale=1e-1))
x <- genL(m)
l <- rowSums(x$L)
a <- colSums(x$L)
# }
# NOT RUN {
res <- sample_HierarchicalModel(l,a,model=m)
# }
# NOT RUN {
# fixing one values
L_fixed <- matrix(NA,ncol=n,nrow=n)
L_fixed[1,2:5] <- x$L[1,2:5]
# }
# NOT RUN {
res <- sample_HierarchicalModel(l,a,model=m,L_fixed=L_fixed,
nsamples=1e2)
sapply(res$L,function(x)x[1,2:5])
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab