Bayesian inference for factor structure models via gibbs sampling