# NOT RUN {
data_toy <- c(rnorm(10, -3, 1), rnorm(10, 3, 1))
grid <- seq(-7, 7, length.out = 50)
fit <- PYdensity(y = data_toy, mcmc = list(niter = 100,
nburn = 10, nupd = 100), output = list(grid = grid))
class(fit)
partition(fit)
# }
Run the code above in your browser using DataLab