# Sample prior of already fitted pibblefit object
sim <- pibble_sim()
attach(sim)
fit <- pibble(Y, X)
head(sample_prior(fit))
# Sample prior as part of model fitting
m <- pibblefit(N=as.integer(sim$N), D=as.integer(sim$D), Q=as.integer(sim$Q),
iter=2000L, upsilon=upsilon,
Xi=Xi, Gamma=Gamma, Theta=Theta, X=X,
coord_system="alr", alr_base=D)
m <- sample_prior(m)
plot(m) # plot prior distribution (defaults to parameter Lambda)
Run the code above in your browser using DataLab